OPEN-SOURCE SCRIPT
Candle Displacement [D4A]

Quantifying Market Momentum
Spotting sudden, aggressive price action often called displacement doesn't have to be a guessing game. Finding who is in control - buyers or sellers - can be as easy as looking for candles with specific colors. The script objectively track these explosive price moves by comparing candle's range against multiple of ATR over a specific lookback period (ATR Length).
True displacement should create a gap or FVG (Fair Value Gap) which indicates strong price move in one direction and this script provides the logic to catch this specific scenario while filtering out noise. Additionally, the cript marks break-of-structure displacement candles to highlight the beginning of strong directional move or a reversal. There is also filter provided to find only candles with significant gap created (FVG threshold). This script works best on smaller timeframes, eg. 1m or 5m.
SETTINGS
- Displacement - show displacement candles
- Min Body % - displacement candle should have at least this body size compared to whole candle range
- Require FVG - filters out the candles which don't create a gap. True displacement should create FVG
- Threshold - a valid FVG should be larger than this ATR multiplier
- Highlight candles which broke structure - color-codes the candles that broke recent market structure (high or low)
- Bars to define recent high/low (structure) - how many bars back should the script look to find recent high or low
- ATR length - ATR value over period of time to calculate average candle range
- Multiplier - used to find candles which are this times bigger than average ATR
-----------------
Disclaimer
The content provided in this script is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Spotting sudden, aggressive price action often called displacement doesn't have to be a guessing game. Finding who is in control - buyers or sellers - can be as easy as looking for candles with specific colors. The script objectively track these explosive price moves by comparing candle's range against multiple of ATR over a specific lookback period (ATR Length).
True displacement should create a gap or FVG (Fair Value Gap) which indicates strong price move in one direction and this script provides the logic to catch this specific scenario while filtering out noise. Additionally, the cript marks break-of-structure displacement candles to highlight the beginning of strong directional move or a reversal. There is also filter provided to find only candles with significant gap created (FVG threshold). This script works best on smaller timeframes, eg. 1m or 5m.
SETTINGS
- Displacement - show displacement candles
- Min Body % - displacement candle should have at least this body size compared to whole candle range
- Require FVG - filters out the candles which don't create a gap. True displacement should create FVG
- Threshold - a valid FVG should be larger than this ATR multiplier
- Highlight candles which broke structure - color-codes the candles that broke recent market structure (high or low)
- Bars to define recent high/low (structure) - how many bars back should the script look to find recent high or low
- ATR length - ATR value over period of time to calculate average candle range
- Multiplier - used to find candles which are this times bigger than average ATR
-----------------
Disclaimer
The content provided in this script is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。