Registered User Joined: 8/21/2014 Posts: 2
|
Hello,
I really need help in writing the PCF for the following:
1. Current Day Range Less then Daily ATR
2. 5EMA Higher then range of first 30 Min (of current day)
3. 5EMA Lower then range of first 30min (of current day)
All of this is based on a 5min chart, so I don't know how to create those.
Thank you
|
Platinum Customer
Joined: 2/3/2010 Posts: 6
|
MASA!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
A Condition Formula checking for the range of the current trading day being less than the 14-period simple moving average of true range (what is used for ATR in TC2000 version 12.4) could be wrtitten as follows using a daily Condition Formula.
H - L < (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
Please provide a description and PCF for calculating an ATR value to be used as a stop loss value
There really isn't an automated way to check for the 5EMA being above or below the range of the first 30 minutes of the current trading day on a 5-minute chart. Since there is no way to automatically reference the first 30 minutes of the trading day, you would need to have a different formula for each 5 minute period during the trading day.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|