Highlight days after one bar down and one bar up

S

Stefano

New member
Is there any way to highlight in a bar chart, bars between specific trading hours, i.e. specific pit sessions when referring to futures? I know TOS allows highlighting non RTH periods but I'm looking for a code that can set up a custom period.
Thanks
 
S

Stefano

New member
Is there any way to highlight a bar in a chart bar in a specific timeframe, e.g. between 9:30 AM and 10:00 AM ET? I only see functions such as getdate() in thinkscript and not able to figure our a logic out of it. Anybody that can help here?
Thanks in advance.
 
S

Stefano

New member
Hi,
I'm trying to highlight (with a simple Point) a bar starting from a specific day (Day0) that satisfy a certain condition (e.g. lowest low in 10 days) and then count 2 bars forward: +1 if bar has close>open and +1 if bar has open>close.
The challenges are: 1. whether I need to use a loop starting from the Day0 or just day indexes (e.g. close[-1]) and 2. how to plot the Point in a bar that is not the one that is currently taken in consideration, i.e. Day0 (the [...] take only constant and not variables).
Any help would be highly appreciated!

Thanks.
 

Similar threads

Top