GOLD/DXY Reversal Strategy LJxV6 by itzkarmakyo

By itzkarmakyo

Performance Metrics

Description

This strategy is a mean-reversion reversal system designed around the inverse relationship between gold and the U.S. Dollar Index (DXY). Its core idea is to identify moments when gold becomes overextended in one direction while DXY moves in the opposite direction, signaling a potential reversal. The system waits for confirmation through a market structure shift (MSS) before entering trades, ensuring that momentum has actually begun to turn rather than blindly fading price.The strategy optionally filters trades using trend confirmation tools, including a Supertrend indicator and an EMA ribbon. These filters ensure that trades are either aligned with or constrained by the broader trend, depending on user preference. Additionally, a session filter can restrict trading to specific time windows, helping avoid low-liquidity or erratic market conditions. This adds a layer of control over when signals are allowed to trigger.A key component of the strategy is its overextension logic, which measures how far price has moved over a recent lookback period. If gold has moved beyond a defined percentage threshold, it is considered stretched. At the same time, the strategy checks whether DXY is moving in the opposite direction, reinforcing the idea of a divergence-based setup. Only when both overextension and inverse correlation conditions are satisfied does the system look for entry signals.Entries are triggered using a market structure shift (MSS) model. For long trades, price must break above a recent short-term high after being in a downward move, signaling a bullish shift. For short trades, price must break below a recent low after an upward move. This ensures entries are not purely based on indicators but on actual structural changes in price action.Risk management is a major focus of the strategy. Stop losses are placed beyond recent swing highs or lows, with an additional ATR-based buffer to avoid being stopped out by noise. Position sizing can be either fixed or dynamically calculated based on a percentage of account equity, allowing consistent risk per trade. Take-profit levels are determined using a configurable risk-to-reward ratio, typically set to 1:1, meaning the profit target equals the distance to the stop loss.The strategy also includes advanced exit mechanisms beyond the standard stop loss and take profit. One is an EMA-based mitigation exit, which closes trades early if price moves against the position and crosses a key EMA, particularly when trading against the higher timeframe trend. This helps cut losses before they reach full stop loss. Another is the extended hold exit, which allows profitable trades to run longer but exits when signs of weakness appear, such as an opposing candle closing beyond a holding EMA.To improve decision-making and feedback, the strategy features visual tools and a performance dashboard. It draws risk-to-reward boxes directly on the chart, (atleast i wish it did, could get it to woke, hopefully you lol), clearly showing the entry, stop loss, and take-profit zones. The dashboard displays key metrics such as win rate, profit factor, total trades, and counts of special exits, giving a quick overview of how the strategy is performing in real time.Overall, this is a hybrid strategy combining mean reversion, correlation, and structure-based confirmation, enhanced with robust risk management and adaptive exit logic. It is designed to capture high-probability reversals while minimizing downside risk and providing clear visual and statistical feedback to the trader.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView