New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
I am trying to figure it out how to setup 'Alert' for
1-month price closed above 10-month SMA
1-month price closed below 10-month SMA
How do I create alert?
0
Comments
I am assuming you mean the current close closes above or below the sma10 for the first time.
For the cross above, it would be
and [monthly close x monthly sma(10, monthly close)]
For the cross below, the terms just switch sides
and [monthly sma(10, monthly close) x monthly close]
I think you also need to select a group (like DOW30 or SP500) or one of your Chart Lists. You can select one from the drop downs below the alert (or scan) window. The group or list should be the very first line of your scan.
You probably want two separate alerts, one for the cross above, one for cross below.
Since you are asking for conditions in the monthly time frame, but scanning intraday, there may not be much advantage to using alerts rather than scans at the end of the day, which I think can be more flexible. But that is for you to decide.
Be sure to read ALL the alerts documentation to get a feel for how they work.
First you pick your group to alert or scan against. Could be a Chartlist(s) you create, or an Index(es) or sector(s) or individual stocks by name.
Next you select the filter criteria
The link below shows how you'd go about it.
https://support.stockcharts.com/doku.php?id=scans:advanced_scan_syntax:crossover_scans
To change to MONTHLY prices and SMA, the link below shows how to modify
https://support.stockcharts.com/doku.php?id=faqs:how_do_i_create_a_scan_based_on_weekly_data
This link shows an incredible amount of sample scan codes. An excellent primer
https://support.stockcharts.com/doku.php?id=scans:library:sample_scans
The Alerts are basically the same as the Scans. If you can write the Scan, you can copy it into the Alert and vice versa and they should work exactly the same. Only important difference is that you can run a scan at any time and for any date(s) you want to. Alert is just for securities that match at the moment in the day.