Orders2
- 지표
- 버전: 1.0
What Orders2 is
Orders2 is one MT5 indicator that shows your whole position on a symbol, guards your loss limit, and marks the levels and times where price tends to react. It does not place trades: it shows you what is happening so you decide.
It does four jobs:
- Your position at a glance. Average buy and sell prices, breakevens with swap and commission counted, grouped stops and targets.
- Your risk. A daily loss limit like a prop firm uses, the price where you would hit it, and the lot size for a chosen risk per trade.
- Where price may react. Support and resistance, pivots, Fibonacci levels, and grey zones where several of them line up.
- When price may react. Session boxes, reversal windows and a candle timer.
It is built for manual traders who average into positions, hedge, or trade under prop-firm rules such as FTMO's daily loss limit. A trader with one simple trade gets value from it too: the size helper and the loss limit work with no position open.
Quick start
Compile once, drop it on a chart, and the defaults are ready to use.
- Copy Orders2_v1_00.mq5 into your MQL5\Indicators folder (in MT5: File → Open Data Folder).
- Open it in MetaEditor and press F7 to compile.
- In MT5, drag Orders2 from the Navigator onto a chart. Allow push notifications if you want alerts on your phone (Tools → Options → Notifications, with your MetaQuotes ID).
- Move the panel by dragging its title. Double-click the title to fold it. Both are remembered for that chart.
- Change line colours, widths and styles in the indicator's Colors tab, not in the settings.
The settings window shows groups 1–9: the everyday choices. To see the fine-tuning (groups 10–17: periods, which timeframes, window times), remove the // in front of #define OP_ADVANCED near the top of the file and compile again.
Position lines
One line per group of trades replaces MT5's line per trade, so ten averaging entries show as one clear average. Every label shows price, lots and number of positions; hover any line for the full detail.
- BUY / SELL (solid blue / red): average open price of all buys or all sells, with lots and count; their profit too with "P&L on those lines" on. Use: you added five buys on the way down, and see the one price that matters.
- BE BUY / BE SELL (dotted amber): where that side is at zero after swap and commission (closing commission counted by default). Shown with one side open, when costs move it more than the spread. Use: after two weeks of negative swap, see how far above your average price now needs to be.
- NET BE (dash-dot amber): where all buys and sells together are at zero, costs included; shown when both sides are open and not fully hedged. Use: hedged 1.0 lot buy with 0.6 lot sell, see the single exit price.
- SL / TP (dashed, off by default): stops or targets grouped by price, with lots and what those trades make or lose there. Use: six trades share one target, and one line says what you bank there.
- BE TARGET (dotted, drag it): drag it to a price; the panel shows the lots to add now so the whole position breaks even there. Warns when not reachable, above the max lot, short of margin, or past your max loss. Use: see whether one more entry can bring breakeven back within reach, and what it costs.
Lines off the screen are pinned to the top or bottom edge with an arrow and the distance (pips on FX), so you always see both your buy and sell averages. "Hide MT5's own trade lines" turns off MT5's per-trade lines when they get crowded; they come back when the indicator is removed.
Risk tools
Orders2 counts your loss the way a prop firm does and shows the price where you would hit the limit, before you get there.
Loss limit. Default 4.5% a day. "Daily" counts today's closed trades plus everything open, from the day's starting balance, which is how FTMO counts it. "Open positions only" counts open P&L alone. The base can be balance, equity or a fixed amount (200,000, for a prop account's starting size). The day resets at Prague midnight when the account is an FTMO one (detected automatically), otherwise at the broker's midnight; New York 5pm and UTC midnight are also offered.
- MAX LOSS line (dashed orange): the price where this symbol's trades would hit the limit, allowing for your stops closing trades on the way. Use: before adding to a losing gold position, see how close the limit already is.
- ACCOUNT MAX line (dashed pink): the same for the whole account, other symbols held where they are; one line when both land at the same price. Use: losses on EURUSD shrink the room left on gold.
- SIZE line (drag it to your stop): lots for your risk per trade (default 1%), rounded down. Commission is learned from your last 20 trades on that symbol; min and max lot and free margin are checked. Use: drag the line under a swing low and read the lot size.
- Room under max loss (panel): money still free under the limit if every open stop is hit, and how many trades of this size fit; the size is cut to fit when room runs short. Use: the size is a total, not per order, so this row shows whether you can afford a second one.
- MARGIN CLOSE-OUT line: estimated price where the broker's stop-out would start closing trades. Use: on a large hedged or averaged position, see how far price can go before the broker acts.
Alerts fire when risk used passes 50%, 80% and 100% of the limit, and when price comes within a quarter of a daily ATR of the max-loss line. A "~" before a price means it is an estimate: the symbol's profit is in another currency, so the conversion moves with price.
The panel
The panel is the summary you read first; Full is the default, Compact keeps only what you act on. Hover any row for what it means. Arrows never cover it.
- Title: symbol and number of positions.
- Server · local: broker time and your computer's time, with UTC offsets. Use: candles follow the broker's clock, not yours.
- Session (click it): markets open now; a click shows or hides the session boxes. Use: the London and New York overlap is the busiest time.
- Next: next market to open and the countdown. Use: waiting for London before entering.
- Reversal window: the window open now with time left, or the next one. Use: a move into the New York open may stall.
- RSI 14: chart timeframe plus H4, D1, W1, MN1; green above 50, red below, amber under 30 or over 70. Use: daily oversold while H4 is red means a bounce is likely, not yet a trend change.
- Buy / Sell / Net: lots and average price per side; net lots long, short or flat. Use: how much of a hedge is left.
- Net breakeven: the exit price for everything together, or "hedged" when flat. Use: one take-profit for the whole position.
- To break even at: lots to add at the BE TARGET line's price. Use: is one more entry worth it.
- P&L and its split: open profit, then floating, swap and commission. Use: how much swap is eating a long hold.
- Max loss, Other symbols, Account open P&L: the limit in money, and P&L elsewhere. Use: losses on another pair reduce your room here.
- Today (closed + open), Risk used today: what the daily limit counts, as money and as a %. Use: stop for the day at 80% used.
- Swap per night: per night on your trades here, and the triple-swap day. Use: avoid a Wednesday triple charge on a large negative-swap position.
- Leverage, Lots safe · max: real leverage, margin per lot, lots you can still open (safe keeps margin level above 300%). Use: check room before an averaging entry.
- Size for 1% risk, and its working: total lots for the SIZE line, the sum behind it, room left. Use: size a new trade at a glance.
- Volume today: lots and deals traded on this symbol today.
With no position open the panel still shows sessions, today's loss used, margin and the trade size, so you can plan the first entry.
Time tools
Price moves most when big markets open, so Orders2 draws when they are open and when moves often turn. All times follow each market's daylight saving.
- Session boxes: a coloured row per market along the top (Sydney, Tokyo, Singapore, London, New York) for the last 2 days and today's later sessions, with a dotted line at the London and New York opens; H1 and below. Use: see that a breakout came at the London open, not in the quiet Asian hours.
- Reversal windows: faint shaded bands at three times a move often stalls or turns: London open (07:00 London, 2 hours), New York open (08:30 New York, 2 hours), London close and 4pm fix (15:00 London, 90 minutes). Countdown in the panel; alert 5 minutes before. Use: after a strong move into the New York open, tighten your stop or take part profit rather than add.
- Candle timer: time left in the current candle; at the weekend, when the market reopens. Use: wait for an H4 candle to close before acting on a break.
Reversal windows are a habit of the market, not a signal: price often turns there, not always.
Levels and zones
The strongest levels are where several tools agree, so Orders2 draws each tool's levels and shades a grey zone where three or more different ones meet.
- Support / resistance: confirmed swing highs and lows (they never repaint) on H1, H4, daily and weekly. Close swings merge; a level needs 3 touches; the 2 nearest each side are shown per timeframe. Label: "H4 R 4x strong retest flip 1.09520". Use: a buy limit at daily support rather than at a random round number.
- Strong, retest, flip: strong = H4 level with 4+ touches; retest = first return after price closed through it (H4 and daily); flip = it was both support and resistance. Use: old resistance retested as support after a break is a classic entry spot.
- Break arrows: a big arrow on the candle that closed through a level (last 100 candles). Use: spot a fresh break to trade the retest.
- Pivots: classic floor pivots from the previous H4 bar, day, week and month: PP, R1, S1. Label: "W R1 1.09715". Use: daily pivot as an intraday target, weekly R1 to take profit.
- Range Fibonacci: 23.6, 38.2, 50, 61.8, 70.5 and 78.6% of the previous H4 bar, day, week and month, plus that period's high and low (PDH, PDL, PWH…). Label: "PD 61.8% 1.09283". Use: yesterday's 61.8% as a pullback entry in today's trend.
- Swing Fibonacci: the same ratios on the last H4 swing, with a dotted line showing which move is measured. Use: enter the pullback of the latest impulse at 50–61.8%.
- Zones (grey bands): three or more different tools within 5% of a daily ATR; an S/R level inside one gets "zone" added to its label. Label: "W PP · PW 38.2% 1.09828-1.09830". Use: enter only where several reasons stack up.
Labels sit in a column at the right edge, merged when lines are close, and kept 3 candles clear of the current price. A label with no room is left out; hover the line to read it. Drag the chart-shift triangle at the top of the chart to give labels more space. The "Zones" switch brings all pivots and Fibonacci levels with it.
Moving averages, arrows and ATR
These show trend and where the last swings were; all of them can be switched off.
- Moving averages: EMA 50 (purple), SMA 50 (purple dashed), EMA 100 (pink), SMA 200 (white), and the H4 SMA 20 on H4 and lower charts; SMA 100 available but off. Use: price above a rising SMA 200 favours buys; the H4 SMA 20 on M15 shows the bigger trend.
- BBMA (off by default): LWMA 5 and 10 of highs (red) and lows (blue), Bollinger Bands 20, 2 (gold), EMA 50; optional shading between the LWMAs. Use: for the BBMA method, a close outside the band, then re-entry.
- Swing arrows: down arrow over each swing high, up arrow under each swing low, last 400 candles. "Stable" (default) marks a swing only once confirmed, so arrows never move; "Fast" marks sooner but can redraw. Use: stops beyond the last swing; counting higher highs and higher lows.
- Long-wick marks: a faint dotted line past the tip of a big candle's long wick (at least 3 times the body and half an ATR). By default only when the wick pierced the EMA 50 or a Bollinger band; below M15 only at support or resistance. Use: a long lower wick through the EMA 50 at support shows buyers rejected that price.
- ATR lines (off by default): lines 1 to 5 ATR steps away; with no trade, above and below the last close; with trades, from your last buy and last sell on the losing side, where you would add. Use: space averaging entries one ATR apart instead of guessing.
Alerts, layer buttons and look
Alerts go to your phone through the MT5 app by default; pop-up and sound are optional. Each fires once per event, and one chart sends it even when several charts of the symbol are open. Level and break alerts are held back while the market is closed.
- Loss limit: risk used passes 50%, 80%, 100%; price nears the max-loss line.
- Price at a key level: price enters a strong H4 level or a first retest after a break.
- Close through a level: a candle closes through support or resistance.
- Wick mark: the candle that just closed has a long wick (as marked on the chart).
- Reversal window: 5 minutes before a window opens.
Layer buttons (off by default) put a row of small buttons at the bottom right: S/R, Pivots, Fibs, Zones, MAs, BBMA, Wicks, Swings, ATR, Sessions. One tap hides or shows that layer without changing any setting; alerts keep running. Use case: a clean chart to read price, then the levels back with one tap.
Look. The theme follows your chart background (dark or light) unless you pick one. Font size defaults to 10. Level labels can be compact text (default), boxed, or none.
Settings and defaults
- 1. Loss Limit: max loss 4.5% · count daily, closed + open · measured on balance · fixed amount 200,000 · day starts from day-start balance · day resets Auto (FTMO: Prague midnight) · max-loss lines on.
- 2. Position Lines: average and breakeven lines on · count closing commission on · stop / target lines off · P&L on those lines off · hide MT5's own trade lines off.
- 3. Planning Tools: size helper on, 1.0% risk · breakeven target line on · swap, leverage, margin on · safe margin level 300%.
- 4. Panel and Time: panel on, Full · session boxes on (Singapore always included) · candle timer on · reversal windows on, alert 5 min before on.
- 5. Levels: support / resistance on · zones (pivots, Fibonacci) on.
- 6. Moving Averages: moving averages on · BBMA off · LWMA shading off.
- 7. Arrows and ATR: ZigZag arrows on, Stable · wick marks: wick through EMA 50 / Bollinger · ATR lines off, shown as lines, 5 steps each side.
- 8. Alerts: to phone on · pop-up off · sound off · loss limit, key level, close through a level, wick mark on.
- 9. Look: theme Auto · font size 10 · level labels Compact · layer buttons off.
Groups 10–17 (advanced) hold periods, history lengths, which timeframes' levels to draw, reversal window times and label positions; see Quick start to show them.
Limits and good practice
Orders2 shows probabilities and arithmetic, not signals: a level, zone or window marks where price often reacts, never where it must.
- It never trades. It places, changes and closes nothing. Every decision and order is yours.
- Estimates are marked. Prices with "~" depend on a currency conversion that moves with price. The margin close-out assumes your other symbols stand still.
- Commission is learned, not known. MT5 does not publish a broker's commission, so it is read from your own recent trades on that symbol. Until you have traded it, the size helper leaves commission out and says so.
- Check your firm's rules. The daily limit is built the FTMO way (closed + open from the day-start balance, reset at Prague midnight); firms change their rules, and others count differently. Set the reset time and base to match yours.
- History matters. Support and resistance need about a year of H1 to daily history (five for weekly) loaded in MT5. With less, fewer levels appear.
- Manage risk on every trade. Use a stop, size from the SIZE line, and respect the loss limit even when a zone looks perfect.
