{Exception}Floating-Point division by zero, signal only.  [SOLVED]

Questions about MultiCharts and user contributed studies.
Rick Webber
Posts: 47
Joined: 04 Jan 2008
Has thanked: 21 times
Been thanked: 3 times

{Exception}Floating-Point division by zero, signal only.

Postby Rick Webber » 21 Sep 2015

I am getting an {Exception} "Floating-point division by zero" when applying one particular function in a strategy to a chart but have no problem at all when this function is used in a indicator and plotted. I don't think the coding is the main problem and am hoping someone might be able to suggest what else might possibly cause this. All divisions are tucked into Iff statements. Thanks in advance.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: {Exception}Floating-Point division by zero, signal only.  [SOLVED]

Postby TJ » 21 Sep 2015

I am getting an {Exception} "Floating-point division by zero" when applying one particular function in a strategy to a chart but have no problem at all when this function is used in a indicator and plotted. I don't think the coding is the main problem and am hoping someone might be able to suggest what else might possibly cause this. All divisions are tucked into Iff statements. Thanks in advance.
You can insert a PRINT statement before your division.
You can print out the denominator before your division.


Return to “MultiCharts”