Floating Point Exception Error

Questions about MultiCharts and user contributed studies.
LTG
Posts: 30
Joined: 08 Sep 2009

Floating Point Exception Error

Postby LTG » 29 Mar 2010

I imported a few indicators from TS and haven't had much success getting them to load.

In fact I've been getting: Error in study {exception} floating-point invalid operation messages, can anyone offer any suggestions:

Code: Select all

Input:
LeftStrength(10),
RightStrength(2),
PatternName("GartleyBull"),
CheckPivotValue(true),
LeaveTempLines(false);

Vars:
nColor(0),
nDir(0),
nShift(0),
nShiftOpp(0),
nPrc(0),
nBar(0),
nPrcOpp(0),
iIdx(0),
nTLID(-1),
txtID(Symbol + "_PRR"),
ret1(0), ret2(0);
Array:
float arrVal1[100](0);

DefineDLLFunc: "PSS_PR.DLL", int , "PSS_PR_AddBar",INT,LPSTR,LONG,LONG,INT,int,LPLONG,LPLONG,LPLONG,LPLONG,INT;
DefineDLLFunc: "PSS_PR.DLL", int , "PSS_PR_CalcPat", INT,LPSTR,LONG,INT,INT,LPFLOAT,LPSTR;

nBar = BarNumber;
if CheckPivotValue = false then
nBar = -BarNumber;
ret1 = PSS_PR_AddBar(CustomerID,txtID,Date,Time,nBar,PriceScale,&Open,&High,&Low,&Close,Volume);
ret2 = PSS_PR_CalcPat(CustomerID,txtID,BarNumber,LeftStrength,RightStrength,&arrVal1[0],PatternName);
//print("ret2=",ret2,",",Date,",",Time);

if ret2 > 0 then
Plot1(arrVal1[0],"PRVal01");
if ret2 > 1 then
Plot2(arrVal1[1],"PRVal02");
if ret2 > 2 then
Plot3(arrVal1[2],"PRVal03");
if ret2 > 3 then
Plot4(arrVal1[3],"PRVal04");
if ret2 > 4 then
Plot5(arrVal1[4],"PRVal05");
if ret2 > 5 then
Plot6(arrVal1[5],"PRVal06");
if ret2 > 6 then
Plot7(arrVal1[6],"PRVal07");
if ret2 > 7 then
Plot8(arrVal1[7],"PRVal08");
if ret2 > 8 then
Plot9(arrVal1[8],"PRVal09");
if ret2 > 9 then
Plot10(arrVal1[9],"PRVal10");

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

Postby TJ » 29 Mar 2010

you should give more background info on the code.

LTG
Posts: 30
Joined: 08 Sep 2009

Postby LTG » 29 Mar 2010

Its supposed to be a pattern recognition engine from the folks at professional software solutions.

Based on inputs its supposed to plot swings similar to the gartley indicator but do in a much more efficient way.

To use this indicator requires 2 additional indicators but all have the same exception error so I only posted 1. Not sure what else I can add, hope that helps.

http://www.profsoftware.com/tsadd/

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

Postby TJ » 29 Mar 2010

Its supposed to be a pattern recognition engine from the folks at professional software solutions.

Based on inputs its supposed to plot swings similar to the gartley indicator but do in a much more efficient way.

To use this indicator requires 2 additional indicators but all have the same exception error so I only posted 1. Not sure what else I can add, hope that helps.

http://www.profsoftware.com/tsadd/

you have to pay to get the complete software.

LTG
Posts: 30
Joined: 08 Sep 2009

Postby LTG » 29 Mar 2010

Actually you're supposed to be able to trial it for 15 days first.


Return to “MultiCharts”