Buy at start of each day

Created at 31 Jan 2019, 22:02
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!
PO

pozhy

Joined 03.04.2018

Buy at start of each day
31 Jan 2019, 22:02


How we can make an order at the start of each day? Anyone have Idea?


@pozhy
Replies

trader2017
31 Jan 2019, 22:15

Hi pozhy,

you can do something like:

 protected override void OnBar()
 {
            if (MarketSeries.OpenTime.LastValue.ToString("HH:mm") != "00:00")
            return;

           ...
}

 


@trader2017

pozhy
31 Jan 2019, 22:52

thank you


@pozhy