Moving Average Crossover Indicator for RadarScreen and Charts

RadarScreen showing the CrossOverMA indicator with Bars Long and Bars Short columns

Purpose

Shows the number of bars that have elapsed since an MA crossover has occurred. Useful for scanning a large number of stocks for recent MA crossovers. The same indicator can be used on both Charts and RadarScreen.

Bars Long - the number of bars that have elapsed since a Long trigger occurred. Sort this column descending to see which stocks have just generated a Long trigger.

Bars Short - the number of bars that have elapsed since a Short trigger occurred. Sort column Bars Short descending to see which stocks have just generated a Short trigger.

By sorting either of these two columns in descending order, you can review all the stocks that have recently had an MA crossover. If a chart is loaded with the same indicator, and the Global link color is set to the same color on the RS window and the Chart window, then clicking on the Symbols in the RS indicator will allow the MA crossover to be shown on the corresponding chart, as shown below. In this way, many stocks can be monitored and reviewed very efficiently.

IBM chart showing a moving average crossover, opened from the first RadarScreen row
Fig. 1. Chart of IBM displayed when the user clicks on the first row of the RadarScreen indicator
Format Indicator dialog with typical CrossOverMA settings for RadarScreen
Fig. 2. Typical Formatting for CrossOverMA Indicator for RadarScreen

Note

When formatting the indicator, do not forget to check the "Load additional bars" box, under the General Tab, and set "Additional bars to load" to at least the length of the longest moving average used in the crossover.

Downloads

Initially posted version: 06/23/18

Latest Update: 10/08/18

*.ELD files are compiled for TS 9.1

Users of earlier versions of TradeStation may compile the code from the text files included in the above *.zip file.

The code may be visualized here:

Related Posts

Was this helpful? Rate it: