While trying to export a source of my Indicator, I received the following message:
public class iSegment: Indicator { public iSegment(Indicator parent, string name) { this.parent = parent; iGenericName = name; iName = iGenericName; iComplete = true; } } public class PriceAction: iSegment { public PriceAction(Indicator parent, string brakeName) :base(parent, brakeName) {} protected override void OnBarUpdate() { ... if (bDir > 0) { if (parent.Close[iLast] > parent.Open[iLast]) parent.DrawTriangleDown(aName+".ExitTriangle", true, iLast, pExitPrice, tradeResultColor); else parent.DrawTriangleUp(aName+".ExitTriangle", true, iLast, pExitPrice, tradeResultColor); yPos = Math.Min(parent.MIN(textOffsetX + textOffsetXspace)[0], (sDir < 0 ? pPrimaryLine : pSecondaryLine)) - textOffsetY; parent.DrawLine(iName+".ExitGuide", true, iLast, pExitPrice, iLast + textOffsetX, yPos, tradeResultColor, DashStyle.Dash, 1); text = parent.DrawText(aName+".ExitText", true, resultText, iLast+textOffsetX, yPos, 0, textColor, textFont, textAlign, tradeResultColor, tradeResultColor, textBgOpacity); text.Locked = false; ... } } }
Comment