Datrade

Back

Trade Grouping Method

What is a trade grouping method?

The three methods

FIFO — First In, First Out (Recommended)

LIFO — Last In, First Out

Merge Until Exit

Important: this setting is retroactive

Back

Trade Grouping Method

What is a trade grouping method?

Your broker sends raw executions — individual buy and sell orders. Datrade combines them into trades using a grouping method that you choose.

The method determines which entry is matched to which exit when you have multiple executions in the same symbol.

Go to Settings → Trade Settings to change it.

Trade grouping method options

The three methods

Every entry creates its own trade. Each exit is matched to the earliest open entry in the same symbol.

This is the most common accounting method for retail traders and the most accurate for indicator calculation. Datrade recommends FIFO for most use cases.

LIFO — Last In, First Out

Every entry creates its own trade. Each exit is matched to the most recent open entry in the same symbol.

Useful if your trading style or broker uses LIFO accounting and you need your Datrade stats to match your brokerage statements.

Merge Until Exit

All executions in the same symbol are merged into a single trade until the position is fully closed or reversed. All calculations use the first execution's entry price.

Not recommended for precise analysis — indicator values may be inaccurate because multiple distinct entries are averaged into one.

Important: this setting is retroactive

Changing the grouping method affects both existing trades and new imports. All your historical data will be recalculated using the new method.

If you're unsure, stick with FIFO.

Have a question?
Let us help!

To get the best response, follow these steps when submitting your request:

Be Clear

Briefly describe the issue and any key details, like the feature used or an error message

Add Context

Explain what you were trying to do and what led to the issue

Attach a Screenshot (Optional)

A visual reference can speed up troubleshooting

We'll review your request and get back to you soon!

Drag and drop a file here or use the button belowAny format up to 10 MB
I agree to the privacy policy

Disclaimer: Datrade is not an investment advisor or signal provider. All market data and analytics are provided for informational purposes only and do not constitute financial advice or trading recommendations. Past performance is not indicative of future results, and no performance outcomes are guaranteed. Users are solely responsible for their trading decisions and actions; Datrade accepts no liability for any losses incurred from use of our data or content. Use of this site constitutes acceptance of our Terms of Service and Risk Disclosure.

© 2026 Datrade
DATRADE LLC · 254 Chapman Rd, Ste 208 #27646, Newark, DE 19702, USA