This “trading signals” indicator plots buy and sell signals points entries when the price breaks the last pivot High/Low levels.
These levels are defined by price tops and bottoms found after the price made:
- highest high with “leftP” candles on its left and “rightP” candles on its right
- lowest low with “leftP” candles on its left and “rightP” candles on its right
The levels are marked with dark grey dots on the charts.
The signals are given during the candlestick formation and not afterwards.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
//PRC_Pivot Reversal Strategy | indicator //14.02.2019 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge // --- settings leftp = 4 rightp = 2 // --- end of settings period=max(leftp,rightp) hh = highest[period](high) ll = lowest[period](low) if hh<>hh[1] then hhbar=barindex hhprice=high endif if ll<>ll[1] then llbar=barindex llprice=low endif if barindex-hhbar=rightp then drawtext("•",hhbar,hhprice) coloured(168,168,168) top=hhprice endif if barindex-llbar=rightp then drawtext("•",llbar,llprice) coloured(168,168,168) bottom=llprice endif atr=averagetruerange[14] if high crosses over top and lastsig<=0 then drawarrowup(barindex,low-atr/2) coloured(30,144,255) lastsig=1 endif if low crosses under bottom and lastsig>=0 then drawarrowdown(barindex,high+atr/2) coloured(255,48,48) lastsig=-1 endif RETURN |
Share this
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 :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
hello, I have installed the file, but the indicator appears in a separate window. Do you know how I can install it in the price window?
Apply it on the price chart.
thank you very much, it was a beginner’s mistake
Much appreciated Nicolas! I have been looking for something to highlight reversal bars for quite a while now. Thanks again, kind regards, Shaun
Hi Nicolas, should this work on all software. Wont work on tradingviews pinescript
No. The code delivered on our website is for ProRealTime trading platform:
https://www.prorealtime.com/en/
For personal and private assistance, you can contact through this page:
https://www.prorealcode.com/trading-programming-services/
Hi Nicolas,
I am a beginner to this and I think your Pivot reversal strategy alerts indicator is ecellent
I was wondering if you ever converted this to an automatic trading stratergy?
Cheers Greg
I can’t remember, if you can’t find it anywhere in forums, open a new topic if you want it to be coded.
bonjour Nicolas,
j’aimerais tout d’abord vous remercier pour tout ce que vous faite et j’aimerais savoir si on peu faire un backtest pour cet indicateurj’ai essayer de copier le code mais j’ai un message d’erreur qui s’affiche m’indiquant qu’il y a une erreur sur la ligne 20.
merci d’avance
Il s’agit d’un indicateur, pour en faire une strategie de trading automatique, cela demande certaines modifications, merci de formuler la demande dans le forum approprié.
Hello Nicolas,
is it possible to add a sound alert when an arrow appears?
thanks in advance
Sound alerts = use the alert tools of the platform.
thank you Nicolas of your speed of response, I tried but, I have to fix something badly, because it does not ring,
change the lastline with:
RETURN lastsig
and check if lastsig change its value with the alert tools
Hello Nicolas,
I will try tonight when I get home, just one last question, I trade the DAX and NASDAQ in 1 MN AND 5 minutes, the default parameters are 4 and 2, can you explain to me if I have to keep 2 points apart if I want to decrease the number of arrows and have better signals?
Do you have any suggestions for parameters according to the timeframe?
in a few words the more I increase the periods the less signals I have but better quality?
again thank you in advance for your support
Bonjour, j’ai un problème avec le code, il me dit que ce n’est pas correct ligne 26-27-28:
“top=hhprice
endif
if barindex-llbar=rightp then”