Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and 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. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

EMAavg – Amibroker AFL code

25 sec read

Here is the EMAavg afl code designed with the combination of Multiple EMA’s and modified Fisher Transform. EMAavg is again just a trend following system with winning ratio close to 50% with respect to nifty on EOD charts.


[wp_ad_camp_5]

 
The Buy and Sell Conditions are plotted based on the following conditions

Buy = C>EMAavg AND C>=EMA(C,10) AND fisherxform>=-0.0;
Sell =C<EMAavg AND C<EMA(C,10) AND fisherxform<-0.0;

Download EMAavg AFL code

Code is open source, free to distribute, and sharing and feedback recommended. Code currently supports Scanning and Exploration functions with Buy or Sell indications on the chart. Currently it doesn’t supports trailing stop loss indications

Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and 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. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

[Live Coding Webinar] Build Your First Trading Bridge for…

In this course, you will be learning to build your own trading bridge using Python. This 60-minute session is perfect for traders, Python enthusiasts,...
Rajandran R
1 min read

[Webinar] Understanding and Mitigating Curve Fitting in System Trading

"Understanding and Mitigating Curve Fitting in System Trading"! This dynamic session aims to equip novice to intermediate traders, quantitative analysts, and financial engineers with...
Rajandran R
1 min read

P-Signal Strategy Long Only Strategy – Amibroker AFL Code

This tutorial provides an overview of the P-Signal reversal strategy, a quantitative trading strategy that utilizes statistical parameters and error functions to generate probabilistic...
Rajandran R
2 min read

4 Replies to “EMAavg – Amibroker AFL code”

  1. Thank you so musch for the AFL………Great Job……Can I have AFL for EMA Crossover for the period of 3 and 15…..time frame…please…..

  2. Where can i learn coding using AFL language. Are there any sites or free tutorial/guide to learn writing trading logic using AFL language? Kindly suggest.

  3. Mr. Rajendran,

    If the signal comes in this afl, Will it flip? or sustain till next signal? please clarify my doubt. because signal is coming at the open of the next candle. can i buy at the open of the next candle? or should i wait for the candle close? how the code was written for the signal? Flip method? or Normal method?

Leave a Reply

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