The Center of Gravity EA is a fully automated Expert Advisor that trades one of the most reliable mean-reversion signals in technical analysis — the relationship between price movement and the two Center of Gravity (CoG) lines displayed below the chart.
Unlike bands or channels plotted over price, the Center of Gravity indicator works in its own subwindow, using two smooth, mathematically balanced oscillator lines to show when price has moved too far from equilibrium. When these CoG lines reach extreme levels or diverge sharply from price action, it often signals exhaustion and a high-probability snapback.
The EA continuously monitors these two CoG lines, detects stretched or unstable conditions, confirms them with intelligent volatility and trend filters, and executes Buy or Sell trades with precision — delivering consistent, emotion-free trading in any market environment.
Whether you’re a swing trader, counter-trend trader, or a mean-reversion specialist, the Center of Gravity EA gives you the discipline, structure, and confidence to capture profitable snap-back opportunities — fully automated on MT4 & MT5.
👉 Download the Center of Gravity EA for MT4 & MT5 and trade mean-reversion setups automatically with professional accuracy.
Strategy Overview – How It Works
The Center of Gravity EA for MT4 & MT5 continuously analyzes the relationship between price action and the two mathematically derived Center of Gravity (CoG) lines displayed in a subwindow below the chart. These smooth oscillator-style lines show when price has moved too far from its statistical equilibrium. When the CoG lines reach extreme levels or diverge sharply from price movement, the EA detects high-probability mean-reversion opportunities — powerful setups where price is statistically likely to snap back toward balance.
Here’s how it works:
Identifies Overextension
The EA automatically detects when the two Center of Gravity lines in the subwindow reach extreme levels or diverge significantly from current price movement — signaling exhaustion, imbalance, and potential reversal zones.
Confirms the Setup
Built-in filters validate each potential entry using trend direction, volatility conditions, candle confirmation, and optional higher-timeframe alignment to eliminate weak or premature signals.
Executes Trades Automatically
Once all confirmation criteria are satisfied, the EA opens Buy or Sell positions instantly based on your pre-defined rules — with zero hesitation, delay, or emotional bias.
Manages Risk for You
Stop loss, take profit, trailing stop, break-even automation, and partial close logic ensure every trade is handled with consistent, professional-grade risk management from entry to exit.
This combination of mathematically balanced CoG logic, automated signal detection, and intelligent filtering allows you to capture profitable mean-reversion and imbalance-based trades early — with confidence, precision, and total consistency.

Trade Rules
The Center of Gravity EA for MT4 & MT5 intelligently trades both reversals and breakouts, using the behavior of the two CoG lines displayed below the chart. These two smoothed lines act as a momentum-balanced oscillator:
- When they cross, momentum is shifting → reversal opportunity
- When they cross but price accelerates, it indicates continuation → breakout opportunity
The EA automatically identifies these shifts and executes the correct trade type only after confirmation filters approve the setup based on your settings.
Reversal Trading Logic (Mean-Reversion Mode)
Reversal trades occur when the two CoG lines cross and momentum shifts in the same direction as the crossover — signaling that the previous move is weakening and a snapback toward equilibrium is beginning, rather than a continuation.
Bullish Reversal Setup
- The two CoG lines cross upward
- Indicates bearish momentum is fading and a reversal upward is forming
- High probability of price snapping back toward equilibrium
- EA Action: Opens a Buy trade once trend, candle, or volatility filters confirm the upward reversal

Bearish Reversal Setup
- The two CoG lines cross downward
- Signals bullish momentum is weakening and a downward reversal is forming
- Strong probability of mean-reversion or correction
- EA Action: Opens a Sell trade after all confirmation criteria are met

