Multi time frame cBot

Created at 10 Mar 2023, 10:51
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!
J_

j_matu

Joined 11.12.2022

Multi time frame cBot
10 Mar 2023, 10:51


Hey there,

I am writing a cBot with two indicators (MACD and EMA)

I want them to run at separate time-frames, for example EMA crossover at H2 and MACD crossover at M5.

Am stuck trying to reference H2 and M5 time-frames.

Any help will be highly appreciated.

Thanks.


@j_matu
Replies

firemyst
12 Mar 2023, 04:47

RE:

j_matu said:

Hey there,

I am writing a cBot with two indicators (MACD and EMA)

I want them to run at separate time-frames, for example EMA crossover at H2 and MACD crossover at M5.

Am stuck trying to reference H2 and M5 time-frames.

Any help will be highly appreciated.

Thanks.

Have you looked at any of the code samples Spotware provided?

 

 

 

 


@firemyst

j_matu
15 Mar 2023, 11:32

RE: RE:

firemyst said:

j_matu said:

Hey there,

I am writing a cBot with two indicators (MACD and EMA)

I want them to run at separate time-frames, for example EMA crossover at H2 and MACD crossover at M5.

Am stuck trying to reference H2 and M5 time-frames.

Any help will be highly appreciated.

Thanks.

Have you looked at any of the code samples Spotware provided?

 

Thanks for the help, that was very insightful. Much appreciated. 

Thanks, 

 

 

 


@j_matu