Moving Average Cross Alert Study for Think or Swim

Here’s a script that shows how to trigger an alert on a moving average crossover, but only after the bar that caused a crossover has completed. I have an arrow plotted intrabar if the averages cross, and it disappears if they uncross. This same thing can happen to alerts based on the crossover, giving you an alert that is later invalidated. The way around it is to have the alert look one bar back, so it won’t trigger until the first tick after a crossover bar is finished.

The script is called “MACrossover_w_AlertsSTUDY.ts”, and is free at my Google site under
“Released Thinkscript Studies”.

Tags: , , ,

13 Responses to “Moving Average Cross Alert Study for Think or Swim”

  1. tim Says:

    Thank you! This is so helpful, especially since I am just learning TS ~ CHeers

  2. Phillip Says:

    hey great alert..i really appreciate the work you put in.. i was wondering if there was any way to change the sma to a ema..i use 2 emas for my crossover alert. im not a techy person so i would have no idea to do that. thx alot ,Phill

  3. Prospectus Says:

    You change average() to expmovingavg() basically.

  4. Ken Says:

    I love the idea of triggering an alert. Would it be possible to make it text my cell phone too?

  5. Prospectus Says:

    If you use the marketwatch tab and have it email on the alert triggering, then yes it can text your phone.

  6. Simon Says:

    Nice work here. Thanks.

    The email alert does not work on this alert. Has anyone tried it?

    I understand the system is not setup for this functionality (custom indicator email alerts yet, well so TOS tell me.

  7. ben Says:

    Hey is it possible to do the same thing but only wiht MACD. I would like to get a cell phone alert when the MACD goes bellow the zero line.

  8. Taylor Says:

    How do you import these?? Have no clue here!

  9. Prospectus Says:

    See this post:

    https://readtheprospectus.wordpress.com/the-complete-beginners-guide-to-using-custom-thinkscripts/

  10. brydochi@gmail.com Says:

    “and” I also want volume greater than volumeavg. how do I add this to this alert?

  11. Frank Says:

    Very Nice Study with alert! I have the alert selected however I am not sure what parameters to set (Plot fastema or plot slowema or both)

  12. Rick Hadlock Says:

    Nice. How do I set the Alert? I want to be alerted when price crosses above its 10-day SMA. How are the Alerts given? Can I set this to come to cell phone?

  13. Patrick from Ireland Says:

    Hi Thank you got yr MA crossover study working except for notification to my email. The study is working fine in “Messages” located btw “Home screen” and “support chat” and sound also working perfectly

    The email notification function is working fine in the create alert function e g the drop down function one gets while in charts to say create alert for price movement above or below a specific price.

    So at a loss as to how to get email notification working within your study. Would appreciate help and TIA

    Patrick

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: