How to get bid and ask prices seperately from ProtoOAGetTrendbarsReq?

Created at 06 Jul 2023, 23:34
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!
VA

vandenberghinc

Joined 06.07.2023

How to get bid and ask prices seperately from ProtoOAGetTrendbarsReq?
06 Jul 2023, 23:34


How can i get seperate bid and ask prices from ProtoOAGetTrendbarsReq? So the bid prices open, high, low close. And the ask prices open, high, low, close. I found that the prices are based on the bid prices.

For my backtesting I require the bid and ask prices for the spread calculations.


@vandenberghinc
Replies

PanagiotisChar
08 Jul 2023, 08:11

Hi there,

It is not possible to get trendbars based on ask prices. If you need to backtest, you should base your backtesting on tick data instead.

Aieden Technologies

Need help? Join us on Telegram

 


@PanagiotisChar