Accessing OHLCV and Bid/Ask Prices | Migrating from MQL4 to MQL5 for Algorithmic Traders
This tutorial shows algorithmic traders using MetaTrader 4 (MQL4), how to retrieve current BID / ASK and historical OHLCV prices in MQL5 (MetaTrader 5). Brought to you by Darwinex: https://www.darwinex.com/?utm_source=youtube&utm_medium=video-description-above-fold&utm_content=mql4-mql5-retrieving-bid-ask-ohlcv-prices
Risk Disclosure:
https://www.darwinex.com/legal/risk-disclaimer
Series: Migrating from MQL4 to MQL5: Guidance for Algorithmic Traders
MQL4 makes these accessible via pre-defined variables Bid and Ask, and arrays Open, High, Low, Close, Time and Volume.
In MQL5, the same prices can be retrieved in 3 ways, via:
--
1) iTime, iOpen, iHigh, iLow, iClose and iTickVolume
2) CopyTime, CopyOpen, CopyHigh, CopyLow, CopyClose, CopyTickVolume functions
3) CopyRates, using the MqlRates struct
For further information on Time Series access in MQL5, please visit:
https://www.mql5.com/en/docs/series
All content is specifically geared towards algorithmic traders currently using MQL4, with the aim of making a case for transition from MQL4 to MQL5, and providing the knowledge needed to ensure it is a smooth, educated endeavour.
--
Are you an algorithmic trader?
We'd love to have your strategy listed on our Exchange, enabling you to earn performance fees on investor profits!
More details here:
https://www.darwinex.com/?utm_source=youtube&utm_medium=video-description&utm_content=mql4-mql5-retrieving-bid-ask-ohlcv-prices
2.0M in performance fees paid to date:
https://www.darwinex.com/darwinia/hall-of-fame/users?utm_source=youtube&utm_medium=video-description&utm_content=mql4-mql5-retrieving-bid-ask-ohlcv-prices
Topics: #algorithmictrading #mql4 #mql5 #metatrader4 #metatrader5 #darwinex #mt4 #mt5 #metatrader