info command

Posted By: AttilaZ

info command - 12/22/13 04:16

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
Posted By: jcl

Re: info command - 12/23/13 07:35

No, the info command alone does not crash. It is probably something else in your script - can you post the complete code?
Posted By: AttilaZ

Re: info command - 12/27/13 09:01

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);
Posted By: jcl

Re: info command - 12/27/13 09:44

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.
Posted By: AttilaZ

Re: info command - 12/27/13 11:03

Okay, will try to reproduce and also introduce SCM (git) as usual, as this code is from last week laugh
Posted By: AttilaZ

Re: info command - 12/27/13 16:09

Can no longer reproduce this, sorry for the inconvenience.
© 2024 lite-C Forums