Platinum Customer
Joined: 3/31/2006 Posts: 3,207
|
Bruce I need a PCF that plots the following indicator
If todays Gain/Loss is > ATR22 then plot 100 but if less plot today's move as a % of ATR22
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The non-directional version of this would be the following (it assumes gain/loss is net change).
IIF(ABS(C - C1) > ATR22, 100, 100 * ABS(C - C1) / ATR22)
The directional version of this would be the following.
IIF(ABS(C - C1) > ATR22, 100 * SGN(C - C1), 100 * (C - C1) / ATR22)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|