Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Modified Triple Momentum Strategy – Amibroker AFL code

1 min read

Triple Momentum Strategy is from Gerald Appel, introduced in his 2005 book, “Technical Analysis: Power Tools for Active Investors.” It’s included on pages 58-63 of his book. That section is headed, “The Triple Momentum Nasdaq Index Trading Model.” Gerald Appel, is also probably best known for his creation – Moving Average Convergence Divergence (MACD).

Mr. Appel’s Says, “There is only one buy rule and only one sell rule: You buy when the Triple Momentum Level, the sum of the 5-, 15-, and 25-day rates of change, crosses from below to above 4%. You sell when the Triple Momentum Level, the sum of the 5-, 15-, and 25-day rates of change, crosses from above to below 4%.“

[wp_ad_camp_5]

 

Here is a slightly modified Triple Momentum Strategy which works good with Equities and Commodities for Positional Trading and one can consider this as a low risk strategy.

“There is only one buy rule and only one exit rule: You buy when the Triple Momentum Level, the sum of the 5-, 15-, and 25-day rates of change, crosses from below to above 4%. You Exit Longs when the Triple Momentum Level, the sum of the 5-, 15-, and 25-day rates of change, crosses from above to below 0%.“

Nifty Hourly Charts

Nifty Spot Hourly

Steps to Install the Indicator

1)Download Triple Momentum Timing Model
2)Unzip the files Triple Momentum Timing Model.afl and Triple Momentum Indicator.afl to //amibroker//formulas//system// folder
3)Apply both the indicators to the New Blank charts

Backtesting with Nifty hourly Charts
Backtested the strategy on the Nifty Hourly Charts(Spot) since June 2009 with 2lots of Nifty and Rs100 per leg as a brokerage (i.e Rs200 per buy and sell transaction). Here are the results

Triple Momentum Backtesting

Equity Curve
Equity

Profit Table
Profit Table

Underwater Equity
Underwater Equity

Recent Momentum Signals from Nifty50 pack

Sunpharma and TCS(Cash market) turned to Buy mode as the Triple momentum indicator crossed above the 4 level. One can hold the stock until the indicator hold above Zero. Cover your longs if the momentum enters the negative zone.

Sunpharma Hourly Charts
Sunpharma Hourly Charts

TCS Hourly Charts
TCS Hourly Charts

Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Line Trading – OpenAlgo Automation Module for Amibroker Users

The line Trading Automation tool is designed for Manual traders who want to perform level-based trade execution faster and also bring some advanced trade...
Rajandran R
55 sec read

Mini Certification Course on Algorithmic Trading

Welcome to the Mini Certification on Algorithmic Trading using Amibroker and OpenAlgo! This comprehensive 4-part series is designed to equip you with the knowledge...
Rajandran R
1 min read

Pivot Reversal Strategy – Tradingview Pinescript to Amibroker AFL…

Pivot Reversal Strategy is a popular in-built strategy in Tradingview Platform. Here I had attempted to convert the pinescript v5 to Amibroker AFL Code....
Rajandran R
3 min read

12 Replies to “Modified Triple Momentum Strategy – Amibroker AFL code”

  1. This is very useful site for traders (who uses algo). Thanks for designing such site and disclosing afl codes.

  2. what is your opinion of using this code for trading on commodities for positional trading?

  3. hi rajandran r, i’ve been using amibroker since last 1.5 years and i tried to run back test report many times without any success. so could you please help me how to run back test report in amibroker? thanks in advance!

  4. Hi…is it imperative to use this strategy on hourly charts only or can be used on 5-min chart

  5. hello sir iam a new trader, i want to trade with amybroker afl signal..is it correct to follow signal ..is it profitable or not..kindly help me if u have good afl

    1. One have to choose their AFL based on their risk profile. Go and test the afl statistically and then figure it out. Its a Do it on your own concept.
      You have to sit, test and explore based on your risk profile.

  6. Hi,
    When I test this strategy with NSE EOD data, it seems buy and sell in report is just the opposite, I mean, it’s asking to sell when price is low and in next few days, when price is high, it’s asking to buy. Can you please help me by explaining this?

  7. Hi
    How many days history needed to view the complete biography of buy and sell signals.

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More