CSV Format Reference

AlgoChef's import wizard auto-detects delimiters and date formats. Here's the full specification for CSV and TXT trade files.

Required Fields

You need at minimum two date fields and one P&L field:

FieldAccepted Column NamesExample
Entry Dateentry_date, EntryDate, Open Date2024-01-15 09:30:00
Exit Dateexit_date, ExitDate, Close Date2024-01-15 14:45:00
Profit/Loss ($)net_profit, profit_loss, PnL, P&L1250.00

OR instead of a dollar P&L, you can provide:

  • profit_loss_points — P&L in instrument points

Optional Fields

These unlock additional metrics and richer analysis:

FieldDescriptionUnlocks
entry_priceTrade entry priceMAE/MFE, price-based calculations
exit_priceTrade exit pricePrice-based P&L verification
quantityPosition size / contractsPosition sizing analysis
sideLong or ShortLong/short breakdown
instrumentSymbol (e.g., ES, NQ)Instrument metadata
commissionPer-trade commission costNet P&L after costs
slippagePer-trade slippage costNet P&L after costs
mae_dollarMaximum adverse excursion ($)MAE/MFE analysis
mfe_dollarMaximum favorable excursion ($)MAE/MFE analysis
mae_pointsMAE in pointsPoint-based excursion
mfe_pointsMFE in pointsPoint-based excursion
bars_in_tradeDuration in barsTime analysis metrics
atr_pointsATR value at entryATR-normalized metrics
entry_nameTrade setup labelSetup categorization
exit_nameExit reason labelExit analysis

Date Format Support

AlgoChef auto-detects common date formats:

FormatExample
ISO 86012024-01-15T09:30:00
YYYY-MM-DD HH:mm:ss2024-01-15 09:30:00
MM/DD/YYYY HH:mm01/15/2024 09:30
DD/MM/YYYY15/01/2024
M/D/YYYY1/15/2024

Tip

If your dates include timezone info, AlgoChef handles it. Otherwise, it assumes the timezone you select during import.

Example CSV

entry_date,exit_date,side,entry_price,exit_price,quantity,net_profit
2024-01-02 09:35:00,2024-01-02 11:20:00,Long,4750.25,4762.50,2,1225.00
2024-01-02 13:15:00,2024-01-02 15:45:00,Short,4768.00,4755.75,1,612.50
2024-01-03 10:00:00,2024-01-03 10:45:00,Long,4740.00,4735.50,2,-450.00

Tip

Not sure if your file will import correctly? Try it now — AlgoChef auto-detects your format and shows a preview before committing the import.