Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 01:05:35 +0000



[User Discussion] - Study settings to keep true for X bars

View Count: 1240

[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
[2017-12-27 12:23:19]
samual sprat - Posts: 343
FYI. I've worked this out
Date Time Of Last Edit: 2017-12-27 12:23:29

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account