Support Board
Date/Time: Fri, 10 Jan 2025 23:05:59 +0000
Post From: Color Bars when n Bars above Moving Average.
[2016-10-02 17:29:29] |
User150371 - Posts: 70 |
Hello, I am trying to color bars after there has been a sequence of n bars whose Lows have been above a moving average. eg the Low of the last 10 bars has been above the 20 MA. I have tried using the Color Bar Based on Alert Condition and the following formula =AND(L>ID:6.SG1,L[-1]>ID:6.SG1,L[-2]>ID:6.SG1,L[-3]>ID:6.SG1,L[-4]>ID:6.SG1,L[-5]>ID:6.SG1,L[-6]>ID:6.SG1,L[-7]>ID:6.SG1,L[-8]>ID:6.SG1,L[-9]>ID:6.SG1) where ID:6.SG1 is the 20MA. But this is not achieving the desired results. Is there a better way to do this ? Thank you. |