
Gravity is an MT5 expert advisor for pairs trading. It measures the spread between two correlated symbols, sizes positions from risk and volatility, and can trade automatically or leave entries to you.
Get one message the moment it launches, with its price.
Gravity is an expert advisor for MetaTrader 5 built around pairs trading. Instead of predicting the direction of one market, it watches the relationship between two symbols and acts when that relationship stretches away from its recent norm.
The expert calculates a spread between the chart symbol and a second symbol that you choose. The spread can be built as a price ratio or as a difference, from a selectable price type, averaging method and look-back period. It then derives a delta, the amount of divergence that counts as worth trading. That delta can be worked out automatically from the spread's standard deviation or entered by hand.
Before opening a pair, the expert checks the correlation between the two symbols against a level you set. It takes negative correlation into account, so an inversely related pair can be traded as well. An optional trend filter can hold back entries when the trend does not suit the trade.
Volume can come from a fixed lot for the first symbol or be calculated automatically from a risk percentage. The automatic calculation also considers volatility, which can be measured with the same options as the spread or with its own timeframe and period.
Pairs trading only makes sense where the two instruments are genuinely related. Typical candidates are stock indices, futures contracts and shares alongside their preferred variants. Correlation of two forex pairs can shift over time, so check it on your broker's history. Costs matter: the higher the spread and commission and the weaker the correlation, the higher the timeframe should be. M30 to H4 is a reasonable starting range.
Check the default values in the inputs tab of your copy, as they are a starting point rather than a recommendation for every broker or pair.
| Group | What it controls |
|---|---|
| Second symbol | The instrument paired with the chart symbol |
| Trading mode | Automatic or manual operation |
| Lots and risk | Fixed lots or risk percentage for automatic sizing |
| Spread | Timeframe, period, averaging type, method and price type |
| Delta and sigma | Manual delta or automatic delta by sigma depth |
| Correlation and volatility | Timeframe, period and the minimum correlation level |
| Trend | Trend period, filter level and open-by-trend switch |
| Exits | Close by profit, delta, drawdown or time |
| Schedule | Start and end hour and weekday |
Two open positions mean two spreads, two sets of commission and swaps, and the risk that a historical relationship breaks down. Top-ups increase exposure when a pair keeps diverging. Strategy tester results often understate real costs, so test with realistic commissions and confirm behaviour on a demo account first.
Trading carries risk, and you can lose some or all of your capital. Past results, including backtests, do not predict future ones. Use position sizes you can afford and check the settings with your broker's conditions.
| Product type | Expert Advisor |
|---|---|
| Platform | MetaTrader 5 (Expert Advisor) |
| Strategy focus | Trend, Volume |
| Delivery | Download from your account after purchase |
| License key | Not needed |
| Status | Launching soon |
| Category | Expert advisor, pairs and spread trading |
| Strategy tags | Trend, volume (volatility-based sizing) |
| Markets | Correlated pairs such as indices, futures, related stocks |
| Timeframes | M30 to H4 suggested for most cases |
| Trade style | Spread mean reversion with optional trend filter |
| Operation modes | Automatic or manual |
| Requirements | Two tradable symbols in Market Watch; algo trading on |
No reviews yet. Customers who own Gravity can review it here.
No. This listing is for MetaTrader 5 only. It will not load in MetaTrader 4, so check which platform your broker account uses before buying.
Choose instruments that tend to move together, for example related stock indices, futures contracts or a share and its preferred variant. You set the second symbol in the inputs and attach the expert to the chart of the first. Check the correlation on your own broker's data before you trade.
Yes. The trading mode input lets you switch between automatic operation and a manual mode. In manual mode you open and close the pair yourself, using the values the expert shows on the chart.
Higher costs and weaker correlation call for a higher timeframe. For most pairs, M30 to H4 is a sensible range to test. Run your own tests on your broker's data and confirm the results on a demo account.
Only partly. Pairs trading involves two positions, so spreads and commissions have a large effect and are hard to model exactly. Include realistic costs in testing, use M30 or higher, and treat results as a rough guide. Past results do not predict future ones.
Extract the downloaded archive, copy the expert file into the MQL5/Experts folder through File, Open Data Folder in MetaTrader 5, then restart the terminal or refresh the Navigator. Drag it onto a chart and enable algorithmic trading.
Gravity
Notify me at launchQuestions about this tool?
Ask us on Telegram Install guide for MT4 and MT5 Get a custom version builtFree, practical help with testing, sizing and running expert advisors.
Own Gravity? Sign in to review it.