Support Board
Date/Time: Tue, 26 Nov 2024 14:49:07 +0000
Post From: Referencing 'Color Background Based On Alert Condition' in Simple Alert
[2023-11-26 03:21:54] |
pjk0225 - Posts: 34 |
Firstly, thanks for your input. Background subgraph (SG1) outputs 1 when true and 0 otherwise.
Does the "chart values tool window" just not display it correctly then? Because it simply outputs "Background: 0" even when true.You already have the correct method "ID#.SG1 > 0", though not relevant "ID#.SG1<>0" (i.e. non-zero) would also be acceptable.
If this is the case, then that leaves me even more confused, as, if as you said, the study does in fact output "1" when true, then my simple alerts should be showing up correctly. When testing this, I made sure the study alert works with a simple "=1" test before replacing that code with a simple "ID#.SG1 > 0" test referencing the "Color Background Based On Alert Condition" study, but this does not output anything. One detail I could mention is that the study "Color Background Based On Alert Condition" I am referencing is itself being called in with the "Study/Price Overlay" study. So technically my simple alert is referencing "Study/Price Overlay" instead of directly referecing "Color Background Based On Alert Condition". Could perhaps this be why I am not able to see an output of "1" when the background study is true? Does the "Study/Price Overlay" not output a value of "1" when the "Color Background Based On Alert Condition" study is true? If this is causing the issue, I wonder what the best workaround for this would be. |