Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/16/2015 Posts: 15
|
I'd like to set up an alert for an intraday pull back which gets very close to or touches a 10 day ema. It would also be helpful to do the same with a trendline.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
A Condition Formula for the price bar touching or crossing its own 10 period EMA can be written as follows.
(C1 < XAVGC10 OR L <= XAVGC10) AND (XAVGC10 <= H OR XAVGC10 < C1)
It does not specifically check for a pullback. If you want the touch or cross to have only happened in a downward direction (the previous close was above the moving average), then we could shorten the Condition Formula somewhat.
L <= XAVGC10 AND XAVGC10 < C1
If you have some other definition of a pullback, we would need to add it to the Condition Formula. We would also need to define "gets very close" if we wanted to check for that instead of actually touching or crossing.
You would need to create the Condition Formula first.
How to create and save a Condition (PCF) Formula
Then you can create a Condition Alert based on the condition as set the time frame of the alert as desired.
Setting & Managing Alerts (11:53)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/16/2015 Posts: 15
|
So if I wanted to define "very close to" as within 2% of the ema would the formula read
L<=XAVGC10+XAVGC10*.02 AND XAVGC10<C1
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
That would work. You could shorten it slightly to the following.
L <= 1.02 * XAVGC10 AND XAVGC10 < C1
You might also want to check that the low is actually below the previous close because you are comparing the low to 2% above the moving average while comparing the previous close to the moving average directly.
L <= 1.02 * XAVGC10 AND L < C1 AND XAVGC10 < C1
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/16/2015 Posts: 15
|
Thank you very much for your help. Is there any way to alert for the touch of a trendline?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Add the trendline to the chart. Then click on it and select Set Alert.
Using Drawing Tools in TC2000 (5:22)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/16/2015 Posts: 15
|
Thanks again.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |