I´m having a simple indicator that should compare the Highs and Lows of ES and MES. I run it on a minutebar with BIP0 and BIP1 so it should refer to the same bar. I draw a line when eg low of ES is lower than low of MES and a line when high of ES is higher than high of MES. (I dont say it should be always same high and low! this is not the question)
When I compare Highs[0][0] and Highs[1][0] (same for Lows) where BIP0=ES and BIP1=MES it plots sometimes the line even when Highs or Lows are same. What can I do please to have correct plotting?
if(Highs[0][0]>Highs[1][0])
{Draw.Line(this, "High1" + CurrentBar, true, 0, Highs[0][0], -3, Highs[0][0], Brushes.Firebrick, DashStyleHelper.Dash, 2);
}
I understand that it does not plot correctly when I compare eg Range Bars, but minute bars close same time so it should plot only when ">" is true and not plot sometimes when same High or Low.
Thank you!
Tony
Comment