Gamestudio Links
Zorro Links
Newest Posts
Access string content through another string
by ChrstphFr
47 minutes 19 seconds ago
How to return a vector from a function
by jumpman
Today at 01:24
Vector Displacement, realtime Blendshapes
by jumpman
Yesterday at 23:46
Code Repository
by OptimusPrime
Yesterday at 13:25
Votes for future features
by OptimusPrime
Yesterday at 07:18
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14
08/13/18 22:44
Getting Maximum and Minimun Values from Array
by Tavasy
08/13/18 20:38
AUM Magazine
Latest Screens
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
Who's Online
11 registered (Ulenspegel, jyd, ChrstphFr, OptimusPrime, HamSelv, jumpman, AndrewAMD, wdlmaster, 3 invisible), 489 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
toto, FloMi, behr065, OptimusPrime, bailemad
18026 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: 566
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: 26429
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: 566
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: 26429
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: 566
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: 26429
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: 566
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