Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (howardR, 7th_zorro), 893 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
info command #434594
12/22/13 04:16
12/22/13 04:16
Joined: Dec 2013
Posts: 10
A
AttilaZ Offline OP
Newbie
AttilaZ  Offline OP
Newbie
A

Joined: Dec 2013
Posts: 10
When trying :

var diff = fast - slow;
info("DIFF %.2f",diff);

where diff is a float

Zorro crashes. Printf works on the other hand.

EDIT: msg also works with the same signature.

Any ideas why ?

Best,
Attila

Last edited by AttilaZ; 12/22/13 04:16.
Re: info command [Re: AttilaZ] #434642
12/23/13 07:35
12/23/13 07:35
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
No, the info command alone does not crash. It is probably something else in your script - can you post the complete code?

Re: info command [Re: jcl] #434805
12/27/13 09:01
12/27/13 09:01
Joined: Dec 2013
Posts: 10
A
AttilaZ Offline OP
Newbie
AttilaZ  Offline OP
Newbie
A

Joined: Dec 2013
Posts: 10
Relevant code :

vars fast = series(EMA(closes, optimize( 5,5,20,5 ) ));
vars slow = series(EMA(closes, optimize( 30,30,100,10 ) ));
var diff = fast[1] - slow[1];

and then :

info(".....", diff);

Re: info command [Re: AttilaZ] #434806
12/27/13 09:44
12/27/13 09:44
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks, but this code also looks ok, so if your script crashes it's still something else.

If you can't immediately see the reason of a crash in your script, start with a minimum version - just the lines above that you posted, including the info command - and then add the rest step by step. At one point it will crash. Not always, but often the crash reason are the last lines that you added.

Re: info command [Re: jcl] #434808
12/27/13 11:03
12/27/13 11:03
Joined: Dec 2013
Posts: 10
A
AttilaZ Offline OP
Newbie
AttilaZ  Offline OP
Newbie
A

Joined: Dec 2013
Posts: 10
Okay, will try to reproduce and also introduce SCM (git) as usual, as this code is from last week laugh

Re: info command [Re: AttilaZ] #434815
12/27/13 16:09
12/27/13 16:09
Joined: Dec 2013
Posts: 10
A
AttilaZ Offline OP
Newbie
AttilaZ  Offline OP
Newbie
A

Joined: Dec 2013
Posts: 10
Can no longer reproduce this, sorry for the inconvenience.


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