1. Requirements
- MetaTrader 5 desktop terminal for Windows, with any broker.
- A demo account to start with.
- For sending and managing orders: Algo Trading enabled in the terminal toolbar.
2. Install
- Open the SizePlan page on the MQL5 Market, or the Market tab in MetaTrader 5 and search for SizePlan.
- Buy, rent or download the free demo. MetaTrader installs it for you.
- It appears in the Navigator under Expert Advisors > Market. If you do not see it, right-click the Navigator and choose Refresh.
3. Attach to a chart
- Open a chart of the symbol you want to trade.
- Drag SizePlan from the Navigator onto the chart.
- On the Common tab, tick Allow Algo Trading.
- On the Inputs tab, set
EnableTradingtotrueif you want to send orders. With the defaultfalse, SizePlan only plans: the panel works fully, but no order can be sent. - Click OK. The panel appears on the left of the chart.
The panel can be moved by dragging it. The header icons, from the left: the dock (see section 9), the SizePlan crosshair, show or hide the plan, the eye (your positions and orders on the chart), the gear for the display settings (panel scale and saved setups), the pin that fixes the panel in place and X, which folds it without stopping SizePlan.
The planning panel with trading enabled, demo account.
4. Plan a trade
- Click BUY / LONG or SELL / SHORT. A plan appears at the current price: the green zone is the reward, the red zone the risk.
- Drag the SL or TP label to move that level. Drag the middle of the plan to move all levels together. Drag the right edge to make the box wider.
- Or type exact prices into the ENTRY, STOP LOSS and TAKE PROFIT fields; the small arrows move a price by one tick.
A buy plan with its take profit, entry and stop tags; the button names the order it will send. Demo account.
Useful switches:
- RR LOCKED / RR FREE - with the lock on, moving the stop moves the target so the reward/risk ratio stays the same.
- Click the STOP LOSS or TAKE PROFIT label to lock that price; a padlock on the chart shows the lock and clicking it unlocks.
- MARKET PRICE anchors the plan at the live price and keeps it following the market until you move or edit the plan.
- + TP adds a target (up to five). Each earlier target closes the share you set; the last one is the order's take profit.
The plan is anchored to the candles like a drawing: switch the timeframe, zoom or scroll and you see the same prices and the same time span at that chart's scale. A plan that is off screen gets a PLAN ... SHOW chip at the chart edge that brings it back to the market.
The entry type is chosen for you: a plan following the market is sent as a market order; a plan with a fixed entry becomes a limit or stop order, depending on which side of the price it is.
5. Choose your risk
| Mode | What you enter | How the lot is found |
|---|---|---|
| %EQ | Percent of equity | Budget = equity x percent, divided by the loss per lot at SL |
| %BAL | Percent of balance | Same, from the balance |
| CASH | An amount in account currency | Budget = that amount |
| LOT | A fixed volume | Your volume; the panel shows the resulting risk |
Use the - / + buttons or the mouse wheel over the field, or click the field and type. The lot is always rounded down to the symbol's lot step, so the loss at SL stays within your budget. The SL and TP rows show the distance in points and the amount in your account currency.
Risk figures are estimates from your broker's symbol data. Gaps, slippage, commissions and swaps can make the real result differ. Enter your commission per lot in the RoundTurnCommissionPerLot input to include it.
6. Send the order
- With
EnableTrading=true, the button of the active side shows what will be sent, for example BUY LIMIT 0.50: the order type (MARKET, LIMIT or STOP) and the volume. - Check the plan on the chart, then click that button once. The order is sent at once, with the SL and TP from the plan. There is no separate confirmation step.
- Clicking the button of the other side only switches the plan to that side; it sends nothing.
After a successful send the plan is put away. The next click on BUY or SELL brings a fresh plan back at the market price; that click sends nothing.
A market order is sent with a slippage allowance of MaxConfirmDriftPercent (default 10% of the stop distance). If the outcome of a request is unknown, for example after a disconnect, SizePlan checks the terminal before it sends anything else.
7. Manage the trade
Click OPEN POSITIONS or PENDING ORDERS to open the Trade Manager. It lists every position and pending order in the account, whoever opened it; switch between THIS SYMBOL and ALL SYMBOLS at the top.
The Trade Manager with one position selected, demo account.
- Select a row. Its SL and TP (and entry, for a pending order) are editable right away, with -/+ steppers, the distance in points and the amount at that level. REVIEW & APPLY sends the change; REVERT reloads the live values.
- BREAK-EVEN moves the stop to true break-even: just past the open price by the position's costs (commission in and out, a negative swap), so a close there nets zero. The button shows how much it covers.
- % CLOSE closes the percentage in the field next to it; CLOSE ALL closes the position; CANCEL ORDER deletes a pending order.
- HISTORY shows closed deals for the last 7, 30 or 90 days, with the exit reason and your own notes. The enlarged Trade Manager adds statistics: net result, win rate, profit factor, expectancy, drawdown, a result curve and the result by symbol.
8. Break-even and trailing
Automation is off by default and is set per position (or per pending order, applied once it fills). In the Trade Manager, click the Auto BE or Trailing row of the selected trade:
- Breakeven: trigger distance in points or in R (multiples of the initial stop distance), plain BE or BE+ with an offset.
- Trailing stop: fixed distance, step distance, previous candle, swing pivot or ATR, with a start trigger and the timeframe used for candles, swings and ATR.
Click APPLY TO POSITION. Automation runs while SizePlan is attached to a chart in this terminal with EnableTrading=true and Algo Trading on. The automated stop only moves in your favour. If you change the stop or the volume yourself, trailing pauses and tells you why instead of overriding you.
For your next trades, set the defaults with the BREAKEVEN and TRAILING tiles in the planning panel.
9. The dock and chart tools
The dock icon in the panel header shows a strip at the bottom of the chart; Move to top puts it at the top. Drag its edge to set the height. The panel's own buttons keep working as before.
The dock's History tab with one trade drawn on the chart, demo account.
- Trade, Pending and History list the whole account. Click a column heading to sort. Click a row to switch the chart to that trade and draw it from entry to exit; click it again to hide the drawing.
- The X at the end of a row closes that position or deletes that order. Close and Delete act on a group after a review card while
SafeModeis on. - The bottom line shows the account: balance, equity, today's result, the risk to every stop and the risk the pending orders would add. SizePlan's messages also appear at its right end, so you see them even with the panel folded.
- The tool strip holds the timeframes, chart type, zoom, fixed scale, auto scroll, chart shift, grid, volumes, period separators, trade history and levels, candle countdown, sessions, crosshair, magnet, screenshot and Compare. Customize chooses which are shown; the rest stay under ....
- Crosshair: press and drag to measure bars, points, percent and money; after the release, keep it as a ruler, trend line, rectangle or Fibonacci.
- Compare: pick a symbol to draw over the chart. For a fixed scale from a start point, click Pick a candle and then the candle on the chart; the window stays open while you pick.
- The gear on the dock sets session hours and colours, the magnet's reach, the countdown, measurement colours, label size and the history range.
10. Inputs reference
| Input | Default | Meaning |
|---|---|---|
EnableTrading | false | Allows sending and modifying orders. Off = planning only. |
RiskPercent | 1.0 | Starting risk for the %EQ and %BAL modes. |
AccountCashRisk | 100 | Starting amount for the CASH mode. |
FixedLot | 0.10 | Starting volume for the LOT mode. |
RewardRatio | 2.0 | Starting reward/risk ratio. |
InitialStopPoints | 200 | Starting stop distance of a new plan (widened automatically if it would be unreadably small on the chart). |
RoundTurnCommissionPerLot | 0 | Your commission per lot, included in the risk. |
SafeMode / OneClick | true / false | Trade Manager actions (SL/TP changes, break-even, partial or full close, cancel) show a review card first. They apply at once only with SafeMode=false and OneClick=true. New entries are always one click. |
MaxConfirmDriftPercent | 10 | Allowed slippage for market orders, as % of the stop distance. |
MaxRiskPerTrade | 0 (off) | Maximum estimated loss per trade, in account currency. |
MaxTotalRiskToSL | 0 (off) | Maximum combined loss if every open position hits its SL. |
MaxDailyEquityLoss | 0 (off) | Stops new SizePlan entries after this equity loss in the server day. |
MaxManagedPositions | 0 (off) | Maximum number of open positions on the chart's symbol before new entries are refused. |
MaxSpreadPoints | 0 (off) | Refuses entries while the spread is wider. |
PartialClosePercent | 50 | Default share for % CLOSE. |
MagicNumber | 240926 | Identifies SizePlan orders. Change it only if another EA uses the same number. |
UseAutoDPI / ManualUIScale | true / 100 | Panel size on high-DPI screens; the scale can also be changed in the settings. |
11. If something does not work
- The status line says "Planning only: set EnableTrading=true in EA inputs to trade." - open the EA properties (F7 on the chart) and set
EnableTrading=true. - "Algo trading is disabled in the terminal" - press Algo Trading in the toolbar and tick Allow Algo Trading in the EA properties.
- "PLAN OFF CHART" - the saved plan is outside the visible prices; press MARKET PRICE to bring it back.
- "Risk budget is below the minimum volume" - the smallest lot the broker allows would risk more than your budget. Widen the budget or tighten the stop; SizePlan never rounds the lot up.
- The broker rejected the order - the status line shows the broker's reason (for example stops too close or market closed). Adjust and try again; a rejected request is never resent automatically.
More answers are in the FAQ.