Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Baklazhan, Ayumi, Hanky27), 1,387 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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