Advanced Trading Intelligence for Gold (XAUUSD) & Crypto with Multi-Strategy Exit System, Partial Close & News Filter
GAIN OPTIMIZER V4.49 is a sophisticated trading indicator designed for Gold (XAUUSD), Crypto, and Forex trading on TradingView. It combines multiple technical analysis methods with advanced profit protection features to identify high-probability trading opportunities.
RSI, MACD, EMA, ADX, Supertrend, and Multi-Timeframe analysis combined for precise signals.
Trailing Stop, Breakeven, Guaranteed Profit, and Stop Loss to protect your capital.
Close 50% on trailing stop, keep 50% running until Supertrend change.
Automatically pause trading before high-impact news events (NFP, CPI, FOMC).
Full automation with MT4/MT5 via PineConnector alerts integration.
Real-time statistics: Win Rate, Daily P&L, Active Trades, News Status.
GAIN OPTIMIZER uses a sophisticated 7-point confluence scoring system. Each signal requires multiple confirmations to ensure high-probability trades.
| Factor | BUY Condition | SELL Condition |
|---|---|---|
| 1. RSI | < 30 (oversold) + rising | > 70 (overbought) + falling |
| 2. MACD | Crossover above signal line | Crossunder below signal line |
| 3. EMA | Price above Fast EMA + rising | Price below Fast EMA + falling |
| 4. ADX | ADX > threshold (strong trend) | ADX > threshold (strong trend) |
| 5. Supertrend | Bullish (green) | Bearish (red) |
| 6. MTF Trend 1 | Higher TF bullish | Higher TF bearish |
| 7. MTF Trend 2 | Higher TF2 bullish | Higher TF2 bearish |
For M5-M15 timeframes, use a minimum confluence score of 4-5 for optimal results. Higher scores mean fewer but higher quality signals.
Multiple layers of protection to secure your profits and limit your losses.
Signal detected
-0.3% max loss
+0.3% triggers BE
Follows price up
Profit secured
| Parameter | Default | Description |
|---|---|---|
| π Use Stop Loss | ON | Enable/disable stop loss protection |
| π Stop Loss % | 0.3% | Maximum loss before trade is closed |
| π Use Trailing Stop | ON | Enable/disable trailing stop |
| π Breakeven Trigger % | 0.3% | Move to breakeven when this profit is reached |
| π° Guaranteed Profit % | 0.1% | Minimum profit when breakeven is triggered |
| π Trailing Step % | 0.1% | How tight the trailing stop follows price |
Secure profits while letting winners run. Close a portion of your position on trailing stop, keep the rest for the big move.
0.1 lot
Close 50%
0.05 lot closed
0.05 lot remains
Close remaining
β Green label = Partial close in profit (trailing stop hit)
β Red label = Partial close in loss (stop loss hit)
πΌ BUY / π½ SELL = Final close on Supertrend change with total P&L
The partial close percentage is configured in the PineConnector EA settings on MT5, not in TradingView. This allows you to adjust it without modifying alerts.
Automatically pause trading before high-impact economic announcements to avoid volatile whipsaws.
| Parameter | Default | Description |
|---|---|---|
| π° Enable News Filter | OFF | Block new trades during news events |
| π¨ Close Before News | OFF | Close all open trades when entering news window |
| β° Minutes Before | 15 min | Stop trading X minutes before news |
| β° Minutes After | 15 min | Resume trading X minutes after news |
Enable "Close Before News" for major events like NFP. This closes your positions 15 minutes before the announcement, avoiding the extreme volatility that follows high-impact releases.
Limit your trading to specific market sessions for optimal liquidity and volatility.
Gold trades best during the London/NY overlap (12:00-16:00 UTC). Enable both London and New York sessions for maximum opportunities.
Fully automated trading with MT4/MT5 via PineConnector alerts.
| Action | Alert Message |
|---|---|
| Open BUY | LICENSE,buy,XAUUSD,risk=0.1 |
| Open SELL | LICENSE,sell,XAUUSD,risk=0.1 |
| Close BUY (full) | LICENSE,closelong,XAUUSD |
| Close SELL (full) | LICENSE,closeshort,XAUUSD |
| Close BUY (partial) | LICENSE,closelongpct,XAUUSD |
| Close SELL (partial) | LICENSE,closeshortpct,XAUUSD |
Signal detected
Webhook sent
Receives order
Executes trade
Optimized parameters for different timeframes and assets.
| Parameter | Value |
|---|---|
| Breakeven Trigger | 0.18% |
| Guaranteed Profit | 0.06% |
| Trailing Step | 0.08% |
| Supertrend Factor | 2.5 |
| Min Confluence | 4-5 |
| Parameter | Value |
|---|---|
| Breakeven Trigger | 0.15-0.35% |
| Guaranteed Profit | 0.12-1.0% |
| Trailing Step | 0.15-0.25% |
| Supertrend Factor | 3.0 |
| Min Confluence | 4-5 |
These are starting points. Always backtest and optimize parameters for your specific broker, spread, and trading conditions.
Get instant access to GAIN OPTIMIZER V4.49 with all features including Partial Close, News Filter, and PineConnector integration.
Get Started - 7-Day Free Trial