Floating-Point Division by Zero Error Message

From MultiCharts
Revision as of 05:49, 27 June 2016 by Henry Multicharts (Talk | contribs) (Floating-Point Division by Zero Error Message)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This message may pop up in MultiCharts and/or portfolio Trader during your study calculation. Floating point error means that there is a division by a zero value in your code. It can be a variable, input, or a function in use that returns zero value. You need to identify this variable/input/function and make sure that the returned value is not zero.

You can use the Print keyword to output the values utilized in the script:


var: vrs(0);
if vrs=0 then raiseruntimeerror("!!!alarm vrs=0");
if vrs<>0 then