Page 1 of 1

Random Error -1: nil

PostPosted: Thu Oct 06, 2016 5:20 pm
by shortbutlucky
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.

Re: Random Error -1: nil

PostPosted: Fri Oct 07, 2016 8:17 am
by Apprentice
TMACS v1 (1).lua
(37.8 KiB) Downloaded 884 times

Re: Random Error -1: nil

PostPosted: Fri Oct 07, 2016 11:22 am
by shortbutlucky
You're the man. Donated $20

Re: Random Error -1: nil

PostPosted: Fri Oct 07, 2016 12:14 pm
by shortbutlucky
Almost actually,

It appears there's still one random error. =/ How did you fix the major one? Either way, attached is a screenshot. This looks much better than it used to for sure.

Regards,
Robby

Re: Random Error -1: nil

PostPosted: Fri Oct 07, 2016 12:31 pm
by shortbutlucky
Added error causing settings and log for added reference. (sorry for reply spam, need approval for post, so can't edit)

Re: Random Error -1: nil

PostPosted: Wed Oct 12, 2016 3:02 am
by Apprentice
For debugging.
Can you provide more information.
Testing method (Live / Demo/ Backtester/ Simulator).

For me, it would be easier to write a new strategy.
Can you at least describe your trading ideas.