I would like to get a horizontal line when price cross yesterday high plus 5 points (condition ) from that bar to next few bars . Tried many ways .. but failed ..Appreciate any one time and help.
I think i figured it .
yDayH = TimeFrameGetPrice("H", inDaily, -1); // yesterdays high
yhabove= C>yDayH ;
yhline=IIf(yhabove,yDayH+10,Null); // 10 points above yesterday high
Plot(yhline,"",colorYellow, styleThick );