Thank you for your reply.
Ah, I assumed you wanted the lines to remain at the same points throughout the day and not update. If you want them to update with the new hourly bar, just remove the bool variable and just assign MidPoint without checking it's been previously set:
public class GRTMultiLines : Indicator { private double MidPoint; protected override void OnStateChange() {
protected override void OnBarUpdate() { //if (CurrentBar < 10) return; if (CurrentBars[1] < 1) return; MidPoint = CurrentDayOHL(BarsArray[1]).CurrentOpen[0];
Please let us know if we may be of further assistance to you.
Comment