Hey All,
Attached is a strategy I developed, but I seem to get an error that I can't track down. Typically, an error will point to a line in the code, obviously, but this error just outputs, "-1". For example:
C:/Program Files (x86)/Candleworks/FXTS2/Strategies/Custom/TMACS v1.lua:-1: nil
It only works with certain parameters, so a typical optimization cycle is scattered with random nil errors. What's more annoying, is I can't seem to duplicate the error when backtesting in Indicore. Super weird.
Any ideas would be greatly appreciated.