GrumpyDuckMan:
Hello everyone,
I just started this code today, but I'm having some problems understanding the error message. "could be one of 3 function(s)" isn't particularly helpful.
Some ideas please.
http://www.learncpp.com/cpp-tutorial/4-2a-why-global-variables-are-evil/
4.2a — Why global variables are evil
- www.learncpp.com
If you were to ask a veteran programmer for one piece of advice on good programming practices, after some thought, the most likely answer would be, “Avoid global variables!”. And with g…
GrumpyDuckMan:
Hello everyone,
I just started this code today, but I'm having some problems understanding the error message. "could be one of 3 function(s)" isn't particularly helpful.
Some ideas please.
Syntax. You are using 7 parameters, CopyTime takes only 5.
https://www.mql5.com/en/docs/series/copytime
Documentation on MQL5: Timeseries and Indicators Access / CopyTime
- www.mql5.com
The function gets to time_array history data of bar opening time for the specified symbol-period pair in the specified quantity. It should be noted that elements ordering If you know the amount of data you need to copy, it should better be done to a statically allocated buffer, in order to prevent the allocation of excessive memory. No matter...
GrumpyDuckMan: I just started this code today, but I'm having some problems understanding the error message. "could be one of 3 function(s)" isn't particularly helpful.
Perhaps you should read the manual.
CopyTime - Timeseries and Indicators Access - MQL4 Reference
Your code | Version 1 | Version 2 | Version 3 |
---|---|---|---|
Copy = CopyTime( Symbol(), Period(), 0, 100, StartDate, FinishDate, DateArray ); // could be one // of 3 function(s) | int CopyTime( string symbol_name, ENUM_TIMEFRAMES timeframe, int start_pos, int count, datetime time_array[] ); | int CopyTime( string symbol_name, ENUM_TIMEFRAMES timeframe, datetime start_time, int count, datetime time_array[] ); | int CopyTime( string symbol_name, ENUM_TIMEFRAMES timeframe, datetime start_time, datetime stop_time, datetime time_array[] ); |
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
Hello everyone,
I just started this code today, but I'm having some problems understanding the error message. "could be one of 3 function(s)" isn't particularly helpful.
Some ideas please.