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 |

Alert for a "touch" of a ma or trendline Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
timewarp
Posted : Saturday, December 26, 2015 9:59:40 AM
Gold Customer Gold Customer

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.

Bruce_L
Posted : Tuesday, December 29, 2015 10:39:17 AM


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
timewarp
Posted : Tuesday, December 29, 2015 12:35:02 PM
Gold Customer Gold Customer

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

Bruce_L
Posted : Tuesday, December 29, 2015 1:22:21 PM


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
timewarp
Posted : Wednesday, December 30, 2015 10:27:06 AM
Gold Customer Gold Customer

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?

Bruce_L
Posted : Wednesday, December 30, 2015 10:56:21 AM


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
timewarp
Posted : Wednesday, December 30, 2015 12:49:42 PM
Gold Customer Gold Customer

Joined: 12/16/2015
Posts: 15

Thanks again.

Bruce_L
Posted : Wednesday, December 30, 2015 1:08:35 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-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.