hi how are you?
I want to use the VOLUME_REAL in mql4, but I can't
I'm search some information in documentation:
https://docs.mql4.com/constants/indicatorconstants/prices
or chart_volume_real
https://docs.mql4.com/constants/chartconstants/chart_view
someone can help me please??
really thanks
Diego
You can only if a broker provides you the data. To my knowledge there is no such broker currently for MT4.
really thanks for your help... why CHART_VOLUME_REAL always return "2"???
thanks again
Diego
really thanks for your help... why CHART_VOLUME_REAL always return "2"???
thanks again
Diego
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... ????
thanks again
Diego
hi again.. I already installed MT5... in order to use the "volume_ real"... I tested with this simple code that I put in Ontick...:
...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.
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.
hi man
thanks for reference... I change that for this:
double volumenreal = iVolumes (_Symbol, PERIOD_CURRENT, VOLUME_REAL);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
thanks again
Diego
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.
hi man
thanks for reference... I change that for this:
double volumenreal = iVolumes (_Symbol, PERIOD_CURRENT, VOLUME_REAL);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
thanks again
Diego
What is the return value of iVolume ?
By the way this is mql5, it's better to ask on mql5.com forum.
What is the return value of iVolume ?
By the way this is mql5, it's better to ask on mql5.com forum.
really thanks.. I'm going to ask in mql5 forum.... when I have a solution, I will post here to not leave unfinished business

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi how are you?
I want to use the VOLUME_REAL in mql4, but I can't
I'm search some information in documentation:
https://docs.mql4.com/constants/indicatorconstants/prices
or chart_volume_real
https://docs.mql4.com/constants/chartconstants/chart_view
someone can help me please??
really thanks
Diego