Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
thnkbigr
Posted : Sunday, January 14, 2018 12:00:07 PM
Platinum Customer 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

Bruce_L
Posted : Tuesday, January 16, 2018 11:54:16 AM


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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.