ZLu

[ZLu]Volume Reversal Indicator

207
**Created by Shanghai Reed Asset Management Co., Ltd.**
5 Entry Conditions by the Original Idea:
1. Absolute Value of 5-day Price Change is larger than Standard Deviation of Price Change
2. 5-day Average Volume is smaller than 75% of 5-day Average Volume ten days ago.
3. 5-day Price Change is negative (Long Entry)
4. 5-day Price Change is positive (Short Entry)
5. All Positions will be closed 5 days after the entry

Enter Long when Price Change Ratio crosses under the Lower Band and Volume Ratio is under the Level

Enter Short when Price Change Ratio crosses over the Upper Band and Volume Ratio is over the Level

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

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

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

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

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
//@version=2
//Idea by Michael Cooper
//Created by Shanghai Reed Asset Management Co., Ltd.
//本策略为上海蘆田资产管理有限公司制
study("[蘆田资產]Volume Reversal Indicator", shorttitle = "VRI", overlay = false)
//Price Change
fastLength = input(5, "Fast Length")
slowLength = input(100, "Slow Length")
band = input(2, "Band")
//Price Change
priceChange = abs(close - close[fastLength])
//Price Change Standard Deviation
priceStd = stdev(close - close[1], slowLength)
pR = priceStd != 0? priceChange/priceStd : na
pRS = sign(close - close[fastLength]) * pR
plot(pRS, "Price Ratio", color = pRS >= 0 ? red : green, style = columns)
plot(band, "High Band", color = orange, linewidth = 2)
plot(-band, "Low Band", color = orange, linewidth = 2)

//Volume Ratio
length = input(5, "Length")
ratio = input(75, "Ratio")
Period = input(2)
vol1 = sma(volume, length)[1]
vol2 = sma(volume, length)[length * Period + 1]
volRatio = not vol2 != 0 ? na : vol1/vol2
plot(volRatio, "Volume Ratio", color = purple, linewidth = 3)
plot(ratio/100, "Buy/Sell Level", color = blue, linewidth = 2)