Reversal point indicator

v10.3
Reversal point indicator

This indicator finds and displays the potential bullish and bearish turning points using different parameters:

LONG SIGNALS
1. Red/Green candle (reversal)
2. Bullish candle close above the open of the previous red candle
3. Space to the left (the low of the last 3 candles lower than the low of the last 50 candles)
4. default stochastic (8,3,3) was in the oversold area within the last 3 candles

SHORT SIGNALS
1. Green/Red candle (reversal)
2. Bearish candle close below the close of the previous green candle
3. Space to the left (the high of the last 3 candles higher than the high of the last 50 candles)
4. default stochastic (8,3,3) was in the overbought area within the last 3 candles

Indicator coded by a request in the English forum.

 

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. Francesco78 • 04/09/2017 #

    Thank you, very interesting, work well on Italy 40 with 30m TF

  2. Stenozar • 04/09/2017 #

     Buonasera Nicolas, l’indicatore va inserito sul prezzo? ho provato ma il grafico mi viene schiacciato, non capisco perchè.
    Grazie
     

    • Nicolas • 04/09/2017 #

      Replace the last line with “RETURN” only. 

  3. Francesco78 • 04/09/2017 #

    Hi Nicolas, would it be possible to show the indicator as a series of 1 and -1 to be used as a external indicator, not one to be added on the chart, in order to make the backtest easier?
     

  4. Francesco78 • 04/09/2017 #

    I actually sorted it out
    golong = longgoshort = short*-1return golong as “LONG”,goshort as “SHORT”,0

    • Juzz Me • 04/09/2017 #

      Hey Francesco, this indicator is getting way too little praise – I find it extremely useful and effective. Would love to backtest it, but I can’t really figure out what exactly you changed in the code. Mind to enlighten me? Thanks!!

  5. diegofe_2000 • 04/09/2017 #

    gracias , muy bueno

  6. iramirez55 • 04/09/2017 #

    Bonjour, excusez mon français. Est-il possible de mettre les résultats des stratégies dans Excel? Comment vous pouvez combiner plusieurs stratégies pour l’ensemble des résultats?Merci a tous.
    Hello, sorry for my English. Is there a way to put the results of the strategies in Excel? How can you combine several strategies to see overall results?Thank you

    • Nicolas • 04/09/2017 #

      Please ask general purposes questions on forums. Thanks. 

  7. Sandrine • 04/09/2017 #

    Bonsoir Nicolas,
    Je vais sans doute poser une tien un peu bête, mais serait-il possible d’avoir ce code mais pour MT4, bien que ce soit un site pour PRT ?!

    • Nicolas • 04/09/2017 #

      Si il s’agit d’une demande privée pourquoi pas, mais il faudrait passer par le service programmation: https://www.prorealcode.com/trading-programming-services/

  8. simone • 04/09/2017 #

    i try that indicator Nicolas..give me some days for see how it work

  9. ericbesoramolins • 04/09/2017 #

    No sé lo que hago mal . si en la ultima linea solo dejo “return” no funciona y si lo pongo tal qual me altera la escala. me ayudas nicolas? gracias 

    • Nicolas • 04/09/2017 #

      En la configuración de precios, use la escala automática del eje vertical para usar sólo el precio.

  10. puabai99 • 04/09/2017 #

    Hello can anyone help me turn this into mt4 code? Please. I don’t know anything about coding.

    • Nicolas • 04/09/2017 #

      This website is dedicated to Prorealtime programming. However, you can ask for personalized codes at the programming services : https://www.prorealcode.com/trading-programming-services/

  11. JohnScher • 04/09/2017 #

    Hello Nicolas.
    Good Work!
    Where can i find a basic code to trade divergences?

    • Nicolas • 04/09/2017 #

      There are many divergences indicators on the website already, please make a quick search with the website search engine. Thank you.

  12. elanoa • 04/09/2017 #

    Buonasera sig. Nicolas. Complimenti per la sua competenza. Potrebbe darmi qualche suggerimento su alcuni codici che non riesco a far funzionare in piattaforma? Grazie.

  13. Bard • 04/09/2017 #

    This works well. But it works even better if you use the Ehler’s Mesa (Cycle) Period Finder! https://www.prorealcode.com/topic/ehlers-sinewave-indicator/

  14. Bard • 04/09/2017 #

    Here’s a screenshot of the difference between the standard indicator with default settings and an indicator that has Ehler’s Universal Oscillator replacing the standard Oscillator and uses Ehler’s MESA Period to determine the cycle period. The S&P500 period was found at 32 bars and I used an average of 25 bar cycles.

    The modified indicator seems to take less false short signals while picking up a few more longs. My arrows are dark green and orange.

    The only thing that isn’t working is the variable settings window control of the Oscillator bandedge values, that has to be set manually within the code and not from the settings window. Not sure why? If anyone had any ideas that’d be appreciated.
    I’m not a coder so please let me know if it’s not coded correctly. Cheers.

    https://www.dropbox.com/s/ardrak2xsg5ehrv/Reversalpointunivosc.png?dl=0

    (Neither Firefox or Chrome is adding the code here).

    //PRC_Reversal point indicator | indicator
    //09.04.2017
    //Nicolas @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge
    //https://www.prorealcode.com/topic/need-help-coding-the-following-reversal-indicator/

    //LowestLow = 50 — Use Mesa Period
    //HighestHigh = 50

    // DrawText
    offset1 = 17 * pipsize //150 Dow
    //offset2 = offset1 * 4 // Default = 4

    //Bandedge = 25

    UnivOsc = MyUnivOsc

    MyUnivOsc, ignored = Call “Ehler’s Univ Osc SuperSmoother”[25]

    // LONG
    //Red/Green candle (reversal)
    //Bullish candle close above the open of the previous red candle
    //Space to the left (the low of the last 3 candles lower than the low of the last 50 candles)
    //default stochastic (8,3,3) was in the oversold area within the last 3 candles

    c1 = close[1]open
    c2 = close>open[1] //default >
    c3 = lowest[3](low)<lowest[LowestLow](low)[1] or lowest[3](low)<lowest[LowestLow](low)[2] or lowest[3](low)<lowest[LowestLow](low)[3]
    c4 = summation[3](UnivOsc0
    long = c1 and c2 and c3 and c4

    if long then
    drawarrowup(barindex,lowest[3](low)-offset1) coloured(51,102,0) //=dark green //default (0,255,0)
    endif

    // SHORT
    //Green/Red candle (reversal)
    //Bearish candle close below the close of the previous green candle
    //Space to the left (the high of the last 3 candles higher than the high of the last 50 candles)
    //default stochastic (8,3,3) was in the overbought area within the last 3 candles.

    c5 = close[1]>open[1] and close<open
    c6 = close<open[1] //default highest[HighestHigh](high)[1] or highest[3](high)>highest[HighestHigh](high)[2] or highest[3](high)>highest[HighestHigh](high)[3]
    c8 = summation[3](UnivOsc>0.9)>0
    short = c5 and c6 and c7 and c8

    if short then
    drawarrowdown(barindex,highest[3](high)+offset1) coloured(255,153,0) //=orange //default (255,0,0)
    endif

    return long as “Long Reversal”, short as “Short Reversal”

  15. Bard • 04/09/2017 #

    Can anyone figure out how to automate it using assisted creation? I tried this — pls see image:

    https://www.dropbox.com/s/4lw5j7miwv2sm4f/reversalassitedcreation.png?dl=0

    but it won’t take trades at the position of the arrows. (Takes no trades). Cheers!

    • Nicolas • 04/09/2017 #

      Arrows are plotted in the past afterwards.

  16. Bard • 04/09/2017 #

    Thanks Nicolas, does it repaint like the Belkhayate indicator?

    • Nicolas • 04/09/2017 #

      Sorry I replied too fast. The arrows are painted on the current bar (and not afterward!!), but at the highest or lowest price of the last 3 bars. If you want the arrows to be plotted at Close: drawarrowdown(barindex,close) coloured(255,0,0)

  17. Bard • 04/09/2017 #

    No worries!

    What I meant is when I create an assisted ProBacktest it won’t take any trades if I set Buy to:
    When Price, (or high, or close) = Reversal Point Indic (25 25 20), Buy 10 per point.

    I had also tried:
    When Reversal Point Indic (25 25 20), = Reversal Point Indic (25 25 20), Buy 10 per point… but of course it just buys every single bar regardless of where the drawarrowup and drawarrowdown arrows are on the chart.

    So if I want to get it to buy (and sell) at the exact points where those drawarrowup and drawarrowdown markers are on the price chart how do I set the conditions in assisted creation?
    (I did try your suggestion aswell and used barindex,close, but it takes no trades).

    Cheers,

  18. Gigi • 04/09/2017 #

    Bonsoir, y a t il un screener pour cet indicateur?

  19. makhlaghi • 04/09/2017 #

    Is this for AmiBroker? I got some errors!!!

    • Nicolas • 04/09/2017 #

      Sorry no! all codes on our website is to be used with ProRealTime trading platform: https://www.prorealtime.com

  20. wtangsiri • 04/09/2017 #

    Bonjour
    J’ai importé le fichier ITF en question, mais cela me donne, en bas de l’écran, un indicateur et non pas une indication sur la bougie de prix
    Que dois je modifier ?
    Merci pour réponse

    • Nicolas • 04/09/2017 #

      Il faut ajouter l’indicateur sur le graphique du prix.

  21. skuggan89 • 207 days ago #

    This is a great indicator, works very well!! Is there any algo based on this indicator that can take trades according to the signals?

avatar
Register or

Likes

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

+15 more likes

Related users ' posts
Vinks_o_7 Vonasi you're a beast !!! ;-)))
pableitor Amazing indicator , you are pushing PRT to the limit! But looking at the scatter its not c...
Balmora74 thanks for this code Philippo ! So if i understand well a Positive (+) EntryOK x ROC means a...
Dritan Hi Philippo,thanks for sharing this code.Can You add please Volume more than 250.00?Thanks
Nicolas
4 years ago
KDJ
KDJ
3
Indicators
fireleg79 Bonsoir Nicolas. Merci pour tout ton travail. Quand tu auras le temps pourras-tu jeter un oe...
Sejibi Bonsoir, En remplaçant percentJ = 3 * percentD - 2 * percentK par percentJ = 3 * perc...
JMARTY Bonjour, A la recherche d'un indicateur détectant les divergences sur DMI, je tombe sur ce...
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
Sapo Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
mitsu21 Hi, it looks nice. I'll try it tomorrow thank you for your share kind regards bruno
kj1988 Thank you Vonasi for sharing this indicator. Very useful as a comfirmation to the price act...
Byggtrader Hi Nicolas! How do I get the indicator in the price chart? It only stays under i new chart.
Nicolas Just add it on the price chart by using the wrench on the left upper side of the chart (pric...
jiddan78 how to convert to afl amibroker ?
Nicolas We do not supply free coding assistance for AFL Amibroker on the website. You can ask for pa...
Ngomsi @ Vonasi, how to use timeframe , 13 minutes ,21 minutes, 34 minutes,et 55 minutes with this...
michaelben Bonjour Nicolas . Je cherche une strategie pour faire du trading automatisé. J'ai essaye ave...
Nicolas En effet merci, erreur corrigée, la variable Risk affecte désormais comme il se doit les cal...
nader003 How can we get this indicator on MT4
Nicolas You can ask for private custom coding to our programming services: https://www.prorealcode.c...
Nicolas change the lastline with: RETURN lastsig and check if lastsig change its value with the a...
nectouxg Hello Nicolas, I will try tonight when I get home, just one last question, I trade the DA...
FXtonio Bonjour, j'ai un problème avec le code, il me dit que ce n'est pas correct ligne 26-27-28: ...
Vinks_o_7 Great, thanks a lot Nicolas !
Teddy Coronak Top Nicolas ! Merci
Andyswede Thank's! Great indicator:)
Pablo Carmona del Moral hola juanjo, muchas gracias por este screener que nos has compartido. creo que lo voy a util...
Pablo Carmona del Moral para el volumen he cambiado: // Volumen significativo VS=volume>2*(average[10](volume[1...
Juanjo Muchas Gracias Pablo, ...Tengo varios screener, uno lo tengo adaptado para operar intradía, ...
AntoGH how did you backtest it ?
PastaPesto @AntoGH , I dont know if you are asking me, but my backtest was made in an IS of 4 years bet...
Ridder @PastaPesto Do you still running this and how is the results? Thanks
dau710 Are the Bulls Blue & the Bears Red?
dau710 Many thanks :)
Maik2404 es sind leider nur long Positionen und keine Short zu erkennen.
Maik2404 Vytautas: es bleibt aber nur bei long Auslösungen
ullle73 this one is not a winner, have backtested it on almost all pairs, does not have an edge
teddy58 Ich habe es mit N= 1,5 und N=2,5 getestet mit 200000 Einheiten. Es funktioniert leider erst ...
Matriciel I use this indicator to help me make a decision when there is a divergence. The divergences ...
Jan Wind Hi, I personnaly am not a big fan of ZIGZAG indicator, as it repaints itself during time. ...
XXXXVII Excellent indicateur ! Déterminer une tendance est devenu un jeu d'enfants ! Félicitation......
gregoire bonjour nicolas j ai cherché partout sur le net et impossible de trouvé ce que je recherch...
Nicolas Merci de poster une demande dans le forum des indicateurs, ainsi on pourra le coder dans ce ...
Doddge Bonjour Nicolas, savez-vous s'il existe un indicateur pour Prorealtime similaire au ST-TL fi...
Nicolas Pour les demandes de conversion de code, et si vous possédez le code source de l'indicateur ...
Doddge Merci beaucoup Nicolas, j'ai utilisé le formulaire avec les informations que j'ai sur cet in...
Juan Salas Hi FULVIO09, Nice piece of work. It seems to work very well. Does only work for INDEXES??...
Johann Hi @FULVI09, I understand the instructions however I'm not too sure how to determine the "p...
Player8520 Hello, It doesn't work with me either. However, I changed AA to 180 on line 15, added th...

Top