Gamestudio Links
Zorro Links
Newest Posts
MT4/5 Bridge: Stability & Latency?
by Zheka. 02/28/21 15:05
Zorro - import diff time zones csv
by Neb. 02/28/21 12:23
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/26/21 13:15
MACD / Stoch useage
by TraderTom. 02/25/21 21:22
findContract not finding a contract
by AndrewAMD. 02/25/21 11:53
New Zorro version 2.35
by jcl. 02/24/21 14:40
AUM Magazine
Latest Screens
Scheherazade's Journey
Paradox Vector
The Space Between
Pogostuck: Rage With Your Friends
Who's Online Now
9 registered members (Lozoteva, OptimusPrime, 1ND1G0, TraderTom, Dooley, AndrewAMD, 3run, NewBorn, 1 invisible), 480 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
VinVillin, Santofimio, LorraineJones, SkNiX, wongkrezi
18601 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
DateTime Candel how can implement? #482201
01/10/21 22:32
01/10/21 22:32
Joined: Jun 2016
Posts: 24
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 24
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

Re: DateTime Candel how can implement? [Re: faustf] #482204
01/11/21 08:51
01/11/21 08:51
Joined: May 2015
Posts: 363
Czech Republic
G
Grat Offline
Senior Member
Grat  Offline
Senior Member
G

Joined: May 2015
Posts: 363
Czech Republic
May be this help to you:

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



Last edited by Grat; 01/11/21 08:51.
Re: DateTime Candel how can implement? [Re: Grat] #482206
01/11/21 21:45
01/11/21 21:45
Joined: Jun 2016
Posts: 24
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 24
thanks so much i will try


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1