Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 00:37:54 +0000



Post From: "Color bar based on alert" not cooperating with "Overlay (bar)"

[2023-10-12 16:59:13]
adam czuk - Posts: 26
I'm trying to reference the overlay (bar) study to make alerts based on another chart

I'm doing this using the "color bar based on alert" study. But I am getting inaccurate results

I don't think it is the formula that is incorrect, because the same formula gives accurate results when it is based on an "add additional symbol" study within the same chart. I can't use that option because I'm trying to reference a separate continuous futures contract chart. So that's why I am using the "overlay (bar)" study.

The formula checks if the bars on the charts are closing in opposite directions: up/down or down/up.
The Color bar based on alert study fills the candle orange if either condition is true.

Here is my formula:

OR(AND(C>O,ID2.SG4<ID2.SG1),AND(C<O,ID2.SG4>ID2.SG1))

I've marked with a blue X on my screenshot the bars that should have been filled orange but for some reason were not.

Might have something to with the settings in "color bar based on alert condition" but I have tweaked them without success. Changing "input data" to "last" does nothing.
imageScreenshot (61).png / V - Attached On 2023-10-12 16:43:14 UTC - Size: 201.56 KB - 86 views