Bezna$
New member
I am trying to get the first possible price (close) immediately after 8 PM
I came up with this code but it's not working. Any ideas how to implement this? Thank you in advance
I came up with this code but it's not working. Any ideas how to implement this? Thank you in advance
Code:
def Time0 = 2000;
def Sec0 = SecondsFromTime(Time0);
def isTime0 = (Sec0 >= 0 and Sec0[1] < 0) or (Sec0 < Sec0[1]);
rec bar0 = if isTime0 then BarNumber() else bar0[1];
rec Close0 = if isTime0 then close else close[1];