Firegenie Gold Bot

This stripped-back version of my "Vantage" indicator logic is designed to do one thing well: identify high-quality momentum breaks on XAUUSD and trade them with disciplined risk management. Almost all the complexity of the full algorithm has been removed so users can see the core idea clearly.
The core concept
The bot waits for signs that gold has just made a strong push into a fresh extreme during the active session and may be ready to snap back. When a valid setup appears, the bot prepares a trade with predefined stop loss and take profit levels based on volatility (ATR). If price confirms the reversal, it enters automatically and manages the exit.
It never overtrades, it never fights momentum blindly, and it does not chase entries. One or two trades per day maximum.
________________________________________
1. Session logic
The bot divides the day into two parts:
• Pre-session (1800–0345 London time)
No trades allowed. It simply looks at how price behaved during this quiet period and decides whether the general drift was bullish or bearish.
• Active session (everything outside pre-session)
This is where trading is allowed. The bot resets its internal counters and keeps track of the highs and lows made during the session.
Only the active session produces trades.
________________________________________
2. When it looks for a trade
A potential setup can only form when:
• the bot is not already in a trade
• the daily limit (max 2 positions) has not been reached
• the current day is not blocked due to major events (FOMC, holidays, etc.)
• price is making a fresh high or low relative to recent bars
• volatility is elevated (using a Williams Vix-Fix style calculation)
• short-term and medium-term EMAs agree on direction
The bot isn’t trying to predict tops or bottoms blindly. It waits for:
A strong push into a fresh extreme, combined with a volatility spike that often marks exhaustion.
This is the heart of the strategy.
________________________________________
3. How entries actually trigger
The bot prepares a setup as soon as the push candle qualifies, but it does not enter immediately. The entry only triggers if price retraces back through the open of the setup candle.
In other words:
• Long entry: price must dip below the setup candle’s open
• Short entry: price must rise above the setup candle’s open
This prevents chasing. It forces the bot to buy low after a high-volatility push down, or sell high after a high-volatility push up.
If price never retraces through the setup level, no entry is taken.
________________________________________
4. Stop loss and take profit
Stops and targets are dynamic.
• Stop loss: ATR × fixed multiplier
• Take profit: reward-to-risk (1.8R in this version)
• TP zone: 90 percent of TP, used for early break-even logic
• Break-even: if price moves far enough towards target, the stop is pulled to entry
Everything is placed the moment the trade triggers, and the bot manages it from there.
________________________________________
5. Trade management
Once a trade is active, the bot monitors four things:
1. Full TP hit
2. TP-zone hit + break-even activated
3. Stop loss hit
4. Emergency stop (rare edge case)
When the bot exits, it logs key stats and won’t re-enter until conditions reset.
________________________________________
6. Daily rhythm
The bot is built around discipline, not activity.
• Up to two positions per day.
• Only during the active session.
• Never trades during pre-session.
• Avoids known high-risk days entirely.
• Each closed trade updates win/loss/breakeven counts and streaks.
This helps keep results stable and avoids death by overtrading.
________________________________________
7. What the user sees on the chart
You’ll see:
• Entry flags
• Take profit markers
• Stop loss crosses
• Lines for SL, TP, BE-threshold, open-level
• A simple stats panel summarising performance
It’s designed to be easy to follow visually, even if you ignore the hundreds of lines powering the engine.
________________________________________
This version of the bot:
identifies high-volatility exhaustion at fresh extremes, waits for a confirmation retrace, enters with volatility-based risk, and exits cleanly with fixed rules.
It’s a simplified expression of the Vantage philosophy:
trade fewer setups, trade only the cleanest reversals, and let discipline do the heavy lifting.
Skrip hanya-undangan
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact firegenie directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Instruksi penulis
Pernyataan Penyangkalan
Skrip hanya-undangan
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact firegenie directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.