HELP!
Can someone tell me why this script causes eSignal to completely crash. Perhaps only eSigal rep should test this; I wouldn't want any traders to mess up their system trying this.
I run it up on 5-min chart of ES #F, and eSig bites the dust.
Thanks,
Mikey
Can someone tell me why this script causes eSignal to completely crash. Perhaps only eSigal rep should test this; I wouldn't want any traders to mess up their system trying this.
I run it up on 5-min chart of ES #F, and eSig bites the dust.
PHP Code:
function preMain() {
}
function main() {
var vATR, vATR1;
var study = new ATRStudy(14);
vATR = rnd(study.getValue(ATRStudy.ATR), 2);
vATR1 = rnd(study.getValue(ATRStudy.ATR, -1), 2);
debugPrintln("ATR=" + vATR + ", ATR1=" + vATR1);
return new Array(vATR, vATR1);
}
// Round to N digits.
function rnd(value, N) {
var n;
var mult=1;
for(n=0;n<N;n++) mult*=10;
value*=mult;
return Math.round( value,N)/mult;
}
Thanks,
Mikey
Comment