LuxAlgo

Fair Value Gap [LuxAlgo]

LuxAlgo Wizard ที่อัปเดต:   
Fair value gaps (FVG) highlight imbalances areas between market participants and have become popular amongst technical analysts. The following script aims to display fair value gaps alongside the percentage of filled gaps and the average duration (in bars) before gaps are filled.

Users can be alerted when an FVG is filled using the alerts built into this script.

🔶 USAGE


In practice, FVG's highlight areas of support (bullish FVG) and resistances (bearish FVG). Once a gap is filled, suggesting the end of the imbalance, we can expect the price to reverse.

This approach is more contrarian in nature, users wishing to use a more trend-following approach can use the identification of FVG as direct signals, going long with the identification of a bullish FVG, and short with a bearish FVG.

🔹Mitigation

By default, the script highlights the areas of only unmitigated FVG's. Users can however highlight the mitigation level of mitigated FVG's, that is the lower extremity of bullish FVG's and the upper extremity of bearish FVG's.


The user can track the evolution of a mitigated FVG's using the "Dynamic" setting.

🔹Threshold


The gap height can be used to determine the degree of imbalance between buying and selling market participants. Users can filter fair value gaps based on the gap height using the "Threshold %" setting. Using the "Auto" will make use of an automatic threshold, only keeping more volatile FVG's.

🔶 DETAILS

We use the following rules for detecting FVG's in this script:

Bullish FVG

  • low > high(t-2)
  • close(t-1) > high(t-2)
  • (low - high(t-2)) / high(t-2) > threshold

Upper Bullish FVG = low
Lower Bullish FVG = high(t-2)

Bearish FVG

  • high < low(t-2)
  • close(t-1) < low(t-2)
  • (low(t-2) - high) / high < -threshold

Upper Bearish FVG = low(t-2)
Lower Bearish FVG = high

🔶 SETTINGS

  • Threshold %: Threshold percentage used to filter our FVG's based on their height.
  • Auto Threshold: Use the cumulative mean of relative FVG heights as threshold.
  • Unmitigatted Levels: Extent the mitigation level of the number of unmitigated FVG's set by the user.
  • Mitigation Levels: Show the mitigation levels of mitigated FVG's.
  • Timeframe : Timeframe of the price data used to detect FVG's.
เอกสารเผยแพร่:
Minor changes.
เอกสารเผยแพร่:
- Added new Fair Value Gap styling
- Changed defaults
- Minor changes
เอกสารเผยแพร่:
- Changed threshold input step to 0.1
- Changed auto threshold, allowing for more frequent fair value gaps

Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
สคริปต์โอเพนซอร์ซ

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

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

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

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