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.

Harmonic Patterns AFL Code for Amibroker

14 sec read


Harmonic Patterns
Today I was searching for an AFL code which could interpret Harmonic pattern like
AB=CD, Gartely, Crab, Bat and Butterfly and finally landed in inditraders forum.
I thank joy  for writing this excellent Script. Which makes my work easier in
tracking Harmonic Patterns.

Harmonic Pattern-Amibroker AFL Code

Download the AFL for Harmonic Patterns

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.

How to use Amibroker to Parse the Position Book…

This is a simple tutorial that explains how to access the position book using Amibroker and get various details about the position book details...
Rajandran R
2 min read

Mini Certification Course on Algorithmic Trading Strategies

If you are new to Automated trading? This certification course will help you to kickstart your automated trading with your broker and get to...
Rajandran R
1 min read

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

29 Replies to “Harmonic Patterns AFL Code for Amibroker”

  1. while searching i found this usefull post hope u again continue with this use full post. harmonic pattern


  3. Hi Rajandran Sir,
    This looks very interesting!!
    Can you pls elaborate how to use, how to take buy/sell signals. Also, fractal points are real- time data based or it looks for future data. I mean is it repainting code used to generate fractal points.

  4. Howcan we have the pattern name displayed on chart when the pattern is formed. currently by using this afl, we have to click the last leg point to see which pattern it is and once we click at some other place then the pattern name will not be visible. How to show the pattern name on the chart when it is formed. Any thoughts? Thanks

    1. Hi Rajendran, Did you get a chance to look at my comment posted on December 2, 2014 at 7:06 pm. Requesting you to respond to that with the solution. It would be really great if you could do so. Thank you


      1. Looking for pesavento patterns afl
        BillMcready of forextradingsecrets uses it a lot.
        Can you help please

  5. Dear Rajendran,

    I am regular follower of your site especially Amibroker AFLs. I can say your blog is one of the best Technical analysis blogs in world which i have ever seen, Thanks a lot for sharing such educational and highly skillful ideas with us. Here I have request on Harmonic patteren AFL..

    Could you include other Harmonic pattered like 3 drives pattern and 5-0 patteren in you exisiting harmonic patteren AFL. and publish also most of the times this AFL is not displaying what is the pattern and Entry, SL and Exit. and add exploration scanner which we can scan it.Could you tweak this AFL with this points and republish it. You can find information about above patterns in below link.

    Once again thank a lot in advance keep you post such education and foreknowledge blogs.


  6. Dear Raja Mohan, Sir
    I request you to very kindly please tell me how to set up Scan/Explore in Ami? i get errors:’You need to define filter variable/ Missing buy/sell variable assignments
    thanks in advance

  7. Dear Raja Mohan Sir
    please also note that by this scanning of Harmonic AFL, patterns are not formed and names of the patterns are also not reflected. kindly help, am highly grateful

  8. Dear Rajandran
    this is a good AFL. thanks for the same. but it does not display the pattern and pattern name. please do the necessary modification. thanks in advance.

  9. Dear Rajendran,

    I hope you are doing great, Could you please respond to my query which i have posted on 16th December. It will be very helpful to if you could tweak AFL as requested. also please confirm can we scan this existing AFL to find which patterns are formed.withI am eagerly awaiting for your fruitful response.

    Wish you advance happy& prosperous new year,

    Thanks in advance

  10. My Dear Rajandran
    hope you are all well. just like Raja Mohan, i too am eagerly for some modification in the said AFL so that patterns are displayed and also the names appear on the chart.
    hope you will have find some time to do this. and oblige.
    Wishing you Happy New Year 2016.

  11. Dear Rajendran,

    Could you please provide update which i have post earlier regarding modification of existing AFL for Harmonic patterens.. I am expecting reply from you (Yes/No anything is fine)..

  12. Dear Rajendran,

    Thanks for your reply. Could you please help us or suggest any point of contact for update to add new these new patterns in existing Harmonic pattern AFL. It would be really helpful for us if you can provide details,


  13. dear rajendran sir
    can you pleae add fibbonacci extension for target and stop loss at point d . i like this afl very nice for making money but here i want to add some more points that if pattern is valid or not for that please add confirmation of buy or sell signal in afl with tgt & sl

  14. showing warning 505 division by zero divisor array at [157] equal 0
    im using amibroker 6

  15. I have studied Harmonic Patterns carefully. There are serious drawbacks in these patterns. You can also study them using Bar Replay in Amibroker. You will also come to know that most of the patterns are faulty.

Leave a Reply

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