Pivot Reversal Strategy Alerts screener
Forums › ProRealTime English forum › ProScreener support › Pivot Reversal Strategy Alerts screener
- This topic has 7 replies, 4 voices, and was last updated 5 years ago by Nicolas.
Viewing 8 posts - 1 through 8 (of 8 total)
-
-
06/07/2019 at 3:27 PM #100124
HI
Can this be converted into a screener?
12345678910111213141516171819202122232425262728293031323334353637/PRC_Pivot Reversal Strategy | indicator//14.02.2019//Nicolas @ http://www.prorealcode.com//Sharing ProRealTime knowledge// — settingsleftp = 4rightp = 2// — end of settingsperiod=max(leftp,rightp)hh = highest[period](high)ll = lowest[period](low)if hh<>hh[1] thenhhbar=barindexhhprice=highendifif ll<>ll[1] thenllbar=barindexllprice=lowendifif barindex-hhbar=rightp thendrawtext(“•”,hhbar,hhprice) coloured(168,168,168)top=hhpriceendifif barindex-llbar=rightp thendrawtext(“•”,llbar,llprice) coloured(168,168,168)bottom=llpriceendifatr=averagetruerange[14]if high crosses over top and lastsig<=0 thendrawarrowup(barindex,low-atr/2) coloured(30,144,255)lastsig=1endifif low crosses under bottom and lastsig>=0 thendrawarrowdown(barindex,high+atr/2) coloured(255,48,48)lastsig=-1endifRETURN06/07/2019 at 3:48 PM #100132>> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
06/07/2019 at 3:51 PM #100134Not tested:
12345678910111213141516171819202122232425262728293031323334353637383940/PRC_Pivot Reversal Strategy | indicator//14.02.2019//Nicolas @ http://www.prorealcode.com//Sharing ProRealTime knowledge// — settingsleftp = 4rightp = 2// — end of settingsperiod=max(leftp,rightp)hh = highest[period](high)ll = lowest[period](low)if hh<>hh[1] thenhhbar=barindexhhprice=highendifif ll<>ll[1] thenllbar=barindexllprice=lowendifif barindex-hhbar=rightp thendrawtext(“•”,hhbar,hhprice) coloured(168,168,168)top=hhpriceendifif barindex-llbar=rightp thendrawtext(“•”,llbar,llprice) coloured(168,168,168)bottom=llpriceendifatr=averagetruerange[14]x = 0if high crosses over top and lastsig<=0 then//drawarrowup(barindex,low-atr/2) coloured(30,144,255)lastsig=1x = 1endifif low crosses under bottom and lastsig>=0 then//drawarrowdown(barindex,high+atr/2) coloured(255,48,48)lastsig=-1x = 2endifSCREENER[x](x AS "1=↑, 2=↓")06/07/2019 at 4:06 PM #10013506/07/2019 at 4:15 PM #100138Just comment those two lines out.
06/07/2019 at 4:42 PM #10015106/18/2019 at 9:53 AM #10094206/18/2019 at 3:28 PM #100958I think that it should be something like:
12345678910111213141516171819202122232425262728293031323334353637383940/PRC_Pivot Reversal Strategy | indicator//14.02.2019//Nicolas @ http://www.prorealcode.com//Sharing ProRealTime knowledge// — settingsleftp = 4rightp = 2// — end of settingsperiod=max(leftp,rightp)hh = highest[period](high)ll = lowest[period](low)if hh<>hh[1] thenhhbar=barindexhhprice=highendifif ll<>ll[1] thenllbar=barindexllprice=lowendifif barindex-hhbar=rightp then//drawtext(“•”,hhbar,hhprice) coloured(168,168,168)top=hhpriceendifif barindex-llbar=rightp then//drawtext(“•”,llbar,llprice) coloured(168,168,168)bottom=llpriceendif//atr=averagetruerange[14]x = 0if high crosses over top and lastsig<=0 then//drawarrowup(barindex,low-atr/2) coloured(30,144,255)lastsig=1x = 1endifif low crosses under bottom and lastsig>=0 then//drawarrowdown(barindex,high+atr/2) coloured(255,48,48)lastsig=-1x = 2endifSCREENER[x](x AS "1=↑, 2=↓") -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
Find exclusive trading pro-tools on
Similar topics: