rsi ve wvap1 saatlik grafikte rsi indikatörü ile vwap yazdığım indikatör kodlarını aşağıda veriyorum. Siz 9 ve 10 nolu satırlarda rsi kısmını 40-60, 20-80 gibi değerlerede ayarlayabilirsiniz.
Not: kodları kopyala yapıştır yaparken arkadaşlar sorun yaşıyor bu durum benle alakalı değil
// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © ozgurhan
//@version=4
study("RSI of vWAP", overlay=false)
length=input(title="rsi-vwap", type=input.integer, defval=14, minval=1)
ust_bant=input(title="ust bant", type=input.integer, defval=70, minval=0, maxval=100)
alt_bant=input(title="alt bant", type=input.integer, defval=30, minval=0, maxval=100)
vwap_rsi=rsi(vwap, length)
rsi_ust=vwap_rsi>=ust_bant
rsi_alt=vwap_rsi<=alt_bant
plot(vwap_rsi)
ust_cizgi=hline(ust_bant)
alt_cizgi=hline(alt_bant)
fill(ust_cizgi, alt_cizgi, color=color.purple)
plotshape(rsi_ust, style=shape.arrowdown, location=location.top, color=color.blue, text="rsi aşırı alış", textcolor=color.red)
plotshape(rsi_alt, style=shape.arrowup, location=location.bottom, color=color.red, text="rsi aşırı satış", textcolor=color.blue)
input_sell=input(defval="🚩", confirm=true, title="sell", type=input.string)
input_buy=input(defval="🏴", confirm=true, title="sell", type=input.string)
plotchar(rsi_ust, location=location.top, char=input_sell)
plotchar(rsi_alt, location=location.bottom, char=input_buy)
barcolor=(rsi_ust ? color.red : rsi_alt ? color.green:na)
alimkosulu=rsi_ust
satimkosulu=rsi_alt
b1=barssince(alimkosulu)
s1=barssince(satimkosulu)
plotshape(alimkosulu and b1 >s1 , size=size.small, style=shape.labeldown, location=location.top, color=color.blue, text="SAT", textcolor=color.black)
plotshape(satimkosulu and s1 >b1 , size=size.small, style=shape.labelup, location=location.bottom, color=color.yellow, text="AL", textcolor=color.black)
alertcondition(alimkosulu and b1 >s1 , title="SAT", message="SAT")
alertcondition(satimkosulu and s1 >b1 , title="AL", message="AL")