Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 06:22:02 +0000



Post From: Simple Alert

[2019-09-03 13:54:15]
Chris_uk - Posts: 89
Hi,

I am trying to color the prior bar when it meets this condition:

Low < moving average
Close > above moving average
moving average = ID2.SG2

First I tried the current bar, which works as expected (image attached)

= AND (L < ID2.SG2, C > ID2.SG2)

When using this formula to try the same for the prior bar, do not get what I expected, I am obviously doing something wrong! (image attached)

= AND (L[-1] < ID2.SG2, C[-1] > ID2.SG2)

Would appreciate it if someone could please point out my error :)

Thanks!
Date Time Of Last Edit: 2019-09-03 13:55:23
imageCurrent.png / V - Attached On 2019-09-03 13:52:23 UTC - Size: 32.11 KB - 183 views
imagePrior.png / V - Attached On 2019-09-03 13:52:36 UTC - Size: 33.1 KB - 189 views