OPEN-SOURCE SCRIPT

Accelerating Dual Momentum Score

This is a score metric used by the Accelerating Dual Momentum strategy.

According to the website you referenced when you created, the strategy is as follows:

Strategy Rules
This strategy allocates 100% of of the portfolio to one asset each month.


1. On the last trading day of each month, calculate the “momentum score” for the S&P 500 ( SPY ) and the international small cap equities (SCZ). The momentum score is the average of the 1, 3, and 6-month total return for each asset.

2. If the momentum score of SCZ > SPY and is greater than 0, invest in SCZ.

3. If the momentum score of SPY > SCZ and is greater than 0, invest in SPY .

4. If neither momentum score is greater than 0, calculate the 1-month total return for long-term US Treasuries ( TLT ) and US TIPS (TIP). Invest in whichever has the higher return.

Source: portfoliodb.co/portfolios/accelerating-dual-momentum/
dualmomentumMomentum Indicator (MOM)momentumindicatormomentumstrategy

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer