cAlgo - access OHLC data in Bid and Ask

Created at 22 Jun 2020, 06:50
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!
HA

hao.han

Joined 22.06.2020

cAlgo - access OHLC data in Bid and Ask
22 Jun 2020, 06:50


Hi

I want to write an indicator that uses the OHLC data of both Bid and Ask prices. As far as I am aware, Bars.ClosePrices, for example, is in reference to the Bid price. Is there an Ask equivalent?

 

Thank you


@hao.han
Replies

PanagiotisCharalampous
22 Jun 2020, 08:47

Hi hao.han,

Candles are constructed using Bid prices. If you are looking for the Ask prices you can use GetTicks() method.

Best Regards,

Panagiotis 

Join us on Telegram

 

 


@PanagiotisCharalampous