Breakout Trading Logic (Continuation Mode)
Breakout trades occur when the two CoG lines cross, but instead of fading, momentum continues strongly in the opposite direction of the reversal signal — indicating a true continuation move rather than a snapback.
Bullish Breakout Setup
- The CoG lines cross downward, normally a sell signal
- BUT price continues pushing strongly upward
- Indicates bullish breakout momentum overtaking reversal pressure
- EA Action: Opens a Buy trade when breakout-strength, trend, and candle filters confirm continuation
Bearish Breakout Setup
- The CoG lines cross upward, normally a buy signal
- BUT price continues pushing downward with strong momentum
- Signals a bearish breakout instead of a reversal
- EA Action: Opens a Sell trade after breakout confirmation filters validate the move
This dual-mode logic allows the EA to capture both sides of market behavior:
- Snapping back to equilibrium (reversals)
- Pushing through levels with strength (breakouts)
All with fully automated confirmation, execution, and risk management.
Key Features
The Center of Gravity EA for MT4 & MT5 combines proven technical analysis with intelligent automation to give traders precision, flexibility, and total control.
✅ Automatic CoG Signal Detection – Instantly identifies momentum shifts and extreme conditions using the two Center of Gravity lines in the subwindow
✅ Smart Confirmation Filters – Use candle patterns, volatility checks, or trend alignment for accurate and reliable entries
✅ Fully Automated or Signal Mode – Trade hands-free or receive alert-only notifications for manual execution
✅ Advanced Risk Management – Includes SL/TP, trailing stop, break-even automation, and partial close options
✅ Dynamic Position Sizing – Fixed lots or percentage-based position sizing for personalized risk control
✅ Multi-Timeframe & Multi-Asset Support – Works on forex, metals, indices, crypto, and more
✅ Smart Notifications – Get alerts via pop-up, email, or push message
✅ Quick Setup & Easy Customization – Clean interface with intuitive settings for any skill level
Customizable Settings
Fine-tune every part of the Center of Gravity EA to match your personal strategy and risk profile.
Indicator Settings
- CoG Entry Type: Choose from reversals or breakouts
- CoG Period – Sets how many bars are used in the Center of Gravity calculation. Lower values make the CoG lines more sensitive and produce more signals, while higher values smooth the lines for fewer, higher-quality signals.
- CoG Applied Price – Determines which price value is used for the CoG calculation (Close, Open, High, Low, Median, Typical, Weighted). Adjust this to fine-tune how the CoG lines respond to market movement.
Trade Management
- Stop Loss & Take Profit: Fixed, ATR-based, or CoG-based
- Break-Even & Trailing Stop: Lock in profit automatically
- Partial Close: Scale out for smoother equity growth
- Maximum Open Trades: Limit exposure and control risk
Filters & Controls
- Trading Sessions & Days: Restrict trading to specific market hours
- Spread & Slippage Protection: Avoid poor conditions and news spikes
- Magic Number System: Run multiple EAs without interference
Every parameter exists to give you precision, flexibility, and full control — letting you trade confidently and consistently with minimal effort.
Why Traders Choose the Center Of Gravity EA
- Captures reversals early by exploiting statistical reversion patterns
- Eliminates emotions with fully rule-based automation
- Adapts to any market — forex, commodities, indices, or crypto
- Works across all timeframes, from M1 scalping to H4/H1 swing trading
- Enforces discipline with consistent execution and risk controls
With the Center of Gravity EA, you don’t just automate entries — you automate a professional, mathematically driven trading process.
Trade Smarter — Automate Divergence Trading Today
The Center of Gravity EA for MT4 & MT5 transforms powerful market geometry and equilibrium-based logic into a fully automated trading system that executes with clarity, speed, and consistency.
Stop chasing price. Start trading structured reversals with mathematical precision.
Make sure to check out the best forex robots for the latest real verified results of the best forex expert advisors which you can start using today.

I’m a self-confessed Forex geek who spends countless hours researching, testing, and reviewing everything related to trading. With many years of experience in the Forex industry—and thousands of robots, brokers, strategies, and courses put to the test—I’ve seen what works and what doesn’t. My goal is simple: to share that knowledge with you for free, so you can navigate the exciting (and sometimes crazy) world of Forex trading with more confidence.




