Gamestudio Links
Zorro Links
Newest Posts
Indicator RSI
by sdelatorre
Yesterday at 23:16
Transaction Cost
by tradingest
Yesterday at 21:52
Is it possible to do Trade Mode without live brokerage account?
by AndrewAMD
Yesterday at 20:36
OptimialF values in .fac file mostly zero
by SBGuy
Yesterday at 19:48
MED (or any tool) - change base frame / pose of frame 0 ?
by rayp
Yesterday at 17:55
Rigid Force Alpha - Classic side-scrolling shoot'em up
by Turrican
Yesterday at 16:09
Series within loop
by Spirit
Yesterday at 13:22
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
8 registered (AndrewAMD, alibaba, SBGuy, Superku, Quad, sdelatorre, 2 invisible), 461 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
jiffdbf, jgtrader, Chefmac, BazGen, pallab1964
18079 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: 567
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: 26529
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: 567
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: 26529
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: 567
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: 26529
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: 567
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