Open a trade at a fixed time

Created at 08 Sep 2023, 15: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!
AL

alexandre.bussy

Joined 08.09.2023

Open a trade at a fixed time
08 Sep 2023, 15:03


Hello, I cannot find the code to open a trade at a fixed time. Can someone help me ?
I wanted to do something like that :

If CandleCloseTime = 8.59am then OpenTrade

Thank you 


@alexandre.bussy
Replies

... Deleted by UFO ...

PanagiotisChar
09 Sep 2023, 10:06

Here you go

          if (Bars.OpenTimes.LastValue.TimeOfDay > TimeSpan.ParseExact("08:59", "hh\\:mm", null))
          {
          
          }

@PanagiotisChar