I have the following problem:
I finished an indicator and I need to plot its High and Low
if (FirstTickOfBar)
{
dsOpen.Set( lastvalueINDICATOR );
hi = lastvalueINDICATOR;
lo = lastvalueINDICATOR;
}
hi = Math.Max( hi, lastvalueINDICATOR );
lo = Math.Min( lo, lastvalueINDICATOR );
dsClose.Set( lastvalueINDICATOR );
dsHigh.Set( hi );
dsLow.Set( lo );
ok this works well, I have checked on Output window
How can I plot dsHigh.Set and dsLow.Set simultaneously?
I am trying:
DrawLine("INDICATOR"+CurrentBar, true , 0, dsLow[0], 0, dsHigh[0], Color.FromArgb(255,255,255,255), DashStyle.Solid, 2);
but unfortunately began when I enter the oscillator, it don't plot the historical data sets on dsHigh.Set and dsLow.Set
Thanks for your help
Comment