Set the DataSeries and initialize it:
#region Variables // Wizard generated variables private DataSeries bCMText; private double exposedVariable; #endregion /// <summary> /// This method is used to configure the indicator and is called once before any bar data is loaded. /// </summary> protected override void Initialize() { CalculateOnBarClose = true; Overlay = true; PriceTypeSupported = false; bCMText = new DataSeries(this); // Initialize all variables bCMText.Set(0);
if (Close[0] >= Open[0]) { BarColor = Color.Blue; bCMText.Set(3) ;
if (bCMText[1] <= 1 && bCMText[0] = 3) { DrawArrowUp("MyArrowUp", 0, Low[0], Color.Lime); } else { DrawDot("MyDot", true, 0, Low[0] - 4 * TickSize, Color.Red); } exposedVariable = Close[0];
I appreciate you looking at the code and giving me some guidance.
Thanks
DaveN
Comment