Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

Save OHLCV Data from Chart to CSV File - script for MetaTrader 5

Views:
358
Rating:
(3)
Published:
2024.08.20 20:17
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The standard method of getting historical data in metatrader5 is to use "View>Symbols>Request" tool as shown in the picture below:

Request Historical Data

However, this sometimes doesn't return all the data available on the chart.

This script saves all the available historical data to a CSV file located in "Files" folder inside the "Common Data Path" directory.

Note: Make sure "Max bars in chart" is set to "Unlimited" in 'Tools>Options>Charts' (see the picture below).

Max bars on chart


Custom Bid Ask lines Custom Bid Ask lines

A customized bid and ask line which is labelled and clear to help visualize the bid and ask prices

Arbitrage Triangle EURGBP-EURUSD-GBPUSD by Peter Mueller Arbitrage Triangle EURGBP-EURUSD-GBPUSD by Peter Mueller

The EA identifies discrepancies between theoretical and actual currency exchange rates to execute risk-minimized trading opportunities.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.