Hello everyone,
I’m trying to optimise a custom indicator (with lost of input parameters) and have watched the optimisation video tutorials on how one might add in the optimisation variables for an MA crossover system. This is a crossover system too but is based on TSI.
Ive defined the two variables I want to optimise and the step intervals etc…
I have the below in the code:
// Conditions to enter long positions
indicator2, indicator1, ignored, ignored, ignored = CALL "TSI-on-TSI"[1, 0, 2, 10, 20, 100, 0.85, 1, 0.35, 0.002, 10, 50, 2, 13, 0, 14, 15, 10, 100, 4, 0, 14]
c1 = (indicator1 > indicator2)
So I change the specific numerical values of the inputs I want to optimise to the label I have defined like is shown in the tutorial. I end up with this:
// Conditions to enter long positions
indicator2, indicator1, ignored, ignored, ignored = CALL "TSI-on-TSI"[1, 0, 2, 10, 20, 100, 0.85, 1, 0.35, 0.002, 10, 50, [short], [long], 0, 14, 15, 10, 100, 4, 0, 14]
c1 = (indicator1 > indicator2)
Obviously I do this for entering short positions and exiting positions too.
But I always end up with a syntax error?
Anyone give me any pointers where I’m going wrong?
Many Thanks