Use the file functions : https://docs.mql4.com/files
Raptor, can i save the data in Arrays?
You can write out to a CSV file, time_ini, time_fin, price_ini, try searching you will find lots of code examples.
RaptorUK:
You can write out to a CSV file, time_ini, time_fin, price_ini, try searching you will find lots of code examples.
You can write out to a CSV file, time_ini, time_fin, price_ini, try searching you will find lots of code examples.
Thanks raptor, you're awesome :)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi guys,
I was reading the forum and manuals but nothing... This is my code:
for (int Count = 0; Count < OrdersHistoryTotal(); Count ++)
{
OrderSelect(Count, SELECT_BY_POS, MODE_HISTORY);
if (OrderSymbol() == Symbol())
{
double price_ini = OrderOpenPrice();
double time_ini = OrderOpenTime();
double time_fin = OrderCloseTime();
}
}
Now i can do a print for example and i can see my data, but i want to save it in my excel. How can i save it easily?
Thanks!