Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. 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. Now the recent curiosity on building Trading AI Agents.

Hull ROAR – Rate of Annual Return Amibroker AFL Code

44 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. This Hull ROAR AFL plots it in Amibroker, and you can use it with a list of stocks in uptrends.

Hull ROAR AFL on Nifty weekly chart

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

OpenAlgo Desktop: algo trading on your own computer

WINDOWS, MAC AND LINUX

OpenAlgo Desktop: algo trading on your own computer

Install, sign in, connect your broker and trade. No server to set up and no Python to install.

  • Same API and screens as OpenAlgo web
  • Strategy module, charting and scalping terminals
  • Keys stay encrypted on your machine

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 Hull ROAR AFL code is recommended to use in Weekly Charts

https://gist.github.com/0186910c1fced1fcbf1f45f2655519bd
Marketcalls Elite Traders Club

MEMBERSHIP

Marketcalls Elite Traders Club

Every Marketcalls course and live mentorship in one membership: 127 courses and 2,500+ hours of learning.

  • Market Profile, Orderflow, AFL, Pine Script and Python
  • Live mentorship and TradEdge trading room
  • Premium tools and the Elite Slack community

Learn by watching: free videos every week

Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.

Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. 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. Now the recent curiosity on building Trading AI Agents.

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