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

즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
Very good indicator! Thank you so much for sharing it! Would be great if we could backtest this bad boy! :)
+1 응답
thx for putting the soucre code public

guys check this strategy it's based on this one but for 15m and is constantly in profit including 0.15 fee.
응답
Backtested with 0.08% fees, this strategy loses money.
+2 응답
Hi,
We very much like this Scripts. can you convert the same in python?
+1 응답
Hi, i´d like to know which values i need to modify for 2H and 4H timeframe, thanks.
응답
We need to have heiken ashi candles with this indicator right?
+4 응답
@thefoob, yes
+1 응답
Hello, I still cant backtest; I used the script posted by Cryptooyster and it gives me an error on starting on line 22 and then it goes on. I have been manually backtesting this strategy and so far it works very well with gbp/jpy 4hrs but it would be faster to do it with the strategy tester; specially on the lower time frames.
+1 응답
Hello,
I past your strategy code in a new Pine, but when I hit Add to graphic I have a message error:

raison: line 29: mismatched input 'wper' expecting 'end of line without line continuation'

I am a bit new, maybe I made something wrong
Any idea?
+2 응답
@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")
+3 응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 하우스룰(내부규정) 모더레이터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 헬프 센터 프렌드 리퍼하기 기능 개발/개선 요청 블로그 & 뉴스 잦은물음 위키 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