Support Board
Date/Time: Sun, 24 Nov 2024 18:56:20 +0000
Post From: Trying to OR(AND a condition and I think I'm wrong.
[2024-05-20 16:40:57] |
C_Money - Posts: 65 |
On my "Color bar based on alert condition" study, I want to have either condition be true, but not both at the same time: 1. Divergence detector has an up arrow on the current bar and Heiken-Ashi bar is green 2. Divergence detector has an up arrow on the current bar and Heiken-Ashi bar is a very skinny doji with just a small amount of body. This is what I have and I think it's wrong because I keep getting alerted on bars that are not doji at all: =OR(AND(ID27.SG4>0,ID18.SG4>ID18.SG4[-1]), AND(ID27.SG4>0),(ABS(ID18.SG1[-1] - ID18.SG4[-1]) / (ID18.SG2[-1] - ID18.SG3[-1]) <.50))
ID27.SG4 = divergence detector up arrow ID18.SG1 = Heiken Ashi Open ID18.SG2 = Heiken Ashi High ID18.SG3 = Heiken Ashi Low ID18.SG4 = Heiken Ashi Close |