Good day,
How can I make the previous day closing price e.g 16h35 appear on the opening candle of the next day e.g 08h00. With the difference calculated
Can use Dax as the example. Basically want to gauge the Gap when the market opens
Regards,
Segie
There you go
DEFPARAM CalculateOnLastBars = 2000
DEFPARAM DrawOnLastBarOnly = true
Offset1 = 15 * pipsize
Offset2 = Offset1 * 2
IF time = 163500 THEN
ClosingPrice = close
ENDIF
IF time = 080000 THEN
Percentage = 100 - ((close * 100) / ClosingPrice)
MyBar = BarIndex
MyPrice = high
ENDIF
DRAWTEXT("Price 16:35 #ClosingPrice#", MyBar, MyPrice + offset1) COLOURED(0,128,0,255)
DRAWTEXT("Difference #Percentage#", MyBar, MyPrice + offset2) COLOURED(128,0,0,255)
RETURN