guikroth

Range Filter Buy and Sell 5min

Original Version credits to DonovanWall

Actual Version i just set alerts and change the parameters for BTCUSDC 5min Chart.

NO REPAINT.

Wait For Barclose

إزالة من البرامج النصية المفضلة أضف إلى البرامج النصية المفضلة
@guikroth Here is ur code to backtest it
//@version=3

//Original Script > @DonovanWall

// Actual Version > @guikroth

//////////////////////////////////////////////////////////////////////////
// Settings for 5min chart, BTCUSDC. For Other coin, change the paremeters
//////////////////////////////////////////////////////////////////////////

strategy(title="Range Filter Buy and Sell 5min", overlay=true)

// Source

src = input(defval=close, title="Source")

// Sampling Period
// Settings for 5min chart, BTCUSDC. For Other coin, change the paremeters

per = input(defval=100, minval=1, title="Sampling Period")

// Range Multiplier

mult = input(defval=3.0, minval=0.1, title="Range Multiplier")

// Smooth Average Range

smoothrng(x, t, m)=>
wper = (t*2) - 1
avrng = ema(abs(x - x), t)
smoothrng = ema(avrng, wper)*m
smoothrng
smrng = smoothrng(src, per, mult)

// Range Filter

rngfilt(x, r)=>
rngfilt = x
rngfilt := x > nz(rngfilt) ? ((x - r) < nz(rngfilt) ? nz(rngfilt) : (x - r)) : ((x + r) > nz(rngfilt) ? nz(rngfilt) : (x + r))
rngfilt
filt = rngfilt(src, smrng)

// Filter Direction

upward = 0.0
upward := filt > filt ? nz(upward) + 1 : filt < filt ? 0 : nz(upward)
downward = 0.0
downward := filt < filt ? nz(downward) + 1 : filt > filt ? 0 : nz(downward)

// Target Bands

hband = filt + smrng
lband = filt - smrng

// Colors

filtcolor = upward > 0 ? lime : downward > 0 ? red : orange
barcolor = (src > filt) and (src > src) and (upward > 0) ? lime : (src > filt) and (src < src) and (upward > 0) ? green :
(src < filt) and (src < src) and (downward > 0) ? red : (src < filt) and (src > src) and (downward > 0) ? maroon : orange

filtplot = plot(filt, color=filtcolor, linewidth=3, title="Range Filter")

// Target

hbandplot = plot(hband, color=aqua, transp=100, title="High Target")
lbandplot = plot(lband, color=fuchsia, transp=100, title="Low Target")

// Fills

fill(hbandplot, filtplot, color=aqua, title="High Target Range")
fill(lbandplot, filtplot, color=fuchsia, title="Low Target Range")

// Bar Color

barcolor(barcolor)

// Break Outs

longCond = na
shortCond = na
longCond := ((src > filt) and (src > src) and (upward > 0)) or ((src > filt) and (src < src) and (upward > 0))
shortCond := ((src < filt) and (src < src) and (downward > 0)) or ((src < filt) and (src > src) and (downward > 0))

CondIni = 0
CondIni := longCond ? 1 : shortCond ? -1 : CondIni

longCondition = longCond and CondIni == -1
if (longCondition)
strategy.entry("buy", strategy.long, comment="BUY")

shortCondition = shortCond and CondIni == 1
if (shortCondition)
strategy.entry("sell", strategy.short, comment="SELL")
رد
can you make it so we can backstest STRATEGY please?
رد
@guikroth Hello , Please introduce automated trading systems with Range filter, Thank you very much.
رد
Hello sir.
Can we use this also in 1Day timeframe? It is also accurate?

best regards
+2 رد
@gjob83, yes, it works the same way
رد
Great indicator! Any idea how to automate trades in binance using this indicator?
رد
@Ameldur, Yes, but i don't recommend. I know two bots. ApexTrade and Zignaly
رد
birdaff guikroth
@guikroth, Hi , zignaly work with forex currency?
رد
Great indicator!
What's the difference from ATR Smoothed (By dysrupt) _BuySel ?
+3 رد
guikroth Musnpark
@Musnpark, The ATR was made for Long Trades. I Prefer this indicator
رد
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي كيف نعمل مميزات الرسم البياني أسعار العضوية قوانين الموقع المشرفون حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية احصل على المساعدة طلب الخصائص المدوّنة والأخبار الأسئلة الأكثر شيوعًا معرفة تويتر
الملف الشخصي إعدادات الصفحة الشخصية الحساب وإعداد الفواتير احصل على المساعدة أفكاري المنشورة المتابعين تتابع رسالة خاصة المحادثة تسجيل الخروج