Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by Emre
Today at 01:03
New Zorro version 1.83
by claudio
Yesterday at 17:22
Ahead bias when retrain
by jcl
Yesterday at 12:27
Huge array for Deep Learning
by jcl
Yesterday at 12:06
[LBGUI] Memory not released!
by EVO
05/23/18 22:39
http_post undeclared identifier
by Superku
05/23/18 22:10
Pan/Tilt in relation to entity?
by Superku
05/23/18 20:59
AUM Magazine
Latest Screens
Lake scene
Forgotten Tales - Demo version
RPG PARTY
Triton Wing now available on Steam
Who's Online
8 registered (Slin, Quad, Superku, AndrewAMD, 3run, jyd, 2 invisible), 460 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Rayharry, AgentShark, rpauletto, tuuPaul, LaserJock2000
17960 Registered Users
Topic Options
Rate This Topic
#470894 - 02/11/18 19:53 tick() - loop and execution during weekend
Sphin Offline
User

Registered: 12/11/13
Posts: 543
Loc: Fuerth, DE
loop() is not present in tick()? I get an "Error 041: Invalid call in TMF!"
Is there a chance to prevent the tick() function from being executed during weekends?

Thanks, Sphin

Top
#470898 - 02/12/18 09:56 Re: tick() - loop and execution during weekend [Re: Sphin]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26338
Loc: Frankfurt
Weekend = 3 should prevent it.

Loop is a special function and cannot be used in ticks. Use a normal for or while loop instead.

Top
#470908 - 02/12/18 17:32 Re: tick() - loop and execution during weekend [Re: jcl]
Sphin Offline
User

Registered: 12/11/13
Posts: 543
Loc: Fuerth, DE
Sorry, I forgot to mention that I tried Weekend = 3 already, it seems to have no effect to the tick function. Therefore I asked at all.

Top
#470921 - 02/13/18 10:27 Re: tick() - loop and execution during weekend [Re: Sphin]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26338
Loc: Frankfurt
In the backtest, or in live trading?

Top
#470943 - 02/13/18 18:23 Re: tick() - loop and execution during weekend [Re: jcl]
Sphin Offline
User

Registered: 12/11/13
Posts: 543
Loc: Fuerth, DE
In live trading in an experiment with BrokerArb. One of the brokers quotes prices for crypto assets throughout the whole weekend while the other broker does not and of course there is soon a nice price difference which is alerted all time by the tick function.

Top
#470951 - 02/14/18 08:56 Re: tick() - loop and execution during weekend [Re: Sphin]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26338
Loc: Frankfurt
Ok, we'll check that. For ensuring that no quote is processed, enter at the begin of the tick function a line like: if(!workday(0)) return;

Update: Yes, tick() is still active on Weekend = 3. My first answer was wrong.

Top
#470970 - 02/14/18 18:26 Re: tick() - loop and execution during weekend [Re: jcl]
Sphin Offline
User

Registered: 12/11/13
Posts: 543
Loc: Fuerth, DE
Thanks, this workaround will do it!

Top



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

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