saatlik pivota...seanslık kanallama.....ve sağ 5...sol 3...işaretleme....
PHP Code:
 //@version=5

indicator(title='Pivot Points High Low Extension'shorttitle='.'overlay=true)


pvtLenL input.int(5minval=1title='Pivot Length Left Hand Side')
pvtLenR input.int(3minval=1title='Pivot Length Right Hand Side')
maxLvlLen input.int(0minval=0title='Maximum Extension Length')
ShowHHLL input(falsetitle='Show HH,LL,LH,HL Markers On Pivots Points')
WaitForClose input(falsetitle='Wait For Candle Close Before Printing Pivot')


// Get High and Low Pivot Points
pvthi_ ta.pivothigh(highpvtLenLpvtLenR)
pvtlo_ ta.pivotlow(lowpvtLenLpvtLenR)

// Force Pivot completion before plotting.
Shunt WaitForClose 0
pvthi 
pvthi_[Shunt]
pvtlo pvtlo_[Shunt]

//  ||-----------------------------------------------------------------------------------------------------||
//  ||---   Higher Highs, Lower Highs, Higher Lows, Lower Lows  -------------------------------------------||
valuewhen_1 ta.valuewhen(pvthihigh[pvtLenR Shunt], 1)
valuewhen_2 ta.valuewhen(pvthihigh[pvtLenR Shunt], 0)
higherhigh na(pvthi) ? na valuewhen_1 valuewhen_2 pvthi na
valuewhen_3 
ta.valuewhen(pvthihigh[pvtLenR Shunt], 1)
valuewhen_4 ta.valuewhen(pvthihigh[pvtLenR Shunt], 0)
lowerhigh na(pvthi) ? na valuewhen_3 valuewhen_4 pvthi na
valuewhen_5 
ta.valuewhen(pvtlolow[pvtLenR Shunt], 1)
valuewhen_6 ta.valuewhen(pvtlolow[pvtLenR Shunt], 0)
higherlow na(pvtlo) ? na valuewhen_5 valuewhen_6 pvtlo na
valuewhen_7 
ta.valuewhen(pvtlolow[pvtLenR Shunt], 1)
valuewhen_8 ta.valuewhen(pvtlolow[pvtLenR Shunt], 0)
lowerlow na(pvtlo) ? na valuewhen_7 valuewhen_8 pvtlo na

plot
(not ShowHHLL pvthi natitle='PH *'style=plot.style_cross, ****=falsecolor=color.new(color.red0), offset=-pvtLenR Shuntlinewidth=4)
plot(not ShowHHLL pvtlo natitle='PL *'style=plot.style_cross, ****=falsecolor=color.new(color.lime0), offset=-pvtLenR Shuntlinewidth=4)


width input.int(1minval=1)
xHigh request.security(syminfo.tickerid'60'high[1])
xLow request.security(syminfo.tickerid'60'low[1])
xClose request.security(syminfo.tickerid'15'close[1])
vPP = (xHigh xLow xClose) / 3
vR1 
vPP vPP xLow
vS1 
vPP - (xHigh vPP)
vR2 vPP xHigh xLow
vS2 
vPP - (xHigh xLow)
vR3 xHigh * (vPP xLow)
vS3 xLow * (xHigh vPP)
plot(vS1color=color.new(#ff0000, 100), title='S1', style=plot.style_steplinebr, linewidth=width)
plot(vS2color=color.new(#ff002a, 100), title='S2', style=plot.style_steplinebr, linewidth=width)
plot(vS3color=color.new(#ff014a, 100), title='S3', style=plot.style_steplinebr, linewidth=width)
plot(vR1color=color.new(#009600, 100), title='R1', style=plot.style_steplinebr, linewidth=width)
plot(vR2color=color.new(#006F00, 100), title='R2', style=plot.style_steplinebr, linewidth=width)
plot(vR3color=color.new(#004900, 100), title='R3', style=plot.style_steplinebr, linewidth=width)

//@version=5

Base input.timeframe(title='Larger Res than Chart'defval='240')
breakline input(title='Breaks in lines'defval=true)
so request.security(syminfo.tickeridBaseopen)
sh request.security(syminfo.tickeridBasehigh)
sl request.security(syminfo.tickeridBaselow)
sc request.security(syminfo.tickeridBaseclose)
br so != so[1] and sc != sc[1] and sh != sh[1] and sl != sl[1] and breakline == true na
col 
so sc color.red color.green
a1 
na(br) ? so na
a2 
na(br) ? sh na
a3 
na(br) ? sl na
a4 
na(br) ? sc na
p1 
plot(a1'Open'color.new(color.white0), style=plot.style_linebr)
p2 plot(a2'High'color.new(color.black75), style=plot.style_linebr)
p3 plot(a3'Low'color.new(color.black75), style=plot.style_linebr)
p4 plot(a4'Close'colstyle=plot.style_linebr)
fill(p1p4coltransp=25)
fill(p2p3color.new(color.silver65))