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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.