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.

ViewWhat the type column meansSafe for direction analysis?
PositionsDirection of the position as openedYes
Deals, entry rowsDirection of the opening dealYes, if you filter to entries
Deals, exit rowsOpposite of the position directionNo, unless you flip it
OrdersDirection of each order, including pending and cancelledOnly for orders that became positions

Splitting the history in four steps

What to compare

MeasureWhat a difference could mean
Number of trades per directionA strong habit or a trending market; see the caution below
Win rate per directionNot enough alone; pair it with average win and loss
Average win vs average loss per directionA direction where you cut winners short or hold losers
Net result per directionThe bottom line for each side
Holding time per directionYou may exit longs and shorts differently; see holding time analysis
Swap per directionLong 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.

DirectionTradesNet resultAverage winAverage loss
Buy95+210.00+9.50-7.00
Sell55-65.00+6.00-8.50
All150+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

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

Frequently asked questions

How do I see buy and sell results separately in MT5?
Use the Positions view of the History tab, copy the rows into a spreadsheet and filter by the Type column. Total each direction separately.
Why do exit deals show the opposite type?
Closing a buy means selling, so the exit deal of a long position is recorded as a sell. Use positions or entry deals for direction analysis.
Is a better buy result a reason to stop selling?
Not on its own. The market trend, symbol mix and sample size all matter. Treat it as a question for your notes.
Do long and short positions pay the same swap?
Not necessarily. Swap can differ in size and sign between directions, so include it in the net result.
Can the journal app filter by direction?
The Excel report has a Trades tab you can filter, and you can tag entries on the Journal page. The app does not give advice on direction.

Related guides

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