Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 07:28:39 +0000



[Programming Help] - Color bar based on Alert condition using MACD and new high/low not working

View Count: 718

[2018-04-08 17:57:27]
User947126 - Posts: 14
I created an alert that says to trigger when MACD is equal to its 20 day high or low. I did it like this:

ID1.sg1 is macd
ID2 is configured to be 20 bar highest high/lowest low of MACD, so:
ID2.sg1 is 20 day high of MACD
ID2.sg2 is 20 day low of MACD

I created "Color bar based on alert condition" signals that are identical to the hundreds of others I've created--when triggered it produces buy and sell arrows. The formulas are:

1. ID1.sg1=id2.sg1
2. ID1.sg1=id2.sg2

The symptom is that this will trigger once in a while, but very often it's obvious that it should have triggered (MACD made a clear high or low) but it didn't. Do you think this is because MACD hit the high or low at some point during the bar but didn't close at the high/low?

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

Login

Login Page - Create Account