Buy vs sell: how to compare long and short results in your MT5 history
Use the right view, total each direction, and ask whether a gap is the market, the symbol or the habit.
Every closed trade in MetaTrader 5 is either a buy (a long position) or a sell (a short one), and the History tab shows which in the Type column. Most traders never split their results by direction, yet it is one of the cheapest reviews to run and it sometimes shows a lopsided habit: comfortable and profitable in one direction, hesitant and costly in the other. This page shows how to split your history by direction, what to compare, and how to avoid reading too much into a small sample.
Where direction is recorded
In the Positions view of the History tab, the Type column shows buy or sell for the position as it was opened. In the Deals view the picture is more subtle: the entry deal has the opening direction, while the exit deal carries the opposite type, because closing a buy means selling. A trader who counts deals by type will therefore count sells that were actually closed longs. Use the Positions view for any direction analysis, or take the entry deals only; see deal entry in, out and in/out explained and history columns explained.
| View | What the type column means | Safe for direction analysis? |
|---|---|---|
| Positions | Direction of the position as opened | Yes |
| Deals, entry rows | Direction of the opening deal | Yes, if you filter to entries |
| Deals, exit rows | Opposite of the position direction | No, unless you flip it |
| Orders | Direction of each order, including pending and cancelled | Only for orders that became positions |
Splitting the history in four steps
- Open the History tab in the Positions view and set the period; see history period and custom date range.
- Copy the rows into a spreadsheet, removing balance and credit rows first.
- Sort or filter by the Type column and total each direction separately: trade count, net result (profit plus commission plus swap), average win and average loss.
- Add a column for the symbol so you can see whether a direction bias is really a symbol bias.
What to compare
| Measure | What a difference could mean |
|---|---|
| Number of trades per direction | A strong habit or a trending market; see the caution below |
| Win rate per direction | Not enough alone; pair it with average win and loss |
| Average win vs average loss per direction | A direction where you cut winners short or hold losers |
| Net result per direction | The bottom line for each side |
| Holding time per direction | You may exit longs and shorts differently; see holding time analysis |
| Swap per direction | Long and short swap can differ in sign; see swap explained |
A worked example (hypothetical)
A trader reviews 150 closed trades over four months. The numbers are invented for illustration.
| Direction | Trades | Net result | Average win | Average loss |
|---|---|---|---|---|
| Buy | 95 | +210.00 | +9.50 | -7.00 |
| Sell | 55 | -65.00 | +6.00 | -8.50 |
| All | 150 | +145.00 |
The overall result is positive, but the sells lose money: smaller wins and larger losses than the buys. Before concluding that the trader should avoid shorts, ask what else differs. If the four months were mostly a rising market, long trades had a tailwind that short trades did not, and the split mostly reflects the market. If the sells cluster on one symbol or one time of day, the cause may be the setup, not the direction. And 55 trades is a modest sample. The right output of this review is a question for the next month’s notes: what was I thinking on those sells?
Pitfalls
- On a netting account, reversing a position closes one direction and opens the other in a single step; see position reversal on netting accounts.
- On a hedging account you can hold a buy and a sell on the same symbol at once, so a direction count may include protective trades; see hedging vs netting.
- Partial closes split one position into several deals; count positions, not deals; see partial closes.
- Market direction over the period dominates the comparison; compare against what the market did before you draw a conclusion.
- Expert Advisor trades may follow rules that are one-sided by design; see manual vs EA trades.
Doing it in a journal
AI Trading Journal is a Windows app for MetaTrader 5 only. It reads closed trades from the terminal on your PC, adds new ones every 5 minutes, and keeps the journal in a file in your Documents folder. Its Export Report to Excel button writes a workbook with a Trades tab, so you can filter by direction in a few clicks, and a Summary tab that includes net P&L by close hour, weekday and symbol. On the Journal page you can add a tag such as long bias or counter-trend short to each entry together with a note on why you took it, and then filter by it. The app is read-only and never places or closes a trade, and it does not tell you which direction to favour.
Limits and cautions
- A split by direction describes the past; it does not predict future results or tell you what to trade.
- Small samples and trending markets can produce lopsided figures that disappear later.
- Menu and column names vary between terminal builds; check your own platform.
- All example numbers are hypothetical, and this is not trading advice.
Frequently asked questions
How do I see buy and sell results separately in MT5?
Why do exit deals show the opposite type?
Is a better buy result a reason to stop selling?
Do long and short positions pay the same swap?
Can the journal app filter by direction?
Related guides
- A local trading journal for MT5
- P&L calendar for MT5
- Trade notes, ratings and screenshots
- Trading progress and goals
- Back up your journal and move it to a new PC
- An offline trading journal for Windows
- How to set monthly trading goals
- Import your whole MT5 history
- How to tag trades
- Trade screenshots for your journal
- All trading journal comparisons
Tag long and short trades and review them: free for 7 days
Free for 7 days, no card required. After that, a one-time $19.99 purchase. No subscription. Also on the Microsoft Store.
One-time $19.99, no monthly fee · your MT5 login never leaves your PC · trades go into your own journal on your PC, not through our servers.
Start free 7-day trial