Loading…

Maria Breakout

Maria Breakout places a ladder of BUY STOP orders above the current price and SELL STOP orders below it. When the market breaks out, the stops on that side are filled one after another and ride the move. The robot then manages the open trades with an equity target, a trailing stop and a set of safety exits, and starts a fresh ladder at the new price when the cycle is done. Everything is controlled from one panel on the chart, and every rule it applies is visible on the panel or in the inputs. THE LADDER - Two sides: BOTH, ONLY BUY or ONLY SELL. Choose with one click on the panel. - Start distance and step between levels in price units (on gold 2.00 = a 2.00 move). - 5 lot zones from near to far: small lots close to the price, bigger lots farther away if you want. Each zone has its own lot and number of levels, up to 200 levels per side. - Real and virtual levels: only the nearest levels (zone 1) are real pending orders at the broker. The other levels wait as dotted virtual lines and become real orders only when they are needed. The order list stays short and clean. - Max open BUY / SELL: at the limit the stops of that side wait and come back when a trade of that side closes. - Re-arm: after a trade closes, a stop is placed back on its level so the level can trade again. - Trail grid: the levels left behind follow the price in whole steps, so the ladder stays close to the market. - Fill gaps (optional): new stops on empty levels between the price and the ladder. EXITS AND SAFETY - Equity target: a profit step in money or % of the balance. It counts only this robot's trades (its magic number and symbol), never your manual trades. When it is reached, the robot closes the open trades first, deletes the pending stops and (with Restart on) places a new ladder at the new price. - Lock exit: when BUY and SELL trades are open together (for example 2 + 2) and lock each other, the robot closes everything and starts a new ladder around the price. - Loss eater: profit that is already closed pays off the worst losing trade, so equity moves to the balance and a Max open slot is freed. - Trailing stop on open trades: start distance and trailing distance in $, % or pips. - Take profit and stop loss per order (optional): $, % of price or pips. - Cycle stop: finish the current cycle and wait, instead of starting a new ladder. PANEL - ACTIONS: BOTH / ONLY BUY / ONLY SELL, START, CYCLE STOP. - LIVE: equity target progress, balance, equity, open BUY and SELL trades with profit and lots, CLOSE ALL, CLOSE PROFIT, CLOSE LOSS. - Pending orders: real stops + virtual levels per side, DEL PENDING, DEL BUY STOP, DEL SELL STOP. - Spread, closed lots and rebate per lot. - SET opens the GRID, LOTS and EXIT settings on the panel. New values work at once and are saved per symbol. - The panel can sit on the left or right side of the chart and can be collapsed to a small strip. - CLEAR button and Auto CLEAR remove old chart objects without touching the panel or the orders. SAFETY CHECKS - Every order is checked for lot step, minimum and maximum lot, free margin, stop level and the broker order limit. - Pending prices that are too close to the market are skipped with a clear message, never forced. - The basket close works in two passes: open trades first, then pending stops. HOW TO USE 1. Attach Maria Breakout to a XAUUSD chart and allow live trading (AutoTrading on). 2. Pick BOTH, ONLY BUY or ONLY SELL on the panel. 3. Check Start, Step and the lot zones (SET button). For other symbols set Start and Step to that symbol's price scale. 4. Press START. Watch the LIVE block; the robot closes the cycle at the equity target and starts again. MAIN INPUTS - Side, start distance, step - Lot and number of levels for zones 1 to 5 - Take profit and stop loss per order: OFF / $ / % / pip - Trailing stop: OFF / $ / % / pip, start and distance - Equity target: OFF / $ / % of balance, step; restart after the target - Re-arm, trail grid, fill gaps, lock exit (trades per side), loss eater (minimum loss), max open BUY / SELL - Panel side, show settings, trade arrows, order lines, virtual lines, auto CLEAR, switch to M5, white chart style - Magic number, rebate per lot, slippage, Strategy Tester demo trades NOTES - The default distances are made for gold (XAUUSD). On currency pairs use smaller values, for example 0.20 on USDJPY or 0.0020 on EURUSD. - A stop order ladder can open many trades in a fast or gapping market. Test your settings on a demo account first and use lots that suit your balance. - Use a different magic number for each chart of the same symbol. - MetaTrader 4 cannot click panel buttons in the Strategy Tester. There the robot places the ladder by itself with your settings, so the exits can be watched in visual mode. If the distances do not suit the tested symbol, the tester scales them to that symbol. - Trading involves risk. Use the robot with your own judgement and risk management. User guide (PDF) is inside the download. Website: https://polymaria.net Telegram channel: https://t.me/polymaria_net

Expert advisor · MT4 · v2.12 · 490.00 USDT

