DateTime Candel how can implement?

Posted By: faustf

DateTime Candel how can implement? - 01/10/21 22:32

hi guys i want simply close the trade at midnight , how is possible implement this rule ?? exist some example ??
i read this https://manual.zorro-project.com/trade.htm but not exist and example , anyone can help me ?? thanks
Posted By: Grat

Re: DateTime Candel how can implement? - 01/11/21 08:51

May be this help to you:

Code
    if(dow() == FRIDAY && hour() >= 19) { 
        exitLong("*");
        exitShort("*");
    }


Posted By: faustf

Re: DateTime Candel how can implement? - 01/11/21 21:45

thanks so much i will try
© 2024 lite-C Forums