Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

Hull ROAR – Rate of Annual Return Amibroker AFL Code

33 sec read

Hull ROAR indicator helps in identifying the fastest raising shares and filters it out of the fastest rising shares. Hull ROAR is the brainchild of Alan Hull (author of active investing). ROAR stands for Rate of Annual Return. The rate of annual return is calculated by taking the annual increase in price activity and dividing by the current share price. The result is multiplied by 100 to convert it to a percentage.

Trading Rules

1)Filter Fundamentally Good Bluechip Stocks
2)Buy stocks/index if the Current Rate of Annual Return is greater than cutoff rate
3)Exit stocks/index if the Current Rate of Annual Returns is lesser than cutoff rate

Here are the backtested results for Nifty 50 index on Weekly timeframe with cutoff rate of 10%

SymbolTradeDatePriceEx. dateEx. Price% chgProfit Points
NIFTY 50Long24/05/961085.0322/11/96850.33-21.63%-234.7
NIFTY 50Long27/06/971169.6509/01/981033.55-11.64%-136.1
NIFTY 50Long07/05/991062.916/06/001477.338.99%414.4
NIFTY 50Long05/04/021141.9506/09/02995.2-12.85%-146.75
NIFTY 50Long11/07/031161.6523/07/041601.637.87%439.95
NIFTY 50Long04/02/052077.9517/11/063852.885.41%1774.85
NIFTY 50Long01/12/063997.606/06/084627.815.76%630.2
NIFTY 50Long26/06/094375.507/05/105018.0514.69%642.55
NIFTY 50Long29/10/106017.715/04/115824.55-3.21%-193.15
NIFTY 50Long13/07/125227.2512/07/13600914.96%781.75
NIFTY 50Long28/02/146276.9529/05/158433.6534.36%2156.7
NIFTY 50Open Long19/08/168666.902/01/178179.5-5.62%-487.4

Hull ROAR Indicator formula (Active Investing style) – Amibroker AFL Code

Note : The below AFL code is recommended to use in Weekly Charts

https://gist.github.com/0186910c1fced1fcbf1f45f2655519bd

Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

Algomojo Index Straddle/Strangle Execution Module with Intraday Stoploss

This tutorial focus on how to automate your index straddle/strangle strategy with intraday stop-loss levels with time-based entry and exits using Algomojo Platform and...
Rajandran R
7 min read

Learn How to Login into Algomojo Account using Amibroker

In the last tutorial, we learn how to automate the algomojo login process and in this video tutorial, we are going to learn with...
Rajandran R
1 min read

Amibroker Execution Module – Hedged Index Futures for Directional…

In the last tutorial, we learn the importance of Hedging Futures Position with OTM Options for Reduced Margin. This tutorial focus on how to...
Rajandran R
14 min read

5 Replies to “Hull ROAR – Rate of Annual Return Amibroker AFL…”

  1. rajandran sir. aapki help chahiye.for fix single error. there are in error at word study

    //@version=2
    //
    study(“CDC Action Zone 20170101″, overlay=true)

    src = input(title=”Sorce”, defval=ohlc4 , type=source)
    prd1 = input(title=”Fast EMA”, defval=12, type=integer)
    prd2 = input(title=”Slow EMA”, defval=26, type=integer)
    Fast = ema(src,prd1)
    Slow = ema(src,prd2)
    macd = Fast-Slow
    Bullish = macd>0
    Bearish = macdFast
    Yellow = Bullish and srcSlow
    Brown = Bullish and src<Fast and src<Slow
    Red = Bearish and srcFast and srcFast and src>Slow

    Buy = Bullish and Bearish[1]
    PreBuy = Blue and Blue[1] and Blue[2] and Blue[3] and src<src[2]
    BuyMore = barssince(Bullish)25 and src2 and src0? green : red)
    barcolor(barcl)

    1. Alan Hull Website Reads “Rather than use the change in value over one year, which is a little blunt, we can take a sample over a shorter time frame and annualise the result. And, to provide a degree of smoothing, the price values can be taken from a moving average like the Hull Moving Average or using linear regression.”

      1. This is not working on my amibroker. The indicator says empty when used on weekly charts,doesn’t work for smaller time frames as well.
        Could it be due to lack of data?. I have one year historical data.
        kindly suggest what could be done.
        Thank you

Leave a Reply

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