need help about Ctrader automate

Created at 03 Jan 2023, 05:40
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!
LE

leokao.com

Joined 09.11.2022

need help about Ctrader automate
03 Jan 2023, 05:40


Hi all:

I have 2 questions:

+ I want to restart Cbot automatically at a time frame (or at the time exactly), how to code it?

+ I Want  to close the position automatically  at a time frame (or at the time exactly). how to code it? 

thanks.


@leokao.com
Replies

PanagiotisChar
03 Jan 2023, 09:34

Hi there,

Here is an example. 

            var dateTime = new DateTime(2023,1, 1, 0, 0, 0);
            if (Server.Time > dateTime)
            {
                // Do something
            }

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar