hi how are you?
I want to use the VOLUME_REAL in mql4, but I can't
I'm search some information in documentation:
someone can help me please??
really thanks for your help... why CHART_VOLUME_REAL always return "2"???
Can you provide a snippet of code to show what your are doing ?
By the way, you can't use Real Volume usefully with MT4. It's there for compatibility reason with MT5.
hi again.. I already installed MT5... in order to use the "volume_ real"... I tested with this simple code that I put in Ontick...:
double volumenreal = VOLUME_REAL; //always return 1 or -1
double volumentics = VOLUME_TICK; // always return 0
double Chart_volumenreal = CHART_VOLUME_REAL; // always return 2
Print("volumen real: " + string(volumenreal));
Print("Volumen tick: " + string(volumentics));
Print("Chart Volumen tick: " + string(Chart_volumenreal));
perhaps is it because I use that in backtest... ????
Where did you see you can use VOLUME_REAL, VOLUME_TICK or CHART_VOLUME_REAL this way ? They are constants.
Please read the documentation, for example iVolume.
thanks for reference... I change that for this:
double volumentics = iVolumes (_Symbol, PERIOD_CURRENT, VOLUME_TICK);
Now this is the result I get in the chart... but I need a little help... how I can return the values that show the indicators??
If I use Print(volumenreal); that show 12.. and Print(volumentics); that show 13... I'm confused
What is the return value of iVolume ?
By the way this is mql5, it's better to ask on mql5.com forum.
the answer to this topic is here https://www.mql5.com/en/forum/35471
To add comments, please log in or register