Registered User Joined: 8/27/2007 Posts: 19
|
Can you tell me how to write the following: Stock has an average true range of over 1.5.
Thank you.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You did not specifiy a period, but a Condition Formula for the 14-period simple moving average of true range being greater than 1.5 can be written as:
(AVGH14 - AVGL14) / 2 + (ABS(H - C1) + ABS(C1 - L) + ABS(H1 - C2) + ABS(C2 - L1) + ABS(H2 - C3) + ABS(C3 - L2) + ABS(H3 - C4) + ABS(C4 - L3) + ABS(H4 - C5) + ABS(C5 - L4) + ABS(H5 - C6) + ABS(C6 - L5) + ABS(H6 - C7) + ABS(C7 - L6) + ABS(H7 - C8) + ABS(C8 - L7) + ABS(H8 - C9) + ABS(C9 - L8) + ABS(H9 - C10) + ABS(C10 - L9) + ABS(H10 - C11) + ABS(C11 - L10) + ABS(H11 - C12) + ABS(C12 - L11) + ABS(H12 - C13) + ABS(C13 - L12) + ABS(H13 - C14) + ABS(C14 - L13)) / 28 > 1.5
Please provide a description and PCF for calculating an ATR value to be used as a stop loss value
It should be noted that there is a better way to do this however than writing a Condition Formula. Add the Average True Range indicator to the chart and adjust its setting as desired.
Adding and Moving Indicators
And then click on the ATR indicator to select Create Scan Condition. You will want to choose Greater Than from the Condition drop-down menu and set the Greater Than setting to 1.5.
Create Conditions from Your Chart
-Bruce Personal Criteria Formulas TC2000 Support Articles
|