Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 755 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Zorro 1.36 [Re: jcl] #455192
10/12/15 17:42
10/12/15 17:42
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
This issue has been fixed, thanks!

I don't know if you have seen my entry about the new issue with different results when using a TMF (http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=455104#Post455104). It also happens in 1.36.5, at least Stop and TakeProfit are effected when calling a TMF, they seem to be modified by a hidden mechanism although they are left untouched by script. So IMO you actually can not rely on results when involving TMFs.

Re: Zorro 1.36 [Re: Sphin] #455193
10/12/15 17:54
10/12/15 17:54
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ah, no, I had not seen it. Of course, this script will produce a random result. You're not returning anything from your TMF, so it just closes or continues the trade randomly, depending on the printf return value.

A TMF that does nothing must return 0. Omitting the return value won't work.

Re: Zorro 1.36 [Re: jcl] #455285
10/16/15 00:37
10/16/15 00:37
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
The print command returns any value other than zero? Okay, I did not consider this. Setting explicitly 'return 0' at the end of the TMF produces same results as without the TMF. Thanks!

Page 2 of 2 1 2

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