Support Board
Date/Time: Fri, 29 Nov 2024 18:52:19 +0000
Post From: Loop Statements with Color Bar Based on Alert Condition
[2020-07-06 17:22:00] |
MecGrp - Posts: 12 |
I am trying to put the following statement in a loop because it appears there a a character limitation on the Alert condition formula. I want it to loop/calculate 'x' number of times/bars. But not to be confused with just calculating "x numbers of bars ago" AND( ID21.SG1 > 0, ID21.SG1 > (IF (ID21.SG1[-1]<0,(ID21.SG1[-1]*-1),ID21.SG1[-1])), ID21.SG1 > (IF (ID21.SG1[-2]<0,(ID21.SG1[-2]*-1),ID21.SG1[-2])), ID21.SG1 > (IF (ID21.SG1[-3]<0,(ID21.SG1[-3]*-1),ID21.SG1[-3])) ) Any help will greatly be appreciated. |