double top and double bottom detector – M&W patterns

v10.3
double top and double bottom detector – M&W patterns

Hi all,

I create an algorithm that detects local minimums and local maximums in the proximity were two crossing moving average are located.

Base on this information, then simple mathematics is use for detect and draw a triangle where a double top is located.

Please check it, improve the algorithm and share your luck!

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. swapping • 10/25/2017 #

    Very good Leo, thank for this detector

  2. yuzer • 10/25/2017 #

    Thank you so much my friend

  3. Alai-n • 10/25/2017 #

    Très intéressant Merci…

  4. Leo • 10/25/2017 #

    Popular post of the week! what an honour!
    We all are developing a system for trading double top or double bottoms here
    http://www.prorealcode.com/topic/dobule-bottom-or-double-top/

  5. Francesco78 • 10/25/2017 #

    great job! I will try to test it to see if I can find a nice robust strategy around it.

  6. lokbuscas • 10/25/2017 #

    Hi the signals that paint are fantástic. But I have one doubt. Does the indicator repaint? ? In the past marks very well ups and bottoms But in the present I haven’t any stock that the indicator shows the signals thank you

  7. proreal82 • 10/25/2017 #

    Take this indicator on the second timeframe, and you will see that it ”repaints’ the top and bottom. Maybe useful on a bigger timeframe, but not on the smaller ones.

    • Nicolas • 10/25/2017 #

      I don’t feel that this indicator “repaint” the way you think about. It gives signals afterwards, but it should not delete a signal given once bar is closed.

  8. lokbuscas • 10/25/2017 #

    Ok Nicolas
    Then is it posible programme a screener to look for stocks in daily for examine? ?

  9. lokbuscas • 10/25/2017 #

    Thanks proreal82

  10. Leo • 10/25/2017 #

    Screener done (waiting to be approved), with many improvements in the system

  11. lokbuscas • 10/25/2017 #

    Thanks leo

  12. bolsatonimora2 • 10/25/2017 #

    Please Leo, let us know when screener be approved!! 😉 many thanks!!

  13. sally31120 • 10/25/2017 #

    Bonjour,
    Merci à Léo!
    Le code est trop ardu pour mes connaissance, pourrait-on avoir un screener à partit du code de cet indicateur ?
    Un screener qui indique le passage de LMA de positif en négatif confirmé sur 3 barres (soit signal en zéro confirmation en 1 et 2, Achat ou vente en 3).
    Merci aux bonnes volontés.
    Cordialement

  14. Leo • 10/25/2017 #

    Hi Sally, we have already a screener, maybe is what you Need

  15. Sofitech • 10/25/2017 #

    Hi Leo. You code is very interesting (Indi+Screener). To use it in my trading i think i will maybe modify it to match the way i trade. I have a very simple question : arrows to spot the local maximums and local minimums are real time ? I mean they appear in real time where they are spotted or they appear few candles after ? Thanks

  16. Leo • 10/25/2017 #

    Hi Sofitech.
    You never know what then Price will do in the future. That why These gray arrows appears after a while ( when we know that, the specific Price was in reallity a local Minimum or local Maximum)
    I do not know if I expleain myself correct

  17. brendab180 • 10/25/2017 #

    How do you get the indicator on the chart and not in a frame below? Sorry new to this software

    • Nicolas • 10/25/2017 #

      Add it on the price chart with the wrench at the left upper side of your chart.

  18. rama • 10/25/2017 #

    how to read the this triangle? I have set up the indicator, little confusing when to buy when to sell

  19. Leo • 10/25/2017 #

    Hi Rama, that’s the issue with trading… where and when to trade. If you figure it out, please share 😉

  20. century • 10/25/2017 #

    hi,
    i have to thank you for this great piece of code
    works like a charm and very useful

    • Leo • 10/25/2017 #

      Nice to know! 😉

  21. Nick FX Junkie • 10/25/2017 #

    Hi Leo, Amazing indicators! Can you please advise if there is a way to utilize your indicator in a automated trading strategy.

    Can you suggest a code for an automated sell order or buy order when the arrows appear on your indicator. Cheers Nick.

  22. abhay • 10/25/2017 #

    can this indicator be converted in a way that it can be called in screener and return 1 or -1 for doubletop or double bottom formation

  23. bertrandpinoy • 10/25/2017 #

    bonjour je ne parvient pas a l installer sur PRT. erreur de syntaxe… et vous il fonctionne?

    • Nicolas • 10/25/2017 #

      Il vaut toujours mieux télécharger le fichier .itf et l’importer directement dans la plateforme plutôt que de faire des copier/coller.

  24. Breeze • 10/25/2017 #

    I am using an online trading platform in South Africa, I don’t know how to code, how would I run this code given the data that they supply me with?

    • Nicolas • 10/25/2017 #

      All codes on our website is made to be used with the ProRealTime trading software, you can try it for free there: https://www.prorealtime.com

  25. zen83 • 10/25/2017 #

    Many thanks Leo for your masterpiece indicator, I took the liberty of plugging into it Fibonnacci levels
    at the very end insert
    difrs=(resistance-support)
    F236=resistance -difrs*0.236
    F382=resistance -difrs*0.382
    F50=resistance-difrs*0.5
    F618=resistance-difrs*0.618
    F764=resistance-difrs*0.764
    and return them into the very last line
    … very amazing results

  26. antitrust56 • 10/25/2017 #

    Hi Leo,
    how to set up an audible alert to be notified of a doubletop or doublebottom detection ?
    Thanks for your answer

  27. parthapersonal • 10/25/2017 #

    Great job Leo.
    Dear Zen83, how do you, “return them into the very last line”?

  28. steve_ • 10/25/2017 #

    Hi!

    This thread is quite old, but let’s try…

    I’m new with Prorealcode and I’ve just disvovered “Double top and double bottom” indicator.

    It seems to be a very nice piece of code, nice work Leo !

    But I have a question about the associated screener.

    Would it be possible to sreen only recent bottoms ?

    For exemple, bottoms that appeared in the last x days ? (x as a parameter)

    Thanks !

  29. steve_ • 10/25/2017 #

    Hi!
    I’ve created a topic in french (translatable with Google function) here :

    https://www.prorealcode.com/topic/transformer-un-iindicateur-complexe-en-screener/

    I’ve developped a prototype of screener using Leo’s indicator.
    Please check it and give your opinion.
    Thanks!
    Steve.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+29 more likes

Related users ' posts
Maxime Leleux Nice screener but the 2 candelsticks around the doji should be long sticks (red and green). ...
Nicolas EDIT: identifying pattern number in the ProScreener window: https://www.prorealcode.com/to...
pyhrus Nicolas ,       Could you communicate to us the indicator you have used to draw patterns ...
Nicolas Description of falling/rising wedges: https://www.centralcharts.com/en/gm/1-learn/7-technica...
Wilko This code is the work of a simple genius! Profitability lies in simplicity and repetition.
Nicolas Good joke. FYI, you'll find many identified recurring patterns there: http://paststat.com G...
Yngve i added a MA as a filter, that improved the equity curve quit nice actually

Top