The AIQ code based on Ken Calhoun’s article in the February 2017 issue of Technical Analysis ofSTOCKS & COMMODITIES, “Volume-Weighted Moving Average Breakouts,” can be found at http://aiqsystems.com/Volume-Weighted-Moving-Average-Breakouts.EDS
Please note that I tested the author’s system using the NASDAQ 100 list of stocks on daily bars rather than intraday bars from 12/31/2008 thru 2/10/2017. Figure 7 shows the resulting equity curve trading the author’s system with the cross-down exit. Figure 8 shows the ASA report for this test. The annualized return showed about a 17% return with a maximum drawdown of 19%.
FIGURE 7: AIQ. Here are sample test results from the AIQ Portfolio Manager taking three signals per day and 10 concurrent positions maximum run on NASDAQ 100 stocks (daily bar data) over the period 12/31/08 to 2/10/07.
FIGURE 8: AIQ. This shows the ASA report for the system, which shows the test metrics and settings.
The code and EDS file can be downloaded from http://aiqsystems.com/Volume-Weighted-Moving-Average-Breakouts.EDS , and is also shown below.
!Volume-Weighted Moving Average Breakouts !Author: Ken Calhoun, TASC Apr 2017 !Coded by: Richard Denning 2/11/17 !www.TradersEdgeSystems.com !INPUTS: smaLen is 70. vwmaLen is 50. SMA is simpleavg([close],smaLen). VWMA is sum([close]*[volume],vwmaLen)/sum([volume],vwmaLen). HasData if hasdatafor(max(smaLen,vwmaLen)+10)>max(smaLen,vwmaLen). Buy if SMA < VWMA and valrule(SMA > VWMA,1) and HasData. Sell if SMA > VWMA. rsVWMA is VWMA / valresult(VWMA,vwmaLen)-1. rsSMA is SMA / valresult(SMA,smaLen)-1.