Supertrend Extended : demende de screener
Forums › ProRealTime forum Français › Support ProScreener › Supertrend Extended : demende de screener
- This topic has 5 replies, 3 voices, and was last updated 1 year ago by gioport.
Viewing 6 posts - 1 through 6 (of 6 total)
-
-
07/19/2020 at 4:06 PM #139619
Bonjour, serait il possible d’avoir un screener à partir de cet indicateur qui recenserait les “drawarrowup” et les drawarrowdown?
merci d’avance.
Supertrend Extended12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576//PRC_SuperTrend Extended | indicator//31.10.2017//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge// --- settings//multiplier=2.236//period=66//type=1 //1 = use ATR , 2 = Use standard deviation , 3 = Use standard error//midperiod=10// --- end of settingstype=max(1,type)if type=1 thenmoy=averagetruerange[period](close)elsif type=2 thenmoy=std[period](close)elsif type=3 thenmoy=ste[period](close)endifprice=(highest[midperiod](high)+lowest[midperiod](low))/2up=price+multiplier*moydn=price-multiplier*moyonce trend=1if close>up[1] thentrend=1elsif close<dn[1] thentrend=-1endifif trend<0 and trend[1]>0 thenflag=1elseflag=0endifif trend>0 and trend[1]<0 thenflagh=1elseflagh=0endifif trend>0 and dn<dn[1] thendn=dn[1]endifif trend<0 and up>up[1] thenup=up[1]endifif flag=1 thenup=price+multiplier*moyendifif flagh=1 thendn=price-multiplier*moyendifif trend=1 thenmysupertrend=dnoffset=moycolor1=0color2=191color3=255elsemysupertrend=upoffset=-moycolor1=255color2=69color3=0endifdrawcandle(mysupertrend,mysupertrend+offset,mysupertrend,mysupertrend+offset) coloured(color1,color2,color3,50)bordercolor(100,100,100,0)if trend=1 and trend[1]<>1 thendrawarrowup(barindex,mysupertrend) coloured(color1,color2,color3)endifif trend=-1 and trend[1]<>-1 thendrawarrowdown(barindex,mysupertrend) coloured(color1,color2,color3)endifreturn mysupertrend coloured (color1,color2,color3) as "SuperTrend Extended 1", mysupertrend+offset coloured (color1,color2,color3) as "SuperTrend Extended 2"07/20/2020 at 9:25 AM #139653Ci-joint le screener pour le Supertrend Extended. Dans la colonne de tri, “signal” retourne un 1 pour signal haussier et -1 pour un signal baissier :
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364//PRC_SuperTrend Extended | screener//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge// --- settingsmultiplier=2.236period=66type=1 //1 = use ATR , 2 = Use standard deviation , 3 = Use standard errormidperiod=10// --- end of settingstype=max(1,type)if type=1 thenmoy=averagetruerange[period](close)elsif type=2 thenmoy=std[period](close)elsif type=3 thenmoy=ste[period](close)endifprice=(highest[midperiod](high)+lowest[midperiod](low))/2up=price+multiplier*moydn=price-multiplier*moyonce trend=1if close>up[1] thentrend=1elsif close<dn[1] thentrend=-1endifif trend<0 and trend[1]>0 thenflag=1elseflag=0endifif trend>0 and trend[1]<0 thenflagh=1elseflagh=0endifif trend>0 and dn<dn[1] thendn=dn[1]endifif trend<0 and up>up[1] thenup=up[1]endifif flag=1 thenup=price+multiplier*moyendifif flagh=1 thendn=price-multiplier*moyendif//drawcandle(mysupertrend,mysupertrend+offset,mysupertrend,mysupertrend+offset) coloured(color1,color2,color3,50)bordercolor(100,100,100,0)signal=0if trend=1 and trend[1]<>1 thensignal=1//drawarrowup(barindex,mysupertrend) coloured(color1,color2,color3)endifif trend=-1 and trend[1]<>-1 thensignal=-1//drawarrowdown(barindex,mysupertrend) coloured(color1,color2,color3)endifscreener[signal<>0](signal)07/20/2020 at 3:58 PM #13969201/22/2023 at 7:39 PM #20791201/24/2023 at 11:19 AM #208066En effet “price” est désormais un mot réservé par le langage de programmation, voici une version corrigée de ce screener:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364//PRC_SuperTrend Extended | screener//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge// --- settingsmultiplier=2.236period=66type=1 //1 = use ATR , 2 = Use standard deviation , 3 = Use standard errormidperiod=10// --- end of settingstype=max(1,type)if type=1 thenmoy=averagetruerange[period](close)elsif type=2 thenmoy=std[period](close)elsif type=3 thenmoy=ste[period](close)endifiprice=(highest[midperiod](high)+lowest[midperiod](low))/2up=iprice+multiplier*moydn=iprice-multiplier*moyonce trend=1if close>up[1] thentrend=1elsif close<dn[1] thentrend=-1endifif trend<0 and trend[1]>0 thenflag=1elseflag=0endifif trend>0 and trend[1]<0 thenflagh=1elseflagh=0endifif trend>0 and dn<dn[1] thendn=dn[1]endifif trend<0 and up>up[1] thenup=up[1]endifif flag=1 thenup=price+multiplier*moyendifif flagh=1 thendn=price-multiplier*moyendif//drawcandle(mysupertrend,mysupertrend+offset,mysupertrend,mysupertrend+offset) coloured(color1,color2,color3,50)bordercolor(100,100,100,0)signal=0if trend=1 and trend[1]<>1 thensignal=1//drawarrowup(barindex,mysupertrend) coloured(color1,color2,color3)endifif trend=-1 and trend[1]<>-1 thensignal=-1//drawarrowdown(barindex,mysupertrend) coloured(color1,color2,color3)endifscreener[signal<>0](signal)01/24/2023 at 6:37 PM #208145 -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
Find exclusive trading pro-tools on
Similar topics: