if(PositionSelect(Symbol())==true) { double Volume=PositionGetDouble(POSITION_VOLUME); }This should help. First you need to select your position, and then you can address it requesting different info.
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
I am totally new to EA. I am trying to get my position volume and use PositionGetDouble(POSITION_VOLUME) or PositionGetDouble(POSITION_VOLUME, myVolume). However, it return false which indicates that I couldn't access it. Is this because I am currently using demo account? Is this the same situation during the competition?
Thank you in advance to take care of this stupid question.