How Can I get the Last Traded Tick Price whether its Bid or Ask

Created at 17 Mar 2015, 18:52
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!
KA

Kabir

Joined 14.01.2015

How Can I get the Last Traded Tick Price whether its Bid or Ask
17 Mar 2015, 18:52


cAlgo Team:

I went through the forum and have tested MarketSeries and Symbol Function - can't to seem to find how to get the Last Traded price (I am only getting Last Traded Bid Price)  within onTick() event. I know onTick() event runs whether on both Bid and Ask.

Please advise.

Thanks

Kami


@Kabir
Replies

Spotware
19 Mar 2015, 12:40

Dear Trader,

If you need to obtain current bid and ask prices you can use the following properties of Symbol object:

Hope that helps.


@Spotware

Kabir
19 Mar 2015, 12:50

Hi :

Yes I have those 2 as you mentioned, but last traded price from LastValue in MarketSeries is always the Bid Price. So What I was asking, if there is a way to get the actual Price the last trade took place.

Appreciate your prompt response.

Thanks

Kami


@Kabir

Spotware
19 Mar 2015, 14:45

MarketSeries collection contains only bid prices. There is no way to retrieve historical Ask prices from MarketSeries.


@Spotware

Kabir
20 Mar 2015, 11:10

RE:

Spotware said:

MarketSeries collection contains only bid prices. There is no way to retrieve historical Ask prices from MarketSeries.

Understood - Thank you for the clarification.


@Kabir