Stop Reversal indicator

v10.3
Stop Reversal indicator

The indicator is pretty similar to a Supertrend but based on fixed steps with pips/points instead of multiple of ATR. The arrows plotted on the price chart are the reversal of this “supertrend”.
I added an option to display or not the line that show the trend and when the price is crossing it (showLine).
The “nPips” setting is the size in points/pips between the current close and the “stop and reverse” trend line. You should adapt it for the instrument and timeframe displayed on your chart.

 

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. Geronima Ortiz • 05/11/2018 #

    Grazie Nicolas,
    è possibile creare un sistema di trading con questo indicatore?
    Ho provato ma non ci sono riuscita
    Ciao

  2. Geronima Ortiz • 05/11/2018 #

    Thanks, Nicolas
    is it possible to create a trading system with this indicator?
    I tried but I could not do it
    Hello

    • Nicolas • 05/11/2018 #

      Yes of course, be sure to set ‘showline=1’.
      In your trading system, just test if the Close is crossing over or under the black line (variable name = myline). Just like what we do with a usual Supertrend for instance.

  3. Geronima Ortiz • 05/11/2018 #

    // Definizione dei parametri del codice
    DEFPARAM CumulateOrders = False // Posizioni cumulate disattivate

    // Condizioni per entrare su posizioni long
    indicator1 = CALL “PRC_StopReversal”[0.004, 1]
    c1 = (close >= indicator1)

    IF c1 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF

    // Condizioni per uscire da posizioni long
    indicator2 = CALL “PRC_StopReversal”[0.004, 1]
    c2 = (close <= indicator2)

    IF c2 THEN
    SELL AT MARKET
    ENDIF

    I was helped by the simplified creation
    I get this result, but it only works long.
    I would like to get the system to look for the best NPIPS.
    Can you help me? thank you

    • Nicolas • 05/11/2018 #

      You can try to optimize values for instruments/timeframes, like it is explained in this video: https://www.prorealcode.com/blog/video-tutorials/how-to-optimize-a-trading-system-with-probacktest-prorealtime/

  4. Geronima Ortiz • 05/11/2018 #

    I’m sorry to come back here,
    I can not transform your indicator into a trading system.
    can you help me?
    I believed that the simplified creation was useful for those like me who do not know anything about language, but no!

    • Nicolas • 05/11/2018 #

      You should test crossing of close with the indicators line and not if it’s above or below

  5. Geronima Ortiz • 05/11/2018 #

    // Definizione dei parametri del codice
    DEFPARAM CumulateOrders = False // Posizioni cumulate disattivate

    // Condizioni per entrare su posizioni long
    indicator1 = CALL “PRC_StopReversal”[0.004, 1]
    c1 = (close CROSSES OVER indicator1)

    IF c1 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF

    // Condizioni per uscire da posizioni long
    indicator2 = CALL “PRC_StopReversal”[0.004, 1]
    c2 = (close CROSSES UNDER indicator2)

    IF c2 THEN
    SELL AT MARKET
    ENDIF

    // Condizioni per entrare su posizioni short
    indicator3 = CALL “PRC_StopReversal”[0.004, 1]
    c3 = (close CROSSES UNDER indicator3)

    IF c3 THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF

    // Condizioni per uscire da posizioni short
    indicator4 = CALL “PRC_StopReversal”[0.004, 1]
    c4 = (close CROSSES OVER indicator4)

    IF c4 THEN
    EXITSHORT AT MARKET
    ENDIF

  6. Geronima Ortiz • 05/11/2018 #

    okay it seems to me that it works.
    I saw the video you reported to me, but I was not able to put NPIPS as a variable in order to optimize it.
    Can you help me please?

    • Nicolas • 05/11/2018 #

      If you follow the video, it’s easy as 1.2.3 🙂

  7. Geronima Ortiz • 05/11/2018 #

    I watched the video three times,
    but I can not put the npips parameter as a variable.
    I do not understand how to change the code to do it.
    If you can help me I would be happy, otherwise it does not matter.
    Thank you

    • Geronima Ortiz • 05/11/2018 #

      I think the video is for an old version of prorealtime, the images do not correspond at all to the current version.
      I abandoned the idea. Do not worry. That’s okay.
      Thank for all

  8. Nicolas • 05/11/2018 #

    indicator1 = CALL “PRC_StopReversal”[npips, 1]
    and define npips in the optimization window with its start, end and step of variable increment, that’s all 🙂

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
ferros bonjour , super votre indicateur!!!! est-il possible de l'avoir en histograme +1 /-1 por en...
IV Mcm V2 is coming
SudhirRN is this code working for on tradingview plartform?
Nicolas No. All our codes are made to be used with ProRealTime trading platform: https://www.proreal...
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
Bard Hello @Nicolas, I can get this to display in a separate indicator panel but not on Price as ...
Stenozar Hi @Nicolas, how can I put the bands on price? Thanks, Stefano
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
oraclus Bonjour indicateur très intéressant existe t il un screener qui détecte les actions qui donn...
IV Mcm Ce n'est pas le but de cet indicateur, mais avec un peu d'entraînement vous pourriez le code...
Yantra Thank you for sharing your good work!
Nicolas le code est déjà sur cette page, inutile de fournir un autre format ?! Les fichiers itf sont...
Novice-Surfer Hello IV Mcm, You are my leader ! Your work is incredibly precise, thank you very much f...
Mikolajek Merci pour votre excellent travail !
mickey992 salut merci pour ton partage et ton travaille
patapouf Hi Vivien René I just discovered your “Ordered trend-following stocks Screener”. Great work...
afanitro424 its not plotting on chart but instead as it's own histogram directly below chart? How to fix...
Nicolas by adding the indicator on the chart :)
Nicolas Oui c'est possible. Merci de ne pas poster des demandes qui sont hors sujets. Pour les deman...
Igor Merci pour cet itf. Question : comment faire pour instruire un screener ?
Nicolas tester le croisement du Close avec la première valeur de l'indicateur : "TrailingStop", faci...
jimkn0pf Christopher, wie saehe denn die Formel ohne Kontrollkerze (3. Kerze) aus?
Dunstan I would like to get guidance_ How do I access and attach this indicator to my MT5 platform...
Nicolas You can't, use prorealtime, it's way better
jc84 Thank you very much for this indicator , not provided by PRT I was actually working at thi...
Nicolas Oui le code est correct et il fonctionne, j'ai de bons résultats sur la liste NASDAQ par exe...
pincherman Bonjour :-) J'ai coller le script dans prorealtime pour jouer avec le supertrend et j'ai un...
Nicolas Vous l'avez sans doute collé au mauvais endroit, dans l'éditeur de code pour les stratégies,...
IV Mcm Bonjour, Je ne reconnais pas cette ligne dans le code, essayer de télécharger directement le...
Manu L. Bonjour, Possible de créer un screnner multiframe Mois dans Ichimoku semaine dans Ichimok...
Guillaume Mcm I gave the above message fix ;)
Tradingrob Is it possible to put the itf-file in the right way here in Prorealcode? so the right 'trend...
Guillaume Mcm Update link ;) https://www.prorealcode.com/topic/trend-histogramme-cci-mise-a-jour-suite-...
Screw27 Hi man, I installed the indicator and i don't know why but my graph it is so big
HelixKing sounds interesting I'll take a look
Godo Bonjour Souhait Sam, Après de nombreux essais pour le mettre en format afin d'utiliser ce c...
Nicolas Il faut supprimer celles qui existent dans la fenêtre d'optimisation et les créer en dur dan...
crusoe76 hi there, anyone can help making this strategy work, i have a message saying replace variabl...

Top