Subscribe to trendbars on multiple timeframes

Created at 01 Dec 2022, 19:37
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!
PS

PS_Priv

Joined 01.12.2022

Subscribe to trendbars on multiple timeframes
01 Dec 2022, 19:37


I was trying to subscribe to both M5 and M15 with ProtoOASubscribeLiveTrendbarReq, but I only get subscribed to the lowest TF, M5.

It's not possible to subscribe to two TF at the same time? You have compile the higher TF from the lower one manually?


@PS_Priv
Replies

PS_Priv
09 Dec 2022, 20:21

RE:

patsan said:

I was trying to subscribe to both M5 and M15 with ProtoOASubscribeLiveTrendbarReq, but I only get subscribed to the lowest TF, M5.

It's not possible to subscribe to two TF at the same time? You have compile the higher TF from the lower one manually?

Coding mistake on my part. A trendbar[0] had snuck in there when I was testing, hence only the first one showed up and I had missed it when I continued with the live version.


@PS_Priv