Hi TipmyPip,

during searching something i stumbled over your thread. Looks very nice and impressive, started to read from page 1. I dont have optionsdata so i skipped that part. But your Gaussian channel adaptive moving average strategy made me curious.
I copied your code and tried it on my Zorro. unfortunately i get a lot of compiler errors. Did you run those scripts with zorro? Or are they only fictional ZorroGPT generated codes based on your (very interesting) prompts?

partially the script is not in lite-c at all:

var filt = pow(a, i) * s + i * x * f[1] - (i >= 2 ? 36 * pow(x, 2) * f[2] : 0) + (i >= 3 ? 84 * pow(x, 3) * f[3] : 0)
- (i >= 4 ? 126 * pow(x, 4) * f[4] : 0) + (i >= 5 ? 126 * pow(x, 5) * f[5] : 0) - (i >= 6 ? 84 * pow(x, 6) * f[6] : 0)
+ (i >= 7 ? 36 * pow(x, 7) * f[7] : 0) - (i >= 8 ? 9 * pow(x, 8) * f[8] : 0) + (i == 9 ? 1 * pow(x, 9) * f[9] : 0);

the "?" in between doesnt belong to the syntax of Zorro as far as i learned until now. at least i could not find it nor in expressions neither in comparisons ... or somewhere else. Is that in python?
Besides that, there a re a lot syntax errors, misplacement of functions (does call first, and declare afterwards) and not defined variables at all ... its a shame i am not smart enough to figure out the formulas and the code by myself.
Will there be a debug attempt ... maybe anyone else?

Thanks and kind regards

M_D

Last edited by M_D; 01/13/25 01:52.