Nicolas

Pivot Reversal Strategy Alerts

Category: Indicators By: Nicolas Created: February 14, 2019, 1:34 PM
February 14, 2019, 1:34 PM
Indicators
17 Comments
Pivot Reversal Strategy Alerts

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.

//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

 

Download
Filename: PRC_Pivot-Reversal-Strategy.itf
Downloads: 1017
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Jaya Kumar
8 months ago
#

Very good evening sir if any possible to convert Mt 4 version waiting for your reply sir thank you very much sir 🙏

FXtonio
4 years ago
#

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"

nectouxg
6 years ago
#

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

nectouxg
6 years ago
#

thank you Nicolas of your speed of response, I tried but, I have to fix something badly, because it does not ring,

Nicolas
6 years ago
#

change the lastline with: RETURN lastsig and check if lastsig change its value with the alert tools

nectouxg
6 years ago
#

Hello Nicolas, is it possible to add a sound alert when an arrow appears? thanks in advance

Nicolas
6 years ago
#

Sound alerts = use the alert tools of the platform.

rastasam
6 years ago
#

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

Nicolas
6 years ago
#

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é.

growland1au
7 years ago
#

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

Nicolas
7 years ago
#

I can't remember, if you can't find it anywhere in forums, open a new topic if you want it to be coded.

Matthew Darling
8 years ago
#

Hi Nicolas, should this work on all software. Wont work on tradingviews pinescript

Nicolas
8 years ago
#

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/

TheDisciplinedTrader
8 years ago
#

Much appreciated Nicolas! I have been looking for something to highlight reversal bars for quite a while now. Thanks again, kind regards, Shaun

Milochenta
8 years ago
#

thank you very much, it was a beginner's mistake

Milochenta
8 years ago
#

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?

Nicolas
8 years ago
#

Apply it on the price chart.

ProRealCode ProRealCode
Loading...