mql5, cannot call a function inside onTick() function
abricot911:
hello,
can you help me please :)
It returns me nothing :(
put in an else statement int error=GetLastError() then Print(error) to see why.
- This is the MT4 forum.
- The function does not return a handle.
Not a proper shift.Your code Documentation int VolumesDefinition = iVolume( _Symbol, _Period, VOLUME_TICK );
long iVolume(
string symbol, // symbol
int timeframe, // timeframe
int shift // shift
);- There is no copyBuffer, in the language.
- There is no VOLUME_TICK, in the language.
- The function does not return a handle.
- In MT5, the function is: iVolumes, with a "s."
Technical Indicators / iVolumes - Reference on algorithmic/automated trading language for MetaTrader 5
GetLastError returns me 4807 :/
William Roeder:
MT5 forum is down sorry
- This is the MT4 forum.
- The function does not return a handle.
Not a proper shift.Your code Documentation long iVolume(
string symbol, // symbol
int timeframe, // timeframe
int shift // shift
);- There is no copyBuffer, in the language.
- There is no VOLUME_TICK, in the language.
- The function does not return a handle.
- In MT5, the function is: iVolumes, with a "s."
Technical Indicators / iVolumes - Reference on algorithmic/automated trading language for MetaTrader 5
abricot911:
MT5 forum is down sorry
That doesn't make sense. mql4/MT4 forum is a sub-forum of mql5 on the same domain. So if "MT5 forum is down, MT4 is down too".
MT5 forum is down sorry
hello,
can you help me please :)
It returns me nothing :(