Anomaly on a snippet
3 replies
Aschab
10 years ago #114530
I created an extended Equity Control, with a series of logs for testing purposes:
0
Tomas Matejka
10 years ago #134524
Hello, do you use same versions of QA in both cases?
0
Aschab
10 years ago #134525
I got the free trial, is that a problem?
0
Tamas
10 years ago #134526
Hello Aschab,
I think the problem is that you define a “StopValue” as a double value
addDoubleParameter(“StopValue”, “Stop Trading Value”, 1.5d, 0d, 200d, 0.1d);
but in the code bellow you get it as Integer which removes the decimal part of value
double stopv = getIntParameterValue(“StopValue”);
Best regards,
Tomas
0
Viewing 3 replies - 1 through 3 (of 3 total)