soru

NUT

30
Hello,
No detailed description as usual

Cheers,
soru
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
study(title="NUT",shorttitle="NUT", overlay=true)
timeinrange(res, sess) => time(res, sess) != 0


//ny_high = security(tickerid,'510',high)
//ny_low = security(tickerid,'510',low)
len_tf = ismonthly? 1 : isweekly ? 1 : isdaily? 1 : interval>60 ? 9 : interval>15 ? 36 : interval>5 ? 110 : interval >= 1 ? 540 : 1
ny_highs = timeinrange(period, "0800-1700") ? high : na
ny_lows = timeinrange(period, "0800-1700") ? low : na
ny_high = highest(ny_highs,len_tf)
ny_low = lowest(ny_lows,len_tf)
n1= plot(timeinrange(period, "0800-1700") ? ny_high : na,style=areabr,transp=100)
n2=plot(timeinrange(period, "0800-1700")  ? ny_low:na,style=areabr,transp=100)
nf = fill(n1,n2,color=red)

eu_highs = timeinrange(period, "0300-1200") ? high : na
eu_lows = timeinrange(period, "0300-1200") ? low : na
eu_high = highest(eu_highs,len_tf)
eu_low = lowest(eu_lows,len_tf)
e1= plot(timeinrange(period, "0300-1200") ? eu_high : na,style=areabr,transp=100)
e2=plot(timeinrange(period, "0300-1200")  ? eu_low:na,style=areabr,transp=100)
ef = fill(e1,e2,color=green)

daily_high = security(tickerid,"1D",high)
daily_low = security(tickerid,"1D",low)
plot(daily_high,style=line,color=black)
plot(daily_low,style=line,color=black)

pivot = (high + low + close ) / 3.0 
dp = input(false, title="Show Daily Pivots?")
wp = input(true, title="Show Weekly Pivots?")
daily_pivot = security(tickerid, 'D', pivot[1]) 
weekly_pivot = security(tickerid, 'W', pivot[1]) 
plot(dp ? daily_pivot : na, style=circles,linewidth=1,color=blue)
plot(wp ? weekly_pivot : na, style=circles,linewidth=1,color=orange)