Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 23:30:40 +0000



Post From: [User Discussion] help to highlight candle based on certain study conditions

[2021-08-20 13:10:44]
tuanluu20902 - Posts: 24
I interpret this to mean that you want an example of how to alert when the CCI crosses back into the normal range, hence the formula I offered.

So I'm not sure what you want.

Hi Tom, I'm sorry if my question was not clear. The code you wrote for me alerts when price crosses above -100 from being under -100, and vice versa.
That is certainly part of what I want, however, I want to add a condition that so that the indicator only alerts me if the CCI has been under -200 and not just under -100.

For simplicity's sake I am going to talk about only 1 side for now
=AND(ID17.SG1<=-200) //this alerts me whenever the CCI line is under -200
=AND(ID17.SG1[-1]<=-100,ID17.SG1>-100) // this is what you wrote which alerts me when the CCI line crosses the -100 line back into normal range

now I just need to combine them so that it will only alert me on the -100 crosses ONLY IF it has been in an extreme condition (under -200)
Date Time Of Last Edit: 2021-08-20 13:21:25
imageCCI extreme crosses.png / V - Attached On 2021-08-20 13:10:39 UTC - Size: 95.31 KB - 215 views