next candle

Created at 25 Sep 2020, 11:03
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!
LU

luca.tocchi

Joined 25.03.2020

next candle
25 Sep 2020, 11:03


i have my program running on ontick (). but i want the program to open the position when a new candle forms. how can I do?

thank you


@luca.tocchi
Replies

PanagiotisCharalampous
25 Sep 2020, 11:07

Hi Luca,

You can use the OnBar() method. Else you can check if the Bars.OpenTimes.LastValue has changed.

Best Regards,

Panagiotis 

Join us on Telegram 

 


@PanagiotisCharalampous