Login Page - Create Account

Support Board


Date/Time: Sat, 01 Feb 2025 04:49:54 +0000



Post From: Need help with alert conditions.

[2019-06-16 17:31:57]
User929084 - Posts: 60
Hi, I'm trying to get alert using Color bar based on alert condition study. I have 3 conditions/ statements for the alert. However when I put all three of them together I don't get any signals, but if I use any combination of just two statements it works. It it that AND can only have 2 statements?

=AND(ID18.SG1[0] > ID18.SG1[-1],ID18.SG1[-1] < ID18.SG1[-2],(ID18.SG1 > ID18.SG2,(ID18.SG1<0))) <== Doesn't work, but that's the desired outcome

=AND(ID18.SG1[0] > ID18.SG1[-1],ID18.SG1[-1] < ID18.SG1[-2],(ID18.SG1<0)) <== Works

=AND(ID18.SG1[0] > ID18.SG1[-1],ID18.SG1[-1] < ID18.SG1[-2],(ID18.SG1 > ID18.SG2)) <== Works

I want to get a signal when MACD line crosses above MA of MACD, then MACD changes slope, all while MACD is still below 0 line.

Should I use another study for that or is my code just off a bit.

I attached img to clarify what I want to achieve.

Thank you.
image3alertconditions.png / V - Attached On 2019-06-16 17:27:52 UTC - Size: 2.08 KB - 258 views