RicardoSantos

[RS]Temporal Extrapolated Volume V1

EXPERIMENTAL: method to extrapolate volume from moving price.
สคริปต์โอเพนซอร์ซ

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

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

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

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
study(title="[RS]Temporal Extrapolated Volume V1", shorttitle="[RS]TEV.V1", overlay=false)
useAltTF = input(false)
AltTF = input("1")
tf =
    useAltTF ? AltTF : 
        period == "1" ? "1" :
        period == "5" ? "1" :
        period == "15" ? "1" :
        period == "30" ? "1" :
        period == "60" ? "1" :
        period == "240" ? "1" :
        period == "D" ? "5" :
        period == "W" ? "D" :
        period == "M" ? "D" : AltTF
AltPeriod = input(60)
tf_period =
    useAltTF ? AltPeriod :
        period == "1" ? 15 :
        period == "5" ? 30 :
        period == "15" ? 60 :
        period == "30" ? 240 :
        period == "60" ? 720 :
        period == "240" ? 1440 :
        period == "D" ? 1440 :
        period == "W" ? 30 :
        period == "M" ? 96 : AltPeriod

use_ha = input(false)
normalize_volume = input(false)
tv() => sum(high-low, tf_period)
nv() => sum(close < open ? open-close : 0, tf_period)
pv() => sum(close > open ? close-open : 0, tf_period)

tv_s = use_ha ? security(heikenashi(tickerid), tf, tv()) : security(tickerid, tf, tv())
nv_s = use_ha ? security(heikenashi(tickerid), tf, nv()) : security(tickerid, tf, nv())
pv_s = use_ha ? security(heikenashi(tickerid), tf, pv()) : security(tickerid, tf, pv())

normalized_volume = normalize_volume ? sum(tv_s, 100)/100 : tv_s

plot(normalized_volume, style=histogram, color=black)
plot(nv_s, style=columns, color=maroon)
plot(pv_s, style=columns, color=green)

ไอเดียที่เกี่ยวข้อง