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
roccafragius Thank you Ivan for your indicators, very very interesting!!!!
kats Bonsoir, Pensez vous pouvoir répondre à ma question posée ci dessus? Ce serait vraiment tr...
Iván Bonjour L'ensemble de l'indicateur est alimenté à partir de la ligne 9 avec la définition d...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
Iván
3 weeks ago
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
WhyAskOZ Hi, Ivan As always you are doing great coding. The code works on my PRT, however the issu...
Iván You can delete in the last line (return) the configuration for color. Delete coloured(xx,xx,...
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Stenozar Hi Ivan, can you translate from tradingviwe the EMA TREND METER INDICATOR? It couid be inte...
Iván Hi Yes I can. Please, create a new topic for that I will translate it.
Stenozar Hi Ivan, I've created a new topic about the indicator: https://www.prorealcode.com/topic/ema...
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
Iván
2 months ago
Iván I personally like it in daily timeframe
oliTR Many thanks Ivan, I copy/paste your code to try it but could only get a constant stable unif...
Iván Hi, I've copied the code above and it works... what asset are you trying? $indices array ...
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Iván
2 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
3 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
Iván
3 months ago
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
sfl Removing the short side will help, I would like to know from the author where are the condit...
WE ARE SOCIETY DEFPARAM cumulateOrders = False rem CAC40 (france40) en 10 secondes rem à la ligne ci-dess...
David Daget Bonjour. A noter que cette stratégie fonctionne aussi sur le ftse. Ce qui n'est pas surprena...
Alai-n I really like it when you develop ideas around price movement! I am much less a fan of all t...
elcortijoverde Muy buen trabajo.Intuitivo y claro.Gracias por tu dedicación y aportación.
Nicolas Simple strategy with this indicator is available here: https://www.prorealcode.com/topic/ut-...
FXtonio Nicolas.... MERCI 1 millions de fois, cet indicateur gagne dans 75% des cas en scalping m1 ...
davy42 bonjour, à quel moment apparait le fleche, à l'ouverture ou la fermeture de la bougie? merci
Nicolas
9 months ago
B-Xtrender
B-Xtrender
8
Indicators
616248 Bonjour Nicolas, Peux tu nous expliquer le principe de fonctionnement ? Ou nous mettre un...
Nicolas Le lien vers l'article IFTA de l'auteur est dans le post déjà :)
P. Marlowe Very poweful indeed. It deserves close attention. I really appreciate very much IFTA backgro...

Top