OPEN-SOURCE SCRIPT
Apex Trend & Liquidity Master with TP/SL

The Apex Trend & Liquidity Master is a systematic trading framework that identifies trend direction and key structural price levels for entry and exit decisions. The system uses a volatility-adaptive trend detection mechanism built on Hull Moving Averages with ATR-based bands to filter consolidation periods and isolate directional moves.
The liquidity detection engine identifies potential reversal zones by marking swing highs and lows that meet statistical significance thresholds. These zones represent areas where institutional order flow previously caused price rejection. Zones remain active until price closes through them, indicating mitigation of the level.
This implementation is an enhanced derivative of the original system with fully automated risk management. Stop losses are calculated using ATR multiples with entry candle wick protection as a minimum threshold, while take profits maintain a fixed 3:1 risk-reward ratio. An additional exit mechanism closes profitable positions when price reaches opposing supply or demand zones, providing early profit-taking at probable reversal points before full target completion.
Entry signals generate only on trend changes when volume exceeds average levels, reducing false breakouts in ranging conditions. The system includes complete position tracking with three distinct exit types: take profit hits, stop loss hits, and profitable zone contact exits. All calculations use confirmed historical data with no forward-looking bias, though supply/demand zone identification operates with a confirmation lag inherent to pivot point detection.
The liquidity detection engine identifies potential reversal zones by marking swing highs and lows that meet statistical significance thresholds. These zones represent areas where institutional order flow previously caused price rejection. Zones remain active until price closes through them, indicating mitigation of the level.
This implementation is an enhanced derivative of the original system with fully automated risk management. Stop losses are calculated using ATR multiples with entry candle wick protection as a minimum threshold, while take profits maintain a fixed 3:1 risk-reward ratio. An additional exit mechanism closes profitable positions when price reaches opposing supply or demand zones, providing early profit-taking at probable reversal points before full target completion.
Entry signals generate only on trend changes when volume exceeds average levels, reducing false breakouts in ranging conditions. The system includes complete position tracking with three distinct exit types: take profit hits, stop loss hits, and profitable zone contact exits. All calculations use confirmed historical data with no forward-looking bias, though supply/demand zone identification operates with a confirmation lag inherent to pivot point detection.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.