The heikin-ashi candles oscillator long term (HACOLT) trading strategy, as described in “Long-Term Trading Using Exchange Traded Funds” by Sylvain Vervoort in this issue, has been implemented as an automated strategy available for download at www.ninjatrader.com/SC/July2012SC.zip.
Once the strategy has been downloaded, from within the NinjaTrader Control Center window, select the menu File → Utilities → Import NinjaScript and select the downloaded file. This file is for NinjaTrader version 7 or greater.
You can review the strategy source code by selecting the menu Tools → Edit NinjaScript → Strategy from within the NinjaTrader Control Center window and selecting “HACOLTATS.”
You can review the indicator source code by selecting the menu Tools → Edit NinjaScript → Indicator from within the NinjaTrader Control Center window and selecting “HACOLT.”
A sample chart implementing the strategy is shown in Figure 8.
FIGURE 8: NINJATRADER, HEIKIN-ASHI CANDLES OSCILLATOR LONG TERM STRATEGY (HACOLT). This screenshot shows a backtest report on the HACOLT automated trading strategy, including results and a chart applied to a weekly series of the iShares MSCI Australia Index (EWA).