Forum

Difference between EURUSD.s and EURUSD.s

I'm trying to pull market data on a EURUSD .s chart. Option 1) MarketInfo(Symbol(),MODE_BID); Option2) string Suffix=StringSubstr(Symbol(),6); Print(Suffix); //gives .s string Pair="EURUSD"+Suffix; MarketInfo(Pair,MODE_BID); Option 1 is working fine. Option 2 is not working, it can't use Pair to

Large random numbers

How could one generate large random numbers, ranging between 0 and X where X can be up to 1.500.000? The standard random numbers generators I found are going up to 32767, not higher. And I need higher

[MQL5] CSV files get deleted once read in strategy tester?

In MT5 strategy test, the FileOpen() function deletes the files. Why is this happening and what is the solution, please? handle= FileOpen (FileName, FILE_CSV | FILE_READ , ',' );

Adding information to a CSV file

Hi guys, I wish to read through csv files and then write info directly after the read info. Now, I know how to read through the CSV file, but I don't know how I can: -move downwards in the csv file -then go back to a specific point -then add data next to the current data Any help would be so much