


See Figure 3 for an example Wealth-Lab chart displaying the CorrelationAngle indicator on AAPL.įIGURE 3: WEALTH-LAB.

The logic is simple: An uptrend switches the system into trend-following mode, with entries and exits made via channel breakout.

We define an uptrend when the CorrelationAngle’s state “flatlines” at 1 for 2 bars (or -1 for a downtrend). To illustrate the application of the indicator, you will find below a sample trading system that changes approach depending on the phase angle. In his article in this issue, “Correlation As A Cycle Indicator,” author John Ehlers follows up his article last month with a new mode-switching indicator, named the CorrelationAngle. The filename is “TASC_JUN2020.ZIP.” For more information about EasyLanguage in general, please see. The files for this article can be found here. To download the EasyLanguage code, please visit our TradeStation and EasyLanguage support forum. Do not allow the rate change of angle to go negative Y = -Sine( 360 * ( count - 1 ) / Period ) Y = Cosine( 360 * ( Count - 1 ) / Period ) Price = Sine( 360 * CurrentBar / InputPeriod) Here, we are providing TradeStation EasyLanguage code for an indicator based on the author’s work. The new cycle indicator can help the trader get into trades earlier and have better insight into prevailing market conditions. This new indicator is designed to help traders navigate cycling markets. In his article “Correlation As A Cycle Indicator” in this issue, author John Ehlers introduces a companion to the trend indicator he presented in his article last month.
