
Matematik is an MT4 expert advisor that opens a pair of opposite orders, averages the losing side and closes the group once price retraces, using an optional moving average filter and adjustable lot sizing.
Get one message the moment it launches, with its price.
Matematik is an expert advisor for MetaTrader 4 that is built around a simple idea: open a buy and a sell at the same time, so that whichever way price moves, one position is in profit while the other is losing. The EA then manages the losing side by averaging, and closes the group when price retraces far enough.
The EA starts a cycle by placing two orders in opposite directions. As price moves away, one of them gains and the other loses. If price keeps going, further orders are added on the losing side at a spacing set by the step input, and each new order can be larger than the previous one when a lot multiplier above 1 is used. When price pulls back, the averaged orders can be closed together once they reach a small profit target in points, leaving the order that was moving with the trend still open.
The entry can be triggered in two ways. If the pair-on-start option is enabled, the EA opens both orders straight away. If it is disabled, it waits for a candle to close above or below the previous one on the chosen timeframe. An optional moving average filter can restrict direction, although it can be turned off.
The EA is not tied to one symbol. The timeframe used for the trend check is an input, so the EA can sit on any chart while reading another timeframe. Because spread, step size and point value differ between symbols and brokers, test each instrument separately and do not assume that settings carry over.
The inputs below are the ones to review before running the EA. Default values are not listed here; check them in the properties window of your copy.
| Input | Purpose |
|---|---|
| TF | Timeframe, in minutes, used to judge direction |
| MinStep | Minimum distance between orders; increase tenfold on five-digit or three-digit quotes |
| Lot | Fixed lot size; if set to 0 the lot comes from the risk percentage |
| risk | Percentage of available funds used to size the lot |
| K_Martin | Multiplier for each following lot; 1 keeps all lots equal |
| MA | Moving average period for the filter; 0 turns it off |
| Magic | Unique number that identifies this EA's orders |
| slippage | Maximum accepted slippage |
| MinProfit | Profit in points at which averaged orders are closed |
| Set2 | Opens a pair at once when true; waits for a candle signal when false |
Averaging and lot multiplication increase exposure while price moves against the losing side. A long one-directional move with no pullback can lead to deep drawdown and, with a large multiplier, a margin call. Keeping the multiplier at 1, using a modest lot and leaving ample free margin all reduce this exposure but do not remove it.
Trading carries risk and you can lose part or all of your deposit. Past results, including tester results, do not predict future ones. Test on a demo account first.
A practical way to learn the behaviour is to run the EA in the strategy tester with visualisation at low speed and watch how the pairs open and close. Use a different magic number for each chart so that the orders do not interfere with each other.
| Product type | Expert Advisor |
|---|---|
| Platform | MetaTrader 4 |
| Strategy focus | Signals, Trend |
| Delivery | Download from your account after purchase |
| License key | Not needed |
| Status | Launching soon |
| Category | Expert advisor |
| Trade style | Paired opposite orders with averaging |
| Strategy tags | Signals, trend |
| Timeframes | Set through the TF input; any chart can host the EA |
| Markets | Not restricted; test each symbol and broker first |
| Lot sizing | Fixed lot, or percentage of available funds |
| Requirements | Algo trading enabled; hedging-capable MT4 account |
No reviews yet. Customers who own Matematik can review it here.
No. This is an MT4 expert advisor and it runs only in MetaTrader 4. An MT5 terminal cannot load it.
In MT4 choose File, then Open Data Folder, and copy the expert file into MQL4/Experts. Restart the terminal or refresh the Navigator, drag the EA onto a chart and make sure algo trading is switched on in the toolbar and in the EA properties.
The EA keeps buy and sell positions open at the same time, so the account must allow hedging. Spreads, commissions and minimum lot rules also affect results, so check these with your broker and test on a demo account before using real funds.
Distance inputs such as MinStep are measured in points. On brokers quoting five or three decimal places the value normally needs to be about ten times larger than on four-digit quotes. Check the point size of your symbol before you start.
It is optional. Setting the MA input to 0 disables it. With it enabled, the EA only opens buys when price is above the average and only sells when price is below it. Compare both modes in the strategy tester before deciding.
No fixed figure is given here. The needed deposit depends on lot size, the lot multiplier, the step distance and the symbol, so work it out in the strategy tester and keep the exposure small enough to survive long one-way moves.
Matematik
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 Matematik? Sign in to review it.