need help about Ctrader automate

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

Panagiotis Aieden Technologies
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