to get real price

Created at 12 Jul 2020, 17:21
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
EL

eliezer_barros

Joined 21.12.2018

to get real price
12 Jul 2020, 17:21


Hi

How to get the real price of an open position? I tried several options available such as the highest or closing price but the value obtained is always equal to the opening price of the position.

Could someone help?
Thank you


@eliezer_barros
Replies

PanagiotisCharalampous
13 Jul 2020, 09:37

Hi Eliezer,

What do you mean when you say "real price of an open position"? What is a real price of an open position?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

eliezer_barros
13 Jul 2020, 16:23

RE:

PanagiotisCharalampous said:

Hi Eliezer,

What do you mean when you say "real price of an open position"? What is a real price of an open position?

Best Regards,

Panagiotis 

Join us on Telegram

 

Hi Panagiotis

I am trying to get the price during the open market and I think the example is better to show what I need.

ie...If I wish to open the position when the price to reach more than 15 pips after Open Price of the current candle, I need to know the current price to compare, but in all library I don't found a function to do this.

Please, can you send me a information?

tks
Eliézer


@eliezer_barros

PanagiotisCharalampous
13 Jul 2020, 16:25

Hi Eliezer,

You can get the current spot prices using Symbol.Bid and Symbol.Ask properties.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous