Suppose my current chart is a 5 mn chart and I want to draw the current hourly pivot point and the previous one? Which one is the correct code?
Thanks!
AddDataSeries(Instrument.FullName, BarsPeriodType.Minute ,60); var pivot1 = (Highs[1][0] + Lows[1][0] + Closes[1][0]) / 3; var pivot2 = (Highs[1][1] + Lows[1][1] + Closes[1][1]) / 3; OR AddDataSeries(Instrument.FullName, BarsPeriodType.Minute ,60); var pivot1 = (Highs[1][1] + Lows[1][1] + Closes[1][1]) / 3; var pivot2 = (Highs[1][2] + Lows[1][2] + Closes[1][2]) / 3;
Comment