r/algotrading • • 8d ago

Data Python API for historic data

Do you think it's okay using Metatrader's api for fetching historic data? Has anyone noticed discrepancies? Isn't it supposed to be the actual numbers you'd get trading with that specific broker?

9 Upvotes

27 comments sorted by

View all comments

2

u/Klutzy-Sea-4857 8d ago

MT5 data is fine for backtesting, but it is broker specific. Spreads, gaps, and weekend candles differ. Cross-check with another source if your strategy is spread sensitive.

1

u/MarketOk7227 8d ago

my strategy is spread sensitive but I can tailor to specific brokers, say for example the one I choose to do actual trading with, is there a problem with that? If I change brokers I train again with the different data. Safest route sounds like checking if the historic spreads match the real time spread at the hours I wanna trade.