range filter buy & sell
Forums › ProRealTime forum Français › Support ProScreener › range filter buy & sell
- This topic has 3 replies, 3 voices, and was last updated 1 year ago by finplus.
Viewing 4 posts - 1 through 4 (of 4 total)
-
-
09/24/2023 at 10:46 AM #221494
Bonjour,
serait-il possible d’avoir un screener à partir de l’indicateur ci-dessous ? Merci.
https://www.prorealcode.com/prorealtime-indicators/range-filter-buy-and-sell-5min/
09/24/2023 at 2:03 PM #221511Hi @finplus
Range Filter Screener123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172// Original Script > @DonovanWall// Adapted Version > @guikroth//////////////////////////////////////////////////////////////////////////// Settings for 5min chart, BTCUSDC. For Other coin, change the parameters//////////////////////////////////////////////////////////////////////////// Sourcesrc = customclose// Sampling Period// Settings for 5min chart, BTCUSDC. For Other coin, change the paremeters// per = defval=100, minval=1, "Sampling Period"// Range Multiplier// mult = defval=3.0, minval=0.1, "Range Multiplier"// Smooth Average Rangewper = per*2 -1avrng = exponentialaverage[per](abs(src-src[1]))smrng = mult * exponentialaverage[wper](avrng)// Range Filterrngfilt = srcIf src > rngfilt[1] thenIf rngfilt[1] > src-smrng thenrngfilt = rngfilt[1]Elserngfilt = src-smrngendifelsif rngfilt[1] < src+smrng thenrngfilt = rngfilt[1]elserngfilt = src+smrngendiffilt = rngfilt// Filter Directionupward = 0If filt > filt[1] thenupward = upward[1]+1elsif filt < filt[1] thenupward = 0elseupward = upward[1]endifdownward = 0If filt < filt[1] thendownward = downward[1]+1elsif filt > filt[1] thendownward = 0elsedownward = downward[1]endif// Break OutslongCond = (src > filt and src > src[1] and upward > 0) or (src > filt and src < src[1] and upward > 0)shortCond = (src < filt and src < src[1] and downward > 0) or (src < filt and src > src[1] and downward > 0)CondIni = 0If longCond thenCondIni = 1elsif shortCond thenCondIni = -1elseCondIni = CondIni[1]endifC1 = longCond and CondIni[1] = -1C2 = shortCond and CondIni[1] = 1Screener[C1 or C2](C1 as "Long=1")1 user thanked author for this post.
09/24/2023 at 2:05 PM #221513HELLO ci après le screener avec per=80 (à adapter) :
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113// Sourcesrc = close// Sampling Period// Settings for 5min chart, BTCUSDC. For Other coin, change the paremeters// per = defval=100, minval=1, "Sampling Period"per=80// Range Multiplier// mult = defval=3.0, minval=0.1, "Range Multiplier"mult=3// Smooth Average Rangewper = per*2 -1avrng = exponentialaverage[per](abs(src-src[1]))smrng = mult * exponentialaverage[wper](avrng)// Range Filterrngfilt = srcIf src > rngfilt[1] thenIf rngfilt[1] > src-smrng thenrngfilt = rngfilt[1]Elserngfilt = src-smrngendifelsif rngfilt[1] < src+smrng thenrngfilt = rngfilt[1]elserngfilt = src+smrngendiffilt = rngfilt// Filter Directionupward = 0If filt > filt[1] thenupward = upward[1]+1elsif filt < filt[1] thenupward = 0elseupward = upward[1]endifdownward = 0If filt < filt[1] thendownward = downward[1]+1elsif filt > filt[1] thendownward = 0elsedownward = downward[1]endif// Target Bands//hband = filt + smrng//lband = filt - smrng// Colors//If upward > 0 then//filtcolorR = upColorR//filtcolorG = upColorG//filtcolorB = upColorB//elsif downward > 0 then//filtcolorR = downColorR//filtcolorG = downColorG//filtcolorB = downColorB//else//filtcolorR = midColorR//filtcolorG = midColorG//filtcolorB = midColorB//endifif src > filt and src > src[1] and upward > 0 then//barcolorR = upColorR//barcolorG = upColorG//barcolorB = upColorBelsif src > filt and src < src[1] and upward > 0 then//barcolorR = upColorR//barcolorG = upColorG//barcolorB = upColorBelsif src < filt and src < src[1] and downward > 0 then//barcolorR = downColorR//barcolorG = downColorG//barcolorB = downColorBelsif src < filt and src > src[1] and downward > 0 then//barcolorR = downColorR//barcolorG = downColorG//barcolorB = downColorBelse//barcolorR = midColorR//barcolorG = midColorG//barcolorB = midColorBendif// Break OutslongCond = (src > filt and src > src[1] and upward > 0) or (src > filt and src < src[1] and upward > 0)shortCond = (src < filt and src < src[1] and downward > 0) or (src < filt and src > src[1] and downward > 0)CondIni = 0If longCond thenCondIni = 1elsif shortCond thenCondIni = -1elseCondIni = CondIni[1]endiflongCondition = longCond and CondIni[1] = -1shortCondition = shortCond and CondIni[1] = 1F=longCondition or shortCondition//AlertsIf longCondition thenflag=1endifIf shortCondition thenflag=2endifscreener [F](flag=1 as"long",flag=2 as "court")09/24/2023 at 8:25 PM #221528 -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
Find exclusive trading pro-tools on
Similar topics: