Date/Time: Sat, 20 Oct 2018 18:32:22 +0000
Post From: Study settings to keep true for X bars
|sunnyod - Posts: 128|
Is it possible when a colour bar alert is true, to define how many bars it stays true for?
For example. I have a colour bar study (ID1) which checks to see if close is greater than open and volume is greater than X. I have another colour bar alert study which checks if ID1 was true at any point over the last 50 bars and if a bullish MA crossover has just happened.
Not sure if there is a study that can help here or maybe a way lock ID1.SG1 to value 1 for 50 bars in code?