Topic: is this an error in the "Top Bottom Price Indicator"?
hi
is this an error in the "Top Bottom Price Indicator"?
line 221
else if (slotType == SlotTypes.Close)
{
Component[2].CompName = "Long position closing price";
Component[2].DataType = IndComponentType.CloseLongPrice;
Component[3].CompName = "Short position closing price";
Component[3].DataType = IndComponentType.CloseShortPrice;
}
else if (slotType == SlotTypes.CloseFilter)
{
Component[2].CompName = "Close out long position";
Component[2].DataType = IndComponentType.ForceCloseLong;
Component[3].CompName = "Close out short position";
Component[3].DataType = IndComponentType.ForceCloseShort;
should the Component[#].DataType be switched between the two Slot types ie the IndComponentType.CloseLongPrice for the SlotTypes.CloseFilter and the IndComponentType.ForceCloseLong; for the SlotTypes.Close? or are they correct the way they are?
also, since we are on the subject of this indicator, could someone explaine this commands?
line line 135
double dShift = IndParam.NumParam[0].Value * Point;
what is the function of the "Point"
and line 145
double dTop = double.MinValue;
double dBottom = double.MaxValue;
how to interpret, and when to use the MinValue/MaxValue?
Thanks