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.

AFL code for 5-13 EMA-Offset Channel Trading system

31 sec read

Nifty Daily chart
5-13 EMA offset channel AFL on the Nifty daily chart

The Nifty 5-13 EMA offset channel trading system is just the variant of the Advance Get 6-4 Channel trading system where a 6 day moving average is  offset by 4day Moving average offset and the resulting indicator is plotted. In our case 5 EMA is  offset by 13day EMA. Check out the Nifty daily and weekly charts for the recent buy and sell signal’s made by this trading system.

Buy and Sell Rules are Simple
1)Buy if the candle closes above the EMA Offset cloud
2)Sell if the candle closes below the EMA offset cloud
3)Trailing stop loss is Lower Cloud Value in case of Buy Signal and Upper Cloud value in case of Sell signal

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

Scanning,Exploration and Buy or Sell Signals features added to the trading system. You can also follow the 5-13 EMA channel on hourly Nifty futures.

Nifty Weekly Chart
Nifty Weekly

Download 5-13 EMA-Offset Channel Trading system AFL code

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.

14 Replies to “AFL code for 5-13 EMA-Offset Channel Trading system”

  1. what a colection . but as a trial version user cant do exploration.
    can’t have metastock alternative sir?
    will 5,13 ema cross over exploration will do?

  2. outstanding research work ur doing. keep it up and wish for your profitable trade. One thing i wish shall i plot this in ichart charts and chartnexus (free) charts. kindly clarify plz. thank u.

  3. i mean to say that i have ema 5,13 cross over exploration in metastock. can it explore buy signal for this system. or if u can suggest where can i get metastock exploration for this afl

  4. sir ,
    For postnal trading we have got so many good afl codes, thanks to you , but what is required is an excellent afl code for intraday trading , looking for the same soon from your side . tx in adv.

  5. hai,

    Mr Rajendran

    Thanks for afl codes ,but how to get connected to amibroker software
    plse guide me

    srinivas murthy
    9820448599

  6. @Jitin

    I think the same can be applied for intraday with 5,10,15 min time frames
    just backtest and check which suits your intraday trading style.

  7. Hello Rajandran Sir,

    I just want to know about circuit bracker…how to know which stock is crossing and ready to go in circuit…

  8. Dear Sir,
    I hope that this will be better in 5-13 channel trading.

    _SECTION_BEGIN(“5-13 EMA Channel”);
    A = EMA( H,5 );
    B = EMA( L,5 );
    D=.0009;
    xt=A+A*D;
    yb=B-B*D;
    PlotOHLC(xt,xt,yb,yb ,””, ColorBlend( colorGreen, 0.9 ), styleCloud|4096,0,0,13);
    Plot(xt+.5 ,””, colorBlack, styleLine|4096,0,0,13);
    Plot(yb-.5 ,””, colorBlack, styleLine|4096,0,0,13);
    _SECTION_END();

  9. Dear Sir..thanks for so many useful AFL and products and congr8s for the Tie-up for DATA FEEDING..

    Sir i am unable to use some AFL..in my MT4
    5-13 EMA-Offset Channel Trading system AFL code ,
    SDA2 Trend Trading System โ€“ AFL code
    Ichimoku Cloud Scanner v2.0 โ€“ AFL Code
    NMA Swing Explorer

  10. exploration is showing every stock everyday…how do u write exploration only for a crossover not the following days ???

Leave a Reply

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