Replies

graeme.j.nash
20 Jul 2023, 15:03

RE:

pick said:

 

Wow, that's really helpful, thanks very much! I will get to work! :)


@graeme.j.nash

graeme.j.nash
19 Jul 2023, 19:30

RE:

firemyst said:

Adding to what PanagiotisChar said, example of getting the H1 timeframe:

Bars myBars = MarketData.GetBars(TimeFrame.Hour);

Thanks for the guidance, it's just how to set specific time boundaries I'm not sure about. In MT4 it's done by finding the shift value of the specified date/time, but cTrader code is all new to me, not sure how to do it!


@graeme.j.nash

graeme.j.nash
19 Jul 2023, 14:31

RE:

PanagiotisChar said:

Hi there,

You need to get the bars for a timeframe that covers your timespan e.g. h1 and loop through them to get the info you need.

Aieden Technologies

Need help? Join us on Telegram

 

 

 

Thanks for the reply - Sounds great, problem is I have no idea how to do that? :)


@graeme.j.nash