Support Board
Date/Time: Sat, 20 Apr 2024 04:03:28 +0000
[User Discussion] - Simple Alert
View Count: 448
[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
|
Current.png / V - Attached On 2019-09-03 13:52:23 UTC - Size: 32.11 KB - 183 views |
[2019-09-03 14:06:29] |
Ackin - Posts: 1863 |
Hi Chris, also put [-1] to MA try this = AND (L[-1] < ID2.SG2[-1], C[-1] > ID2.SG2[-1]) Date Time Of Last Edit: 2019-09-03 14:10:43
|
[2019-09-03 14:10:15] |
Chris_uk - Posts: 89 |
Ackin, thanks very much :) Can't believe I overlooked [-1] for ID2.SG2 lol Cheers |
To post a message in this thread, you need to log in with your Sierra Chart account: