nicolasxu:
POSITION_PRICE_CURRENT give you directly the right price (Bid or Ask) depending if your position is BUY or SELL.
If I had a position on "EURUSD", there are 2 ways to get current price.
1) PositionSelect("EURUSE")
then call PositionGetDouble(POSITION_PRICE_CURRENT)
2) SymbolInfoTick("EURUSD",lastTick);
My question is what is the difference? Which one I should use?
angevoyageur:
POSITION_PRICE_CURRENT give you directly the right price (Bid or Ask) depending if your position is BUY or SELL.
I see. Thank you!
POSITION_PRICE_CURRENT give you directly the right price (Bid or Ask) depending if your position is BUY or SELL.
nicolasxu:
If I had a position on "EURUSD", there are 2 ways to get current price.
1) PositionSelect("EURUSE")
then call PositionGetDouble(POSITION_PRICE_CURRENT)
2) SymbolInfoTick("EURUSD",lastTick);
My question is what is the difference? Which one I should use?
Use PositionGetDouble(POSITION_PRICE_CURRENT) is real price.

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
If I had a position on "EURUSD", there are 2 ways to get current price.
1) PositionSelect("EURUSE")
then call PositionGetDouble(POSITION_PRICE_CURRENT)
2) SymbolInfoTick("EURUSD",lastTick);
My question is what is the difference? Which one I should use?