TC2000.com• Download software • Tutorial videos • Subscription & data-feed pricing • Class schedule
TC2000Brokerage.com• New account application • Trading resources • Margin rates • Stock & option commissions
Worden Discussion Forum
Customer Training & Support
Ask a Trainer - TC2000 version 12/18
Expressing a figure as percentage.
Bruce (or anyone else...),
How would I write an indicator that expressed a 20-day simple moving average of a 50-day average true range ... but rather than expressed as a number (I've already done this), I'd like it to be expressed as a percentage.
For example, I show a 20 SMA of a 50-day Average True Range on AMZN to be 10.07. I'd like that 10.07 figure to be expressed as a percentage (so 1.2% based on the Monday, March 20 closing price).
If you want it expressed as a percentage of the closing price then you could write the following in TC2000 v17.
100 * AVG(ATR50, 20) / C
Thanks Bruce...much appreciated!