Gamestudio Links
Zorro Links
Newest Posts
Performance reporting showing Annual and monthly % returns
by OptimusPrime
Today at 01:19
Issue with inconsistent test results
by kvm
Yesterday at 17:24
Access string content through another string
by ChrstphFr
Yesterday at 11:30
How to return a vector from a function
by Superku
Yesterday at 05:39
Vector Displacement, realtime Blendshapes
by jumpman
08/14/18 23:46
Code Repository
by OptimusPrime
08/14/18 13:25
Votes for future features
by OptimusPrime
08/14/18 07:18
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
6 registered (Dalla, kvm, jenGs, firecrest, alibaba, bailemad), 452 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Ulenspegel, toto, FloMi, behr065, OptimusPrime
18027 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