reees

Divergence Strength Oscillator

reees ที่อัปเดต:   
Detects divergence before it has formed a valid divergent pivot, across multiple indicators. After publishing my Strength of Divergence Across Multiple Indicators script, it seemed there were a lot of people who wanted to see the divergence signals before the divergent pivots were actually confirmed. Everyone complains about indicators repainting, yet in the next breath they complain about not wanting to wait for a signal to be confirmed before it appears on their chart! No matter how many times you ask, you can't have your cake and eat it too.

While this isn't exactly cake, it's as close as you're gonna get. This oscillator will calculate the strength of divergence as it forms on any bar that could potentially be a pivot point (e.g. for a pivot low, the preceding bars must be higher than it) and track the net (bullish - bearish) value.

For example:

PLEASE NOTE that this is not intended to be a "Buy" or "Sell" signal, and it would be foolish to use it as such. The purpose of this script is to show you potential divergences as early as possible, so that you have more time to plan and evaluate confluent signals, etc.

The Divergence Strength Calculation:

The total divergence strength value is the sum of the divergence strengths of all indicators for which divergence was detected at a given bar. Each indicator's individual divergence strength is comprised of two basic components: (1) |ΔPrice| - the magnitude of the change in price over the divergence period (pivot-to-pivot), and (2) |ΔIndicator| - the magnitude of the change in indicator value over the divergence period.

Because different indicators' scales and volatility can vary greatly, the Δ values are expressed in terms of standard deviation to ensure that the values are meaningful and equitable across all indicators and assets/instruments/currency pairs, etc:

|ΔIndicator| = |indicator_value_1 - indicator_value_2| / 2 * StDev(indicator_series,100)

Based on work for my Strength of Divergence Across Multiple Indicators script:
เอกสารเผยแพร่:
Using histogram instead of line
เอกสารเผยแพร่:
Changed to stepline_diamond to better illustrate change in value
เอกสารเผยแพร่:
value should be na when no divergence detected on a given bar

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

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

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

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

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?