lem o bişeyden anlamaz :yahoo:
tek bildiği alemlerde kız kesmek :drunk:
Printable View
pivot hesaplaması....en yüksek-en düşük ortalaması....
1-6-12 ay, 4 hafta, 20 ve 1gün...çizgiler kapalı...isteyen değiştirir...
https://www.tradingview.com/x/t90bjAkI/ görüntü bu...
denemek isteyene kodu...PHP Code:
//@version=6
indicator("*", overlay=true, max_labels_count=500)
// Ayarlar
P1 = input.bool(true, "1-AYLIK")
//
X1 = request.security(syminfo.tickerid, "M", ta.highest(high, 1))
Z1 = request.security(syminfo.tickerid, "M", ta.lowest(low, 1))
Y1 = X1[1]
Q1 = Z1[1]
X13 = request.security(syminfo.tickerid, "M", ta.highest(high, 6))
Z13 = request.security(syminfo.tickerid, "M", ta.lowest(low, 6))
Y13 = X13[1]
Q13 = Z13[1]
X136 = request.security(syminfo.tickerid, "M", ta.highest(high, 12))
Z136 = request.security(syminfo.tickerid, "M", ta.lowest(low, 12))
Y136 = X136[1]
Q136 = Z136[1]
X1368 = request.security(syminfo.tickerid, "W", ta.highest(high, 4))
Z1368 = request.security(syminfo.tickerid, "W", ta.lowest(low, 4))
Y1368 = X1368[1]
Q1368 = Z1368[1]
X13689 = request.security(syminfo.tickerid, "D", ta.highest(high, 20))
Z13689 = request.security(syminfo.tickerid, "D", ta.lowest(low, 20))
Y13689 = X13689[1]
Q13689 = Z13689[1]
X136895 = request.security(syminfo.tickerid, "D", ta.highest(high, 1))
Z136895 = request.security(syminfo.tickerid, "D", ta.lowest(low, 1))
Y136895 = X136895[1]
Q136895 = Z136895[1]
// Pivot hesap (sadece PP)
calcPivot(h, l) =>
(h + l ) / 2.0
PP1 = calcPivot(Y1, Q1 )
PP13 = calcPivot(Y13, Q13 )
PP136 = calcPivot(Y136, Q136 )
PP1368 = calcPivot(Y1368, Q1368 )
PP13689 = calcPivot(Y13689, Q13689 )
PP136895 = calcPivot(Y136895, Q136895 )
plot(PP1,"1-Ay", style = plot.style_line, color = color.rgb(122, 121, 122, 100), linewidth = 1)
plot(PP13,"6-Ay", style = plot.style_line, color = color.rgb(122, 121, 122, 100), linewidth = 1)
plot(PP136,"12-Ay", style = plot.style_line, color = color.rgb(122, 121, 122, 100), linewidth = 1)
plot(PP1368,"4-Hafta", style = plot.style_line, color = color.rgb(122, 121, 122, 100), linewidth = 1)
plot(PP13689,"20-Gün", style = plot.style_line, color = color.rgb(122, 121, 122, 100), linewidth = 1)
plot(PP136895,"1-Gün", style = plot.style_line, color = color.rgb(122, 121, 122, 100), linewidth = 1)
Eline sağlık üstadım...
O vakit bende de MTF;
Çeşitli(seçilen)periyotlarda "Yüksekler... Pivotlar, Ichimoku Yüksekleri" ve kullanılan periyodun Ichimokusu....
https://i.ibb.co/KjyXz0PT/p1.png
Karmaşık bir sistem biliyorum, çünkü ihtiyaca göre tasarlandı, sorusu olanı cevaplarım.
Kod://@version=6
indicator(title = 'IM Tepe - Yüksek', overlay = true)
ustsinir= input.float(1.4,"gösterge üst uzaklık")
altsinir= input.float(0.6,"gösterge alt uzaklık")
PerB=input.timeframe(title='Büyük', defval="M")
PerO=input.timeframe(title='Orta', defval="W")
PerK=input.timeframe(title='Küçük', defval="D")
guh9M = request.security(syminfo.tickerid, PerB, ta.highest(9))
guh26M = request.security(syminfo.tickerid, PerB, ta.highest(26))
guh52M = request.security(syminfo.tickerid, PerB, ta.highest(52))
gul9M = request.security(syminfo.tickerid, PerB, ta.lowest(9))
gul26M = request.security(syminfo.tickerid, PerB, ta.lowest(26))
gul52M = request.security(syminfo.tickerid, PerB, ta.lowest(52))
gutkM = request.security(syminfo.tickerid, PerB, (guh9M + gul9M) / 2)
gukjM = request.security(syminfo.tickerid, PerB, (guh26M + gul26M) / 2)
gusaM = request.security(syminfo.tickerid, PerB, (gutkM[25] + gukjM[25]) / 2)
gusbM = request.security(syminfo.tickerid, PerB, (guh52M[25] + gul52M[25]) / 2)
M1 = gutkM>=0 ? gutkM : 0
M2 = gukjM>=0 ? gukjM : 0
M3 = gusaM>=0 ? gusaM : 0
M4 = gusbM>=0 ? gusbM : 0
tepeM = math.max(M1, M2, M3, M4)
tpM = plot(tepeM, color = #4a66e2, title = 'B', linewidth = 2)
guh9W = request.security(syminfo.tickerid, PerO, ta.highest(9))
guh26W = request.security(syminfo.tickerid, PerO, ta.highest(26))
guh52W = request.security(syminfo.tickerid, PerO, ta.highest(52))
gul9W = request.security(syminfo.tickerid, PerO, ta.lowest(9))
gul26W = request.security(syminfo.tickerid, PerO, ta.lowest(26))
gul52W = request.security(syminfo.tickerid, PerO, ta.lowest(52))
gutkW = request.security(syminfo.tickerid, PerO, (guh9W + gul9W) / 2)
gukjW = request.security(syminfo.tickerid, PerO, (guh26W + gul26W) / 2)
gusaW = request.security(syminfo.tickerid, PerO, (gutkW[25] + gukjW[25]) / 2)
gusbW = request.security(syminfo.tickerid, PerO, (guh52W[25] + gul52W[25]) / 2)
W1 = gutkW>=0 ? gutkW : 0
W2 = gukjW>=0 ? gukjW : 0
W3 = gusaW>=0 ? gusaW : 0
W4 = gusbW>=0 ? gusbW : 0
tepeW = math.max(W1, W2, W3, W4)
tpW = plot(tepeW, color = #ff0295, title = 'O', linewidth = 2)
guh9D = request.security(syminfo.tickerid, PerK, ta.highest(9))
guh26D = request.security(syminfo.tickerid, PerK, ta.highest(26))
guh52D = request.security(syminfo.tickerid, PerK, ta.highest(52))
gul9D = request.security(syminfo.tickerid, PerK, ta.lowest(9))
gul26D = request.security(syminfo.tickerid, PerK, ta.lowest(26))
gul52D = request.security(syminfo.tickerid, PerK, ta.lowest(52))
gutkD = request.security(syminfo.tickerid, PerK, (guh9D + gul9D) / 2)
gukjD = request.security(syminfo.tickerid, PerK, (guh26D + gul26D) / 2)
gusaD = request.security(syminfo.tickerid, PerK, (gutkD[25] + gukjD[25]) / 2)
gusbD = request.security(syminfo.tickerid, PerK, (guh52D[25] + gul52D[25]) / 2)
D1 = gutkD>=0 ? gutkD : 0
D2 = gukjD>=0 ? gukjD : 0
D3 = gusaD>=0 ? gusaD : 0
D4 = gusbD>=0 ? gusbD : 0
tepeD = math.max(D2,D3,D4)
tpD = plot(tepeD, color = color.rgb(9, 255, 0), title = 'K', linewidth = 2)
//res = input.timeframe(title='Time Frame', defval='D')
guh9 = ta.highest(9)
guh26 = ta.highest(26)
guh52 = ta.highest(52)
gul9 = ta.lowest(9)
gul26 = ta.lowest(26)
gul52 = ta.lowest(52)
gutk = (guh9 + gul9) / 2
gukj = (guh26 + gul26) / 2
gusa = (gutk[25] + gukj[25]) / 2
gusb = (guh52[25] + gul52[25]) / 2
hl52 = (guh52 + gul52) / 2
//gucs = request.security(syminfo.tickerid, res, math.max(math.max(gutk, gukj), math.max(gusa, gusb))[25])
colr = color.new(#ff1493, 85)
colg = color.new(#caff70, 85)
//dt = time - time[1]
//if crossover(gutk,gukj)
// label lah_2 = label.new(time, gutk, " Cross : " , color=color.white, xloc=xloc.bar_time, size=size.small , textcolor=color.black)
//if crossunder(gutk,gukj)
// label lah_2 = label.new(time, gutk, " Cross : " , color=color.red, xloc=xloc.bar_time, size=size.small , textcolor=color.black)
Gtk = plot(gutk, color=color.new(#1b8bb4, 0), title='Tenkansen', linewidth=1)
Gkj = plot(gukj, color=color.new(#8b1a1a, 0), title='Kijunsen', linewidth=1)
Gsa = plot(gusa, color=color.new(#7fffd4, 0), title='SSA', linewidth=1)
Gsb = plot(gusb, color=color.new(#fa8072, 0), title='SSB', linewidth=1)
//Gucs = plot(gucs, color=color.new(#8a2be2, 0), title='CS', linewidth=1)
h52 = plot(hl52, color=color.new(color.white, 0), title='H52', linewidth=1)
kumoc = gusa > gusb ? color.new(color.green, 90) : gusa < gusb ? color.new(color.red, 90) : na
//plotcandle(open, high, low, close, color=close < open ? color.red : color.green, bordercolor=close < open ? color.red : color.green)
//plotcandle(bo, bh, bl, bc, color=bc < bo ? colr : colg, bordercolor=bc < bo ? colr : colg, wickcolor=bc < bo ? colr : colg)
fill(Gsa, Gsb, kumoc)
cs = plot(close, color=color.new(color.yellow, 50), title='CS', linewidth=1, offset=-25)
var GRP1 = "Periyotlar:"
per = input.timeframe(title = 'Periyot 1', defval = '240', group = GRP1)
per1 = input.timeframe(title = 'Periyot 2', defval = 'D', group = GRP1)
per2 = input.timeframe(title = 'Periyot 3', defval = 'W', group = GRP1)
per3 = input.timeframe(title = 'Periyot 4', defval = 'M', group = GRP1)
per4 = input.timeframe(title = 'Periyot 5', defval = '3M', group = GRP1)
per5 = input.timeframe(title = 'Periyot 6', defval = '12M', group = GRP1)
//PIVOTLAR
pp1 = request.security(syminfo.tickerid, per1, hlc3[1], lookahead=barmerge.lookahead_on)
phigh1 = request.security(syminfo.tickerid, per1, high[1], lookahead=barmerge.lookahead_on)
plow1 = request.security(syminfo.tickerid, per1, low[1], lookahead=barmerge.lookahead_on)
pclose1 = request.security(syminfo.tickerid, per1, close[1], lookahead=barmerge.lookahead_on)
s1 = pp1 * 2 - phigh1
i_switchS1 = input.bool(true, 'Pivot 1(D) Görünsün mü? ')
plot(i_switchS1 ? phigh1 : na, title="HD-N", color=color.new(#08f800, 50), linewidth = 1, style= plot.style_cross)
pp2 = request.security(syminfo.tickerid, per2, hlc3[1], lookahead=barmerge.lookahead_on)
phigh2 = request.security(syminfo.tickerid, per2, high[1], lookahead=barmerge.lookahead_on)
plow2 = request.security(syminfo.tickerid, per2, low[1], lookahead=barmerge.lookahead_on)
pclose2 = request.security(syminfo.tickerid, per2, close[1], lookahead=barmerge.lookahead_on)
s2 = pp2 * 2 - phigh2
plot((phigh2 > close * altsinir and phigh2 < close * ustsinir) ? phigh2 : na, title="HW-N", color=color.new(#ff9900, 50), linewidth = 1, style= plot.style_cross)
//Pivot2 = plot(s2, title="S1W-N", color=color.new(#ff9900, 50), linewidth = 1, style= plot.style_cross)
pp3 = request.security(syminfo.tickerid, per3, hlc3[1], lookahead=barmerge.lookahead_on)
phigh3 = request.security(syminfo.tickerid, per3, high[1], lookahead=barmerge.lookahead_on)
plow3 = request.security(syminfo.tickerid, per3, low[1], lookahead=barmerge.lookahead_on)
pclose3 = request.security(syminfo.tickerid, per3, close[1], lookahead=barmerge.lookahead_on)
s3 = pp3 * 2 - phigh3
plot((phigh3 > close * altsinir and phigh3 < close * ustsinir) ? phigh3 : na, title="HM-N", color=color.new(#018dff, 50), linewidth = 1, style= plot.style_cross)
//Pivot3 = plot(s3, title="S1M-N", color=color.new(#018dff, 50), linewidth = 1, style= plot.style_cross)
pp4 = request.security(syminfo.tickerid, per4, hlc3[1], lookahead=barmerge.lookahead_on)
phigh4 = request.security(syminfo.tickerid, per4, high[1], lookahead=barmerge.lookahead_on)
plow4 = request.security(syminfo.tickerid, per4, low[1], lookahead=barmerge.lookahead_on)
pclose4 = request.security(syminfo.tickerid, per4, close[1], lookahead=barmerge.lookahead_on)
s4 = pp4 * 2 - phigh4
plot((phigh4 > close * altsinir and phigh4 < close * ustsinir) ? phigh4 : na, title="H3M-N", color=color.new(#ff018d, 0), linewidth = 1, style= plot.style_cross)
//Pivot4 = plot(s4, title="S13M-N", color=color.new(#ff018d, 0), linewidth = 1, style= plot.style_cross)
pp5 = request.security(syminfo.tickerid, per5, hlc3[1], lookahead=barmerge.lookahead_on)
phigh5 = request.security(syminfo.tickerid, per5, high[1], lookahead=barmerge.lookahead_on)
plow5 = request.security(syminfo.tickerid, per5, low[1], lookahead=barmerge.lookahead_on)
pclose5 = request.security(syminfo.tickerid, per5, close[1], lookahead=barmerge.lookahead_on)
s5 = pp5 * 2 - phigh5
plot((phigh5 > close * altsinir and phigh5 < close * ustsinir) ? phigh5 : na, title="HY-N", color=color.new(#00f7ff, 0), linewidth = 1, style= plot.style_cross)
//Pivot5 = plot(s5, title="SY-N", color=color.new(#00f7ff, 0), linewidth = 1, style= plot.style_cross)
Not:
Mevcut değer(seçilebilir) ile, fiyatın %40 üstünde ve altındaki değerle gösterilmez...
Kolay gele üstadım, bir başlık mı açsak diyorum?
Uykusuzlar Kulübü :yahoo:
Yine seçilebilir(MTF) OHLC ve Pivot değerleri. Yine seçilebilir fiyata +-%40 uzaklık.
https://i.ibb.co/pBTwymDx/piv1.png
Kod://@version=6
// https://twitter.com/teknikcioblomov
indicator(title = 'Pivotlar', overlay = false)
ustsinir = input.float(1.4, 'gösterge üst uzaklık')
altsinir = input.float(0.6, 'gösterge alt uzaklık')
choice = input.int(title='Direnç/Destek Sayısı:', defval=2, options=[0, 1, 2, 3, 4, 5])
c = choice
var GRP1 = 'Periyotlar:'
res1 = input.timeframe(title = 'Pivot1', defval = 'D', group = GRP1)
res2 = input.timeframe(title = 'Pivot2', defval = 'W', group = GRP1)
res3 = input.timeframe(title = 'Pivot3', defval = 'M', group = GRP1)
res4 = input.timeframe(title = 'Pivot4', defval = '3M', group = GRP1)
res5 = input.timeframe(title = 'Pivot5', defval = '6M', group = GRP1)
res6 = input.timeframe(title = 'Pivot6', defval = '12M', group = GRP1)
phD = request.security(syminfo.tickerid, res1, high[1], lookahead = barmerge.lookahead_on)
plD = request.security(syminfo.tickerid, res1, low[1], lookahead = barmerge.lookahead_on)
pcD = request.security(syminfo.tickerid, res1, close[1], lookahead = barmerge.lookahead_on)
phW = request.security(syminfo.tickerid, res2, high[1], lookahead = barmerge.lookahead_on)
plW = request.security(syminfo.tickerid, res2, low[1], lookahead = barmerge.lookahead_on)
pcW = request.security(syminfo.tickerid, res2, close[1], lookahead = barmerge.lookahead_on)
phM = request.security(syminfo.tickerid, res3, high[1], lookahead = barmerge.lookahead_on)
plM = request.security(syminfo.tickerid, res3, low[1], lookahead = barmerge.lookahead_on)
pcM = request.security(syminfo.tickerid, res3, close[1], lookahead = barmerge.lookahead_on)
phM3 = request.security(syminfo.tickerid, res4, high[1], lookahead = barmerge.lookahead_on)
plM3 = request.security(syminfo.tickerid, res4, low[1], lookahead = barmerge.lookahead_on)
pcM3 = request.security(syminfo.tickerid, res4, close[1], lookahead = barmerge.lookahead_on)
phM12 = request.security(syminfo.tickerid, res5, high[1], lookahead = barmerge.lookahead_on)
plM12 = request.security(syminfo.tickerid, res5, low[1], lookahead = barmerge.lookahead_on)
pcM12 = request.security(syminfo.tickerid, res5, close[1], lookahead = barmerge.lookahead_on)
//Pivotlar
PPD = request.security(syminfo.tickerid, res1, hlc3[1], lookahead = barmerge.lookahead_on)
PPW = request.security(syminfo.tickerid, res2, hlc3[1], lookahead = barmerge.lookahead_on)
PPM = request.security(syminfo.tickerid, res3, hlc3[1], lookahead = barmerge.lookahead_on)
PPM3 = request.security(syminfo.tickerid, res4, hlc3[1], lookahead = barmerge.lookahead_on)
PPM6 = request.security(syminfo.tickerid, res5, hlc3[1], lookahead = barmerge.lookahead_on)
PPM12 = request.security(syminfo.tickerid, res6, hlc3[1], lookahead = barmerge.lookahead_on)
var CLH = 'CLH Değerleri:'
Tall = input.bool(true, 'Önceki C/L/H değerleri görünsün mü? ', group = CLH)
Call = input.bool(true, 'Önceki Kapanışlar görünsün mü? ', group = CLH)
Lall = input.bool(true, 'Önceki Düşükler görünsün mü? ', group = CLH)
Hall = input.bool(true, 'Önceki Yüksekler görünsün mü? ', group = CLH)
var GRPD = 'D Pivot Değerler:'
colorD = color.new(#ffff56, 0)
colorD1 = color.new(#ffff56, 50)
Dall = input.bool(true, 'Günlük değerlerin tümü görünsün mü? ', group = GRPD)
Dl = input.bool(true, 'Önceki Günlük Düşük görünsün mü?? ', group = GRPD)
Dc = input.bool(true, 'Önceki Günlük Kapanış görünsün mü?? ', group = GRPD)
Dh = input.bool(true, 'Önceki Günlük Yüksek görünsün mü?? ', group = GRPD)
DallR = input.bool(true, 'Günlük dirençler görünsün mü? ', group = GRPD)
DallS = input.bool(true, 'Günlük destekler görünsün mü? ', group = GRPD)
plot(Tall and Call and Dall and Dc ? pcD : na, title = 'D Close', color = colorD1 , linewidth = 1)
plot(Tall and Lall and Dall and Dl ? plD : na, title = 'D Low', color = colorD1 , linewidth = 1)
plot(Tall and Hall and Dall and Dh ? phD : na, title = 'D High', color = colorD1 , linewidth = 1)
i_PPD = input.bool(true, 'DPivot Görünsün mü? ')
plot(i_PPD and Dall and PPD > close * altsinir and PPD < close * ustsinir ? PPD : na, title = 'D Pivot', color = colorD, linewidth = 2)
Dtr1 = PPD * 2 - plD
i_Dtr1 = input.bool(true, 'DP r1 Görünsün mü? ')
plot(c>=1 and i_Dtr1 and Dall and DallR and Dtr1 > close * altsinir and Dtr1 < close * ustsinir and close> PPD ? Dtr1 : na, title = 'DP-r1', color = colorD1, linewidth = 1, style = plot.style_cross)
Dtr2 = PPD + (phD - plD)
i_Dtr2 = input.bool(true, 'DP r2 Görünsün mü? ')
plot(c>=2 and i_Dtr2 and Dall and DallR and Dtr2 > close * altsinir and Dtr2 < close * ustsinir and close> PPD ? Dtr2 : na, title = 'DP-r2', color = colorD1, linewidth = 1, style = plot.style_cross)
// Dtr3 = PPD * 2 + (phD - 2 * plD)
// i_Dtr3 = input.bool(true, 'DP r3 Görünsün mü? ')
// plot(c>=3 and i_Dtr3 and Dall and DallR and Dtr3 > close * altsinir and Dtr3 < close * ustsinir and close> PPD ? Dtr3 : na, title = 'DP-r3', color = colorD1, linewidth = 1, style = plot.style_cross)
// Dtr4 = PPD * 3 + (phD - 3 * plD)
// i_Dtr4 = input.bool(true, 'DP r4 Görünsün mü? ')
// plot(c>=4 and i_Dtr4 and Dall and DallR and Dtr4 > close * altsinir and Dtr4 < close * ustsinir and close> PPD ? Dtr4 : na, title = 'DP-r4', color = colorD1, linewidth = 1, style = plot.style_cross)
// Dtr5 = PPD * 4 + (phD - 4 * plD)
// i_Dtr5 = input.bool(true, 'DP r5 Görünsün mü? ')
// plot(c>=5 and i_Dtr5 and Dall and DallR and Dtr5 > close * altsinir and Dtr5 < close * ustsinir and close> PPD ? Dtr5 : na, title = 'DP-r5', color = colorD1, linewidth = 1, style = plot.style_cross)
Dts1 = PPD * 2 - phD
i_Dts1 = input.bool(true, 'DP s1 Görünsün mü? ')
plot(c>=1 and i_Dts1 and Dall and DallS and Dts1 > close * altsinir and Dts1 < close * ustsinir and close< PPD ? Dts1 : na, title = 'DP-s1', color = colorD1, linewidth = 1, style = plot.style_cross)
Dts2 = PPD - (phD - plD)
i_Dts2 = input.bool(true, 'DP s2 Görünsün mü? ')
plot(c>=2 and i_Dts2 and Dall and DallS and Dts2 > close * altsinir and Dts2 < close * ustsinir and close< PPD ? Dts2 : na, title = 'DP-s2', color = colorD1, linewidth = 1, style = plot.style_cross)
// Dts3 = PPD * 2 - (2 * phD - plD)
// i_Dts3 = input.bool(true, 'DP s3 Görünsün mü? ')
// plot(c>=3 and i_Dts3 and Dall and DallS and Dts3 > close * altsinir and Dts3 < close * ustsinir and close< PPD ? Dts3 : na, title = 'DP-s3', color = colorD1, linewidth = 1, style = plot.style_cross)
// Dts4 = PPD * 3 - (3 * phD - plD)
// i_Dts4 = input.bool(true, 'DP s4 Görünsün mü? ')
// plot(c>=4 and i_Dts4 and Dall and DallS and Dts4 > close * altsinir and Dts4 < close * ustsinir and close< PPD ? Dts4 : na, title = 'DP-s4', color = colorD1, linewidth = 1, style = plot.style_cross)
// Dts5 = PPD * 4 - (4 * phD - plD)
// i_Dts5 = input.bool(true, 'DP s5 Görünsün mü? ')
// plot(c>=5 and i_Dts5 and Dall and DallS and Dts5 > close * altsinir and Dts5 < close * ustsinir and close< PPD ? Dts5 : na, title = 'DP-s5', color = colorD1, linewidth = 1, style = plot.style_cross)
var GRPW = 'W Pivot Weğerler:'
colorW = color.new(#f56624, 0)
colorW1 = color.new(#f56624, 50)
Wall = input.bool(true, 'Haftalık değerlerin tümü görünsün mü? ', group = GRPW)
Wl = input.bool(true, 'Önceki Haftalık Düşük görünsün mü?? ', group = GRPW)
Wc = input.bool(true, 'Önceki Haftalık Kapanış görünsün mü?? ', group = GRPW)
Wh = input.bool(true, 'Önceki Haftalık Yüksek görünsün mü?? ', group = GRPW)
WallR = input.bool(true, 'Haftalık dirençler görünsün mü? ', group = GRPW)
WallS = input.bool(true, 'Haftalık destekler görünsün mü? ', group = GRPW)
plot(Tall and Call and Wall and Wc ? pcW : na, title = 'W Close', color = colorW1 , linewidth = 1)
plot(Tall and Lall and Wall and Wl ? plW : na, title = 'W Low', color = colorW1 , linewidth = 1)
plot(Tall and Hall and Wall and Wh ? phW : na, title = 'W High', color = colorW1 , linewidth = 1)
i_PPW = input.bool(true, 'WPivot Görünsün mü? ')
plot(i_PPW and Wall and PPW > close * altsinir and PPW < close * ustsinir ? PPW : na, title = 'W Pivot', color = colorW, linewidth = 2)
Wtr1 = PPW * 2 - plW
i_Wtr1 = input.bool(true, 'WP r1 Görünsün mü? ')
plot(c>=1 and i_Wtr1 and Wall and WallR and Wtr1 > close * altsinir and Wtr1 < close * ustsinir and close> PPW ? Wtr1 : na, title = 'WP-r1', color = colorW1, linewidth = 1, style = plot.style_cross)
Wtr2 = PPW + (phW - plW)
i_Wtr2 = input.bool(true, 'WP r2 Görünsün mü? ')
plot(c>=2 and i_Wtr2 and Wall and WallR and Wtr2 > close * altsinir and Wtr2 < close * ustsinir and close> PPW ? Wtr2 : na, title = 'WP-r2', color = colorW1, linewidth = 1, style = plot.style_cross)
// Wtr3 = PPW * 2 + (phW - 2 * plW)
// i_Wtr3 = input.bool(true, 'WP r3 Görünsün mü? ')
// plot(c>=3 and i_Wtr3 and Wall and WallR and Wtr3 > close * altsinir and Wtr3 < close * ustsinir and close> PPW ? Wtr3 : na, title = 'WP-r3', color = colorW1, linewidth = 1, style = plot.style_cross)
// Wtr4 = PPW * 3 + (phW - 3 * plW)
// i_Wtr4 = input.bool(true, 'WP r4 Görünsün mü? ')
// plot(c>=4 and i_Wtr4 and Wall and WallR and Wtr4 > close * altsinir and Wtr4 < close * ustsinir and close> PPW ? Wtr4 : na, title = 'WP-r4', color = colorW1, linewidth = 1, style = plot.style_cross)
// Wtr5 = PPW * 4 + (phW - 4 * plW)
// i_Wtr5 = input.bool(true, 'WP r5 Görünsün mü? ')
// plot(c>=5 and i_Wtr5 and Wall and WallR and Wtr5 > close * altsinir and Wtr5 < close * ustsinir and close> PPW ? Wtr5 : na, title = 'WP-r5', color = colorW1, linewidth = 1, style = plot.style_cross)
Wts1 = PPW * 2 - phW
i_Wts1 = input.bool(true, 'WP s1 Görünsün mü? ')
plot(c>=1 and i_Wts1 and Wall and WallS and Wts1 > close * altsinir and Wts1 < close * ustsinir and close< PPW ? Wts1 : na, title = 'WP-s1', color = colorW1, linewidth = 1, style = plot.style_cross)
Wts2 = PPW - (phW - plW)
i_Wts2 = input.bool(true, 'WP s2 Görünsün mü? ')
plot(c>=2 and i_Wts2 and Wall and WallS and Wts2 > close * altsinir and Wts2 < close * ustsinir and close< PPW ? Wts2 : na, title = 'WP-s2', color = colorW1, linewidth = 1, style = plot.style_cross)
// Wts3 = PPW * 2 - (2 * phW - plW)
// i_Wts3 = input.bool(true, 'WP s3 Görünsün mü? ')
// plot(c>=3 and i_Wts3 and Wall and WallS and Wts3 > close * altsinir and Wts3 < close * ustsinir and close< PPW ? Wts3 : na, title = 'WP-s3', color = colorW1, linewidth = 1, style = plot.style_cross)
// Wts4 = PPW * 3 - (3 * phW - plW)
// i_Wts4 = input.bool(true, 'WP s4 Görünsün mü? ')
// plot(c>=4 and i_Wts4 and Wall and WallS and Wts4 > close * altsinir and Wts4 < close * ustsinir and close< PPW ? Wts4 : na, title = 'WP-s4', color = colorW1, linewidth = 1, style = plot.style_cross)
// Wts5 = PPW * 4 - (4 * phW - plW)
// i_Wts5 = input.bool(true, 'WP s5 Görünsün mü? ')
// plot(c>=5 and i_Wts5 and Wall and WallS and Wts5 > close * altsinir and Wts5 < close * ustsinir and close< PPW ? Wts5 : na, title = 'WP-s5', color = colorW1, linewidth = 1, style = plot.style_cross)
var GRPM = 'M Pivot Değerler:'
colorM = color.new(#2e59ce, 0)
colorM1 = color.new(#2e59ce, 50)
Mall = input.bool(true, 'Aylık değerlerin tümü görünsün mü? ', group = GRPM)
Ml = input.bool(true, 'Önceki Aylık Düşük görünsün mü?? ', group = GRPM)
Mc = input.bool(true, 'Önceki Aylık Kapanış görünsün mü?? ', group = GRPM)
Mh = input.bool(true, 'Önceki Aylık Yüksek görünsün mü?? ', group = GRPM)
MallR = input.bool(true, 'Aylık dirençler görünsün mü? ', group = GRPM)
MallS = input.bool(true, 'Aylık destekler görünsün mü? ', group = GRPM)
plot(Tall and Call and Mall and Mc ? pcM : na, title = 'M Close', color = colorM1 , linewidth = 1)
plot(Tall and Lall and Mall and Ml ? plM : na, title = 'M Low', color = colorM1 , linewidth = 1)
plot(Tall and Hall and Mall and Mh ? phM : na, title = 'M High', color = colorM1 , linewidth = 1)
i_PPM = input.bool(true, 'MPivot Görünsün mü? ')
plot(i_PPM and Mall and PPM > close * altsinir and PPM < close * ustsinir ? PPM : na, title = 'M Pivot', color = colorM, linewidth = 2)
Mtr1 = PPM * 2 - plM
i_Mtr1 = input.bool(true, 'MP r1 Görünsün mü? ')
plot(c>=1 and i_Mtr1 and Mall and MallR and Mtr1 > close * altsinir and Mtr1 < close * ustsinir and close> PPM ? Mtr1 : na, title = 'MP-r1', color = colorM1, linewidth = 1, style = plot.style_cross)
Mtr2 = PPM + (phM - plM)
i_Mtr2 = input.bool(true, 'MP r2 Görünsün mü? ')
plot(c>=2 and i_Mtr2 and Mall and MallR and Mtr2 > close * altsinir and Mtr2 < close * ustsinir and close> PPM ? Mtr2 : na, title = 'MP-r2', color = colorM1, linewidth = 1, style = plot.style_cross)
// Mtr3 = PPM * 2 + (phM - 2 * plM)
// i_Mtr3 = input.bool(true, 'MP r3 Görünsün mü? ')
// plot(c>=3 and i_Mtr3 and Mall and MallR and Mtr3 > close * altsinir and Mtr3 < close * ustsinir and close> PPM ? Mtr3 : na, title = 'MP-r3', color = colorM1, linewidth = 1, style = plot.style_cross)
// Mtr4 = PPM * 3 + (phM - 3 * plM)
// i_Mtr4 = input.bool(true, 'MP r4 Görünsün mü? ')
// plot(c>=4 and i_Mtr4 and Mall and MallR and Mtr4 > close * altsinir and Mtr4 < close * ustsinir and close> PPM ? Mtr4 : na, title = 'MP-r4', color = colorM1, linewidth = 1, style = plot.style_cross)
// Mtr5 = PPM * 4 + (phM - 4 * plM)
// i_Mtr5 = input.bool(true, 'MP r5 Görünsün mü? ')
// plot(c>=5 and i_Mtr5 and Mall and MallR and Mtr5 > close * altsinir and Mtr5 < close * ustsinir and close> PPM ? Mtr5 : na, title = 'MP-r5', color = colorM1, linewidth = 1, style = plot.style_cross)
Mts1 = PPM * 2 - phM
i_Mts1 = input.bool(true, 'MP s1 Görünsün mü? ')
plot(c>=1 and i_Mts1 and Mall and MallS and Mts1 > close * altsinir and Mts1 < close * ustsinir and close< PPM ? Mts1 : na, title = 'MP-s1', color = colorM1, linewidth = 1, style = plot.style_cross)
Mts2 = PPM - (phM - plM)
i_Mts2 = input.bool(true, 'MP s2 Görünsün mü? ')
plot(c>=2 and i_Mts2 and Mall and MallS and Mts2 > close * altsinir and Mts2 < close * ustsinir and close< PPM ? Mts2 : na, title = 'MP-s2', color = colorM1, linewidth = 1, style = plot.style_cross)
// Mts3 = PPM * 2 - (2 * phM - plM)
// i_Mts3 = input.bool(true, 'MP s3 Görünsün mü? ')
// plot(c>=3 and i_Mts3 and Mall and MallS and Mts3 > close * altsinir and Mts3 < close * ustsinir and close< PPM ? Mts3 : na, title = 'MP-s3', color = colorM1, linewidth = 1, style = plot.style_cross)
// Mts4 = PPM * 3 - (3 * phM - plM)
// i_Mts4 = input.bool(true, 'MP s4 Görünsün mü? ')
// plot(c>=4 and i_Mts4 and Mall and MallS and Mts4 > close * altsinir and Mts4 < close * ustsinir and close< PPM ? Mts4 : na, title = 'MP-s4', color = colorM1, linewidth = 1, style = plot.style_cross)
// Mts5 = PPM * 4 - (4 * phM - plM)
// i_Mts5 = input.bool(true, 'MP s5 Görünsün mü? ')
// plot(c>=5 and i_Mts5 and Mall and MallS and Mts5 > close * altsinir and Mts5 < close * ustsinir and close< PPM ? Mts5 : na, title = 'MP-s5', color = colorM1, linewidth = 1, style = plot.style_cross)
var GRPM3 = 'M3 Pivot Değerler:'
colorM3 = color.new(#ffffff, 0)
colorM31 = color.new(#ffffff, 50)
M3all = input.bool(true, '3 Aylık değerlerin tümü görünsün mü? ', group = GRPM3)
M3l = input.bool(true, 'Önceki 3 Aylık Düşük görünsün mü?? ', group = GRPM3)
M3c = input.bool(true, 'Önceki 3 Aylık Kapanış görünsün mü?? ', group = GRPM3)
M3h = input.bool(true, 'Önceki 3 Aylık Yüksek görünsün mü?? ', group = GRPM3)
M3allR = input.bool(true, '3 Aylık dirençler görünsün mü? ', group = GRPM3)
M3allS = input.bool(true, '3 Aylık destekler görünsün mü? ', group = GRPM3)
plot(Tall and Call and M3all and M3c ? pcM3 : na, title = 'M3 Close', color = colorM31 , linewidth = 1)
plot(Tall and Lall and M3all and M3l ? plM3 : na, title = 'M3 Low', color = colorM31 , linewidth = 1)
plot(Tall and Hall and M3all and M3h ? phM3 : na, title = 'M3 High', color = colorM31 , linewidth = 1)
i_PPM3 = input.bool(true, 'M3Pivot Görünsün mü? ')
plot(i_PPM3 and M3all and PPM3 > close * altsinir and PPM3 < close * ustsinir ? PPM3 : na, title = 'M3 Pivot', color = colorM3, linewidth = 2)
M3tr1 = PPM3 * 2 - plM3
i_M3tr1 = input.bool(true, 'M3P r1 Görünsün mü? ')
plot(c>=1 and i_M3tr1 and M3all and M3allR and M3tr1 > close * altsinir and M3tr1 < close * ustsinir and close> PPM3 ? M3tr1 : na, title = 'M3P-r1', color = colorM31, linewidth = 1, style = plot.style_cross)
M3tr2 = PPM3 + (phM3 - plM3)
i_M3tr2 = input.bool(true, 'M3P r2 Görünsün mü? ')
plot(c>=2 and i_M3tr2 and M3all and M3allR and M3tr2 > close * altsinir and M3tr2 < close * ustsinir and close> PPM3 ? M3tr2 : na, title = 'M3P-r2', color = colorM31, linewidth = 1, style = plot.style_cross)
// M3tr3 = PPM3 * 2 + (phM3 - 2 * plM3)
// i_M3tr3 = input.bool(true, 'M3P r3 Görünsün mü? ')
// plot(c>=3 and i_M3tr3 and M3all and M3allR and M3tr3 > close * altsinir and M3tr3 < close * ustsinir and close> PPM3 ? M3tr3 : na, title = 'M3P-r3', color = colorM31, linewidth = 1, style = plot.style_cross)
// M3tr4 = PPM3 * 3 + (phM3 - 3 * plM3)
// i_M3tr4 = input.bool(true, 'M3P r4 Görünsün mü? ')
// plot(c>=4 and i_M3tr4 and M3all and M3allR and M3tr4 > close * altsinir and M3tr4 < close * ustsinir and close> PPM3 ? M3tr4 : na, title = 'M3P-r4', color = colorM31, linewidth = 1, style = plot.style_cross)
// M3tr5 = PPM3 * 4 + (phM3 - 4 * plM3)
// i_M3tr5 = input.bool(true, 'M3P r5 Görünsün mü? ')
// plot(c>=5 and i_M3tr5 and M3all and M3allR and M3tr5 > close * altsinir and M3tr5 < close * ustsinir and close> PPM3 ? M3tr5 : na, title = 'M3P-r5', color = colorM31, linewidth = 1, style = plot.style_cross)
M3ts1 = PPM3 * 2 - phM3
i_M3ts1 = input.bool(true, 'M3P s1 Görünsün mü? ')
plot(c>=1 and i_M3ts1 and M3all and M3allS and M3ts1 > close * altsinir and M3ts1 < close * ustsinir and close< PPM3 ? M3ts1 : na, title = 'M3P-s1', color = colorM31, linewidth = 1, style = plot.style_cross)
M3ts2 = PPM3 - (phM3 - plM3)
i_M3ts2 = input.bool(true, 'M3P s2 Görünsün mü? ')
plot(c>=2 and i_M3ts2 and M3all and M3allS and M3ts2 > close * altsinir and M3ts2 < close * ustsinir and close< PPM3 ? M3ts2 : na, title = 'M3P-s2', color = colorM31, linewidth = 1, style = plot.style_cross)
// M3ts3 = PPM3 * 2 - (2 * phM3 - plM3)
// i_M3ts3 = input.bool(true, 'M3P s3 Görünsün mü? ')
// plot(c>=3 and i_M3ts3 and M3all and M3allS and M3ts3 > close * altsinir and M3ts3 < close * ustsinir and close< PPM3 ? M3ts3 : na, title = 'M3P-s3', color = colorM31, linewidth = 1, style = plot.style_cross)
// M3ts4 = PPM3 * 3 - (3 * phM3 - plM3)
// i_M3ts4 = input.bool(true, 'M3P s4 Görünsün mü? ')
// plot(c>=4 and i_M3ts4 and M3all and M3allS and M3ts4 > close * altsinir and M3ts4 < close * ustsinir and close< PPM3 ? M3ts4 : na, title = 'M3P-s4', color = colorM31, linewidth = 1, style = plot.style_cross)
// M3ts5 = PPM3 * 4 - (4 * phM3 - plM3)
// i_M3ts5 = input.bool(true, 'M3P s5 Görünsün mü? ')
// plot(c>=5 and i_M3ts5 and M3all and M3allS and M3ts5 > close * altsinir and M3ts5 < close * ustsinir and close< PPM3 ? M3ts5 : na, title = 'M3P-s5', color = colorM31, linewidth = 1, style = plot.style_cross)
var GRPM12 = 'M12 Pivot Değerler:'
colorM12 = color.new(#d400ff, 0)
colorM121 = color.new(#d400ff, 50)
M12all = input.bool(true, '12 Aylık değerlerin tümü görünsün mü? ', group = GRPM12)
M12l = input.bool(true, 'Önceki 12 Aylık Düşük görünsün mü?? ', group = GRPM12)
M12c = input.bool(true, 'Önceki 12 Aylık Kapanış görünsün mü?? ', group = GRPM12)
M12h = input.bool(true, 'Önceki 12 Aylık Yüksek görünsün mü?? ', group = GRPM12)
M12allR = input.bool(true, '12 Aylık dirençler görünsün mü? ', group = GRPM12)
M12allS = input.bool(true, '12 Aylık destekler görünsün mü? ', group = GRPM12)
plot(Tall and Call and M12all and M12c ? pcM12 : na, title = 'M12 Close', color = colorM121 , linewidth = 1)
plot(Tall and Lall and M12all and M12l ? plM12 : na, title = 'M12 Low', color = colorM121 , linewidth = 1)
plot(Tall and Hall and M12all and M12h ? phM12 : na, title = 'M12 High', color = colorM121 , linewidth = 1)
i_PPM12 = input.bool(true, 'M12Pivot Görünsün mü? ')
plot(i_PPM12 and M12all and PPM12 > close * altsinir and PPM12 < close * ustsinir ? PPM12 : na, title = 'M12 Pivot', color = colorM12, linewidth = 2)
M12tr1 = PPM12 * 2 - plM12
i_M12tr1 = input.bool(true, 'M12P r1 Görünsün mü? ')
plot(c>=1 and i_M12tr1 and M12all and M12allR and M12tr1 > close * altsinir and M12tr1 < close * ustsinir and close> PPM12 ? M12tr1 : na, title = 'M12P-r1', color = colorM121, linewidth = 1, style = plot.style_cross)
M12tr2 = PPM12 + (phM12 - plM12)
i_M12tr2 = input.bool(true, 'M12P r2 Görünsün mü? ')
plot(c>=2 and i_M12tr2 and M12all and M12allR and M12tr2 > close * altsinir and M12tr2 < close * ustsinir and close> PPM12 ? M12tr2 : na, title = 'M12P-r2', color = colorM121, linewidth = 1, style = plot.style_cross)
// M12tr3 = PPM12 * 2 + (phM12 - 2 * plM12)
// i_M12tr3 = input.bool(true, 'M12P r3 Görünsün mü? ')
// plot(c>=3 and i_M12tr3 and M12all and M12allR and M12tr3 > close * altsinir and M12tr3 < close * ustsinir and close> PPM12 ? M12tr3 : na, title = 'M12P-r3', color = colorM121, linewidth = 1, style = plot.style_cross)
// M12tr4 = PPM12 * 3 + (phM12 - 3 * plM12)
// i_M12tr4 = input.bool(true, 'M12P r4 Görünsün mü? ')
// plot(c>=4 and i_M12tr4 and M12all and M12allR and M12tr4 > close * altsinir and M12tr4 < close * ustsinir and close> PPM12 ? M12tr4 : na, title = 'M12P-r4', color = colorM121, linewidth = 1, style = plot.style_cross)
// M12tr5 = PPM12 * 4 + (phM12 - 4 * plM12)
// i_M12tr5 = input.bool(true, 'M12P r5 Görünsün mü? ')
// plot(c>=5 and i_M12tr5 and M12all and M12allR and M12tr5 > close * altsinir and M12tr5 < close * ustsinir and close> PPM12 ? M12tr5 : na, title = 'M12P-r5', color = colorM121, linewidth = 1, style = plot.style_cross)
M12ts1 = PPM12 * 2 - phM12
i_M12ts1 = input.bool(true, 'M12P s1 Görünsün mü? ')
plot(c>=1 and i_M12ts1 and M12all and M12allS and M12ts1 > close * altsinir and M12ts1 < close * ustsinir and close< PPM12 ? M12ts1 : na, title = 'M12P-s1', color = colorM121, linewidth = 1, style = plot.style_cross)
M12ts2 = PPM12 - (phM12 - plM12)
i_M12ts2 = input.bool(true, 'M12P s2 Görünsün mü? ')
plot(c>=2 and i_M12ts2 and M12all and M12allS and M12ts2 > close * altsinir and M12ts2 < close * ustsinir and close< PPM12 ? M12ts2 : na, title = 'M12P-s2', color = colorM121, linewidth = 1, style = plot.style_cross)
colorhh= color.new(#3d7a04, 0)
plotcandle(open, high, low, close, 'fiyat', color = close > phM and close > phM3 and close > phM12 ? colorhh : close > PPM and close > PPM3 and close > PPM12 ? colorM12 : close < PPM ? colorM : close < PPM3 ? colorM3 : close < PPM12 ? colorM12 : color.red, bordercolor = close < open ? color.red : color.green)
// M12ts3 = PPM12 * 2 - (2 * phM12 - plM12)
// i_M12ts3 = input.bool(true, 'M12P s3 Görünsün mü? ')
// plot(c>=3 and i_M12ts3 and M12all and M12allS and M12ts3 > close * altsinir and M12ts3 < close * ustsinir and close< PPM12 ? M12ts3 : na, title = 'M12P-s3', color = colorM121, linewidth = 1, style = plot.style_cross)
// M12ts4 = PPM12 * 3 - (3 * phM12 - plM12)
// i_M12ts4 = input.bool(true, 'M12P s4 Görünsün mü? ')
// plot(c>=4 and i_M12ts4 and M12all and M12allS and M12ts4 > close * altsinir and M12ts4 < close * ustsinir and close< PPM12 ? M12ts4 : na, title = 'M12P-s4', color = colorM121, linewidth = 1, style = plot.style_cross)
// M12ts5 = PPM12 * 4 - (4 * phM12 - plM12)
// i_M12ts5 = input.bool(true, 'M12P s5 Görünsün mü? ')
// plot(c>=5 and i_M12ts5 and M12all and M12allS and M12ts5 > close * altsinir and M12ts5 < close * ustsinir and close< PPM12 ? M12ts5 : na, title = 'M12P-s5', color = colorM121, linewidth = 1, style = plot.style_cross)
// TMtr1 = PPM3 * 2 - plM3
// TMts1 = PPM3 * 2 - phM3
// TMtr2 = PPM3 + phM3 - plM3
// TMts2 = PPM3 - (phM3 - plM3)
// TMtr3 = PPM3 * 2 + phM3 - 2 * plM3
// TMts3 = PPM3 * 2 - (2 * phM3 - plM3)
// TMtr4 = PPM3 * 3 + phM3 - 3 * plM3
// TMts4 = PPM3 * 3 - (3 * phM3 - plM3)
// TMtr5 = PPM3 * 4 + phM3 - 4 * plM3
// TMts5 = PPM3 * 4 - (4 * phM3 - plM3)
// Ytr1 = PPM12 * 2 - plM12
// Yts1 = PPM12 * 2 - phM12
// Ytr2 = PPM12 + phM12 - plM12
// Yts2 = PPM12 - (phM12 - plM12)
// Ytr12 = PPM12 * 2 + phM12 - 2 * plM12
// Yts12 = PPM12 * 2 - (2 * phM12 - plM12)
// Ytr4 = PPM12 * 12 + phM12 - 12 * plM12
// Yts4 = PPM12 * 12 - (12 * phM12 - plM12)
// Ytr5 = PPM12 * 4 + phM12 - 4 * plM12
// Yts5 = PPM12 * 4 - (4 * phM12 - plM12)
// if ta.crossover(close, Mtr5) and close > PPM// enter long by market if current open great then previous high
// strategy.entry('Mbuy', strategy.long, 1)
// if ta.crossunder(close, Mtr5)// enter short by market if current open less then previous low
// strategy.entry('Mshort', strategy.short, 1)
Bu arada...
Benim tüm göstergelerimde 3M yani 3 Ay vardır...
Kod yazan, teknik göstergelere bakanlara da öneririm.
Yanlış değilsem ben senden biraz büyüğüm :)
Hemen pes etme öyle
X'te çok öyle yazılı sohbet ortamı yok
Biliyorsun space odaları var
Oradaki odalarda da konuşmak için de "hamili kart yakınımdır" isteniyor
Forumun ortalaması düşse de buranın bir okul olduğunu anlayanlar ayrılamıyorlar işte
Tahammülün düştüyse eğer yakında işler yolunda giderse sana enerji verecek bir akıl danışabilirim
Benden haber bekle üstadım :)