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
atlante hi nicolas this indicator have 2 wrong borderline and islalastbarupdate. thank you can you h...
Nicolas That'"s because you are not using PRT v11? Just remove lines 59 to 62
Kanamax Hi Roberto, sorry for my confusing previous posts (forget them). My request is very simple,...
robertogozzi Please start a new topic in ProOrder support.
robertogozzi There you go: myMagicTrend = CALL “Magic Trend custom”[20, 14, 1, 5] alpha = 105 b = 0...
johann8 exactly :) Thank you all for the help!
max_92 Ciao Roberto, ho scaricato l'indicatore e come ti avevano già scritto sopra anch'io vedo la ...
Xenotrax A première vue, sa à l'air d'être un indicateur très puissant sur de petites temporalités, j...
merri Bonjour Nicolas, Comment transformer cet indicateur en bot sur PRT ?
Nicolas Cela a déjà été fait, voir ce sujet: https://www.prorealcode.com/topic/strategia-con-lindica...
Nicolas change the last line with: return v coloured(r,g,b) style(line,2), v+band coloured(168,168,1...
Paolo.B Thanks ... works as i wanted.
Kanamax Bonjour Nicolas, comme Paolo.B je souhaiterais utiliser cette indicateur au sein d'un code. ...
Boris Hi IVMcm, thanks for your amazing work. I have tested all of your indicators and use some of...
IV Mcm With pleasure and thanks!
ashiash how to use this indicator can i use tradingview platform
zilliq Thanks @Nicolas. I tried to use it as Trend in a proorder system, but don't know why, it doe...
Suzu Yuk He is right. MT and mavgMT are not defined and causing errors.....
Maxime Baudin Super travail !
Yanic c'est top j'adore
Maxime Baudin Merci l'ami, passe une bonne semaine
IV Mcm Merci de même ;)
Finning Hi JuanJ, just a question about the tollerance*pointsize. I know what it is/what it does (in...
JOKAMAURICE Hi I am looking to number bars in a chart to ease analysis. Any idea if a program has been d...
goldenfish67 Hi guys just copied the code but I keep getting an error message: "Line 15 one of the fo...
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/
idunnomuch IS this working in the latest version of prorealtime? I get the indicator, but not over my c...
bernardmorel egalement apparait en dessous du graphique mais vide
bernardmorel Bonjour est t il possible de remettre en ligne the strat car il y a une indication qui d...
Daniele Maddaluno Écrivez-moi où vous préférez you can easily find me on LinkedIn
AK27 C'est payant visiblement sur linkdin je peux pas vous envoyer, discord vous avez ?
Nicolas C'est dans ce sujet: https://www.prorealcode.com/topic/trendline-une-approche-du-trading/ M...
Pensera Bonjour Nicolas, comment est-il possible de backtester cet indicateur? cela fait une erreu...
Nicolas Oui bien sûr, il doit y avoir pas mal de sujets dans le forum à ce propos.
Manu L. Bonjour Nicolas, j'ai créé un screener avec l'aide à la prog en TF weekly mais je voudrai...
wtangsiri C'est exactement le même signal que donne le croisement et le décroisement de deux EMA (7 et...
PHAN100 bonjour, j'ai un bug sur le programme recopié prorealtime me dit qu'il y a un problème à ...
IV Mcm Vous devez faire un clic droit sur le prix > propriété > ajouter indicateur Si vous...
punch1 Fonctionne pas chez moi il s'affiche rien pourtant j'ai bien fait le clic droit sur le prix ...
punch1 Je peux te faire un screen d'ecran si tu as un email :)

Top