Im a newbie to ThinkScript. Having trouble making this work.
I'm trying to create a on custom column for the following:
The close of the second bar(of the day) is greater than the high of the first bar(of the day).
The script should stop after the second bar with a binary (1 or 0) for the rest of the day - 1min time frame.
I'm trying to create a on custom column for the following:
The close of the second bar(of the day) is greater than the high of the first bar(of the day).
The script should stop after the second bar with a binary (1 or 0) for the rest of the day - 1min time frame.
Code:
def isopen = if SecondsFromTime(0930) >= 0 and SecondsTillTime(0931) >= 0 then 1 else 0;
def cond=
close[1] > high[2]
;
plot signal= cond and isopen;
Last edited: