TradingView
MartinMystere
2017년 5월 7일 오후 9시 7분

Pine Editor Tutorial #3 - Trading Sessions 

AUD/JPYOANDA

설명

Welcome to Pine Editor Tutorial #3

On Tutorial #1 : We have plotted circles on each line
On Tutorial #2: We have highlighted a specific day
On this tutorial we will highlight sessions so that we can use them in our strategy at later stage.

Session is defined as an input first so that you can toggle it on and off.

Hope this helps,
Feel free to comment.

MartinMystere
코멘트
rajaadnan25
//@version=3
study("TenUp Bots S R", overlay=true)
a = input(title="Sensitivity", type=integer, defval=10, minval=1, maxval=9999)
d = input(title="Transparency", type=integer, defval=85, minval=1, maxval=100)
b = #FF0000
c = #0000FF
plot(highest(a*1), title='Resistance 1', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*1), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*2), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*2), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*3), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*3), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*4), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*4), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*5), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*5), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*6), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*6), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*7), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*7), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*8), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*8), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*9), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*9), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*10), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*10), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*15), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*15), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*20), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*20), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*25), title='Resistance', color=b, lin
wa38675
//@version=3
study("TenUp Bots S R", overlay=true)
a = input(title="Sensitivity", type=integer, defval=10, minval=1, maxval=9999)
d = input(title="Transparency", type=integer, defval=85, minval=1, maxval=100)
b = #FF0000
c = #0000FF
plot(highest(a*1), title='Resistance 1', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*1), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*2), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*2), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*3), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*3), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*4), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*4), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*5), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*5), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*6), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*6), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*7), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*7), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*8), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*8), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*9), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*9), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*10), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*10), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*15), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*15), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*20), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*20), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*25), title='Resistance', color=b, line
dberescu
very well done, thank you.
Traian
zainulabdien537
//@version=3
study("TenUp Bots S R", overlay=true)
a = input(title="Sensitivity", type=integer, defval=10, minval=1, maxval=9999)
d = input(title="Transparency", type=integer, defval=85, minval=1, maxval=100)
b = #FF0000
c = #0000FF
plot(highest(a*1), title='Resistance 1', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*1), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*2), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*2), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*3), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*3), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*4), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*4), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*5), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*5), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*6), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*6), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*7), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*7), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*8), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*8), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*9), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*9), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*10), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*10), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*15), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*15), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*20), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*20), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*25), title='Resistance', color=b, lin
mzabihiyazdi
//@version=4
study(title="AminoFT", shorttitle="AminoFT", format=format.price, precision=2)
periodK1 = input(15, title="K1", minval=1)
periodK2 = input(30, title="K2", minval=1)
periodK3 = input(60, title="K3", minval=1)
periodK4 = input(240, title="K4", minval=1)
Slowing = input(1, title="Slowing" , minval=1)

k1 = sma(stoch(close, high, low, periodK1), Slowing)
k2 = sma(stoch(close, high, low, periodK2), Slowing)
k3 = sma(stoch(close, high, low, periodK3), Slowing)
k4 = sma(stoch(close, high, low, periodK4), Slowing)

plot(k4, title="%K 4", color = color.green , linewidth=2)
plot(k3, title="%K 3", color = color.blue)
plot(k2, title="%K 2", color = color.purple )
plot(k1, title="%K 1", color = color.red)

h20 = hline(20 , title='Level %20', color = #8e8e8e24 , linestyle= 0, linewidth=1 )
h50 = hline(50 , title='Level %50', color = #8e8e8e45 , linestyle= 0, linewidth=1 )
h80 = hline(80 , title='Level %80', color = #8e8e8e24 , linestyle= 0, linewidth=1 )
modegh
//@version=5
indicator(title="Colored ADX & DI Crossings w/ Options - Llipe", shorttitle="amirambit", format=format.price, precision=4)

solidADX = input.bool(false, "Use solid color ADX?")
adxLineColor = input.color(color.white, "ADX Line Color")

coloredBgColor = input.bool(true, "Colored BG Color?")
WASHEDRED = color.new(color.red, 60)
WASHEDGREEN = color.new(color.green, 60)
longBgColor = input.color(WASHEDGREEN, "DI+ > DI- BG Color - Long")
shortBgColor = input.color(WASHEDRED, "DI+ < DI- BG Color - Short")

showVerticalLines = input.bool(true, "Show Vertical Lines?")
vlineLongColor = input.color(#006400, "Vertical Line - Long")
vlineShortColor = input.color(#8B0000, "Vertical Line - Short")

showSignals = input.bool(true, "Show Signals?")

len = input.int(17, minval=1, title="DI Length")
lensig = input.int(14, title="ADX Smoothing", minval=1, maxval=50)
adxBaseLevel = input.int(23, title="ADX Base Level", minval=1, maxval=100)

[diplus, diminus, adx] = ta.dmi(len, lensig)

didiff = diplus > diminus ? diplus - diminus : diminus - diplus
diLongSignal = ta.crossover(diplus, diminus)
diShortSignal = ta.crossunder(diplus, diminus)

// Background
activeBgColor = diplus >= diminus ? longBgColor : shortBgColor
bgcolor(coloredBgColor ? activeBgColor : na)

// Vertical Lines
if (diLongSignal and showVerticalLines)
line.new(bar_index, adxBaseLevel, bar_index, adxBaseLevel * 1.01, extend = extend.both, color = vlineLongColor, style = line.style_solid, width = 2)
if (diShortSignal and showVerticalLines)
line.new(bar_index, adxBaseLevel, bar_index, adxBaseLevel * 1.01, extend = extend.both, color = vlineShortColor, style = line.style_solid, width = 2)

// ADX Line
adxColor = diplus >= diminus ? color.green : color.red
plot(adx, color=(solidADX ? adxLineColor : adxColor), title="Colored ADX", linewidth=3)
plot(adxBaseLevel, color = color.silver, title="Base Level", linewidth=1)

// Signal Shapes
plotshape(diLongSignal and showSignals, title="Long", location = location.bottom, style = shape.triangleup, size = size.tiny, color = color.green, textcolor = color.white)
plotshape(diShortSignal and showSignals, title="Short", location = location.top, style = shape.triangledown, size = size.tiny, color = color.red, textcolor = color.white)
humaariesadn
support and resistance file open ho k aesi arhi he. . . isme kuch samjh nhi arha

//@version=3
study("TenUp Bots S R", overlay=true)
a = input(title="Sensitivity", type=integer, defval=10, minval=1, maxval=9999)
d = input(title="Transparency", type=integer, defval=85, minval=1, maxval=100)
b = #FF0000
c = #0000FF
plot(highest(a*1), title='Resistance 1', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*1), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*2), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*2), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*3), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*3), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*4), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*4), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*5), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*5), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*6), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*6), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*7), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*7), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*8), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*8), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*9), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*9), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*10), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*10), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*15), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(lowest (a*15), title='Support', color=c, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
plot(highest(a*20), title='Resistance', color=b, linewidth=2, style=line, transp=d, offset=-9999, trackprice=true)
sawanrajcrizerworld24
Sir Very exlant indigetar
manolive46
Excellent! I didn't even know you could do this. Now it's worth learning it. many thanks.
mattgofaster
Super helpful! Thank you.
더보기