Support Board
Date/Time: Fri, 17 Jan 2025 22:56:42 +0000
Post From: Study settings to keep true for X bars
[2017-12-23 09:32:36] |
samual sprat - Posts: 343 |
Hi, 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? Thanks S |