MT4 breakout EA with a two-sided BUY STOP and SELL STOP order ladder

How Maria Breakout works

What Maria Breakout does

Maria Breakout is a breakout Expert Advisor for MetaTrader 4. It places a ladder of BUY STOP orders above the current price and SELL STOP orders below it, at the same distances on both sides. When the market breaks out in one direction, the stops on that side are filled one after another and ride the move. The EA then manages the open trades with an equity target, a trailing stop and a set of safety exits, and starts a fresh ladder at the new price when the cycle is done. You can also run one side only.

The stop order grid: zones and virtual levels

The first level sits at the Start distance from price and every next level is one Step further, both in price units (on gold 2.00 means a 2.00 move). Levels are split into 5 lot zones from near to far, each with its own lot and number of levels, up to 200 levels per side. Only zone 1 levels are real pending orders at the broker. The others wait as dotted virtual lines and become real orders only when needed, so the order list stays short. Re-arm, trail grid and fill gaps keep the ladder close to the market.

Exits: equity target, lock exit and loss eater

The equity target is a profit step in money or % of balance. It counts only this EA's trades, by magic number and symbol, never your manual trades. When it is reached, the EA closes the open trades, deletes the pending stops and, with restart on, places a new ladder. Lock exit closes everything when BUY and SELL trades lock each other, for example 2 + 2. Loss eater uses closed profit to pay off the worst losing trade. A trailing stop, optional take profit and stop loss per order, and a cycle stop are also available.

Setup on gold and other symbols

Copy Maria Breakout.ex4 into MQL4 > Experts, refresh the Navigator and drag it onto an XAUUSD chart. Tick Allow live trading and turn AutoTrading on. The EA switches the chart to M5 when attached (this can be turned off) and needs no internet access. Pick BOTH, ONLY BUY or ONLY SELL, check Start, Step and the lot zones with SET, then press START. The default distances are made for gold. On other symbols use smaller values, for example 0.20 on USDJPY or 0.0020 on EURUSD, which is about 20 pips.

The panel and safety checks

One panel on the chart controls everything. The LIVE block shows equity target progress, balance, equity and the open BUY and SELL trades, with CLOSE ALL, CLOSE PROFIT and CLOSE LOSS buttons. Pending stops can be deleted for both sides or one side. Settings typed on the panel work at once and are saved per symbol and magic number. Before every order the EA checks lot step, minimum and maximum lot, free margin, stop level and the broker order limit. Pending prices that are too close to the market are skipped with a message.

Risks and limits

A stop order ladder can open many trades in a fast or gapping market. Lots in the farther zones can be bigger than near the price, so check the total lots your settings allow before you start. Use a different magic number for each chart of the same symbol. MetaTrader 4 cannot click panel buttons in the Strategy Tester, so there the EA places the ladder by itself with your settings and you can watch the exits in visual mode. Test on a demo account first and only trade money you can afford to lose.

Questions

Which symbol and timeframe is Maria Breakout made for?

It is made for gold (XAUUSD) on MetaTrader 4, and other symbols work after you change Start and Step. Any timeframe can be used. The EA switches the chart to M5 when you attach it, and you can turn this off in the inputs.

How do I set it up for EURUSD or USDJPY?

Start and Step are in price units, and the default 2.00 suits gold. On USDJPY try 0.20 and on EURUSD or GBPUSD try 0.0020, both about 20 pips. These are starting points only, so test them on a demo account first. With 2.00 on USDJPY the first stops would be 200 pips away.

What is a virtual level?

Only the nearest levels, zone 1, are real pending orders at the broker. All other levels are kept by the EA as dotted lines on the chart and become real BUY STOP or SELL STOP orders only when they are needed. This keeps the order list at the broker short.

Does the equity target count my manual trades?

No. The equity target counts only the trades of this EA, by its magic number and the chart symbol. Manual trades and other robots are never mixed in. When the target is reached, the EA closes its open trades first, then deletes its pending stops.

What are the risks of a stop order ladder?

In a fast or gapping market many stops can fill quickly, and orders can fill with slippage. If price swings both ways, BUY and SELL trades can lock each other. There is no profit promise, and past results do not guarantee future results. Test on demo, use lots that suit your balance and only trade money you can afford to lose.

About Maria Breakout

Maria Breakout is an expert advisor (trading robot) for MetaTrader 4.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 / .ex4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Restart MetaTrader or right-click the Navigator and choose Refresh.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Expert Advisor · Maria · Mt4 · Gold (XAUUSD) · Grid · Breakout · Trailing Stop & Break-even · Pending Orders · MT4 Expert Advisor

Expert advisors (EA) for MT4 & MT5 · PolyMaria