How to optimise a custom indicator?

Forums ProRealTime English forum ProOrder support How to optimise a custom indicator?

Viewing 8 posts - 1 through 8 (of 8 total)
  • #102726

    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:

     

     

    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:

     

     

     

    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

    #102727

    Please confirm you are using the Optimiser??

    Your code above look as though you are hard coding the step intervals etc into your System code??

    #102730

    If you want to use the optimiser, replace the numbers with variables names you add in the optimization settings window, that’s where you control the start/end and step of each value.

    If the 2 variables names are short and long, then you are good, but remove the brackets!!

    #102745

    VPT PRT – Please try to remember to use the ‘Insert PRT Code’ button when posting code. I have tidied up your post for you 🙂

    #102758

    Thanks for the help gents.  I’ve removed the brackets and started the optimisation several times which it now lets me do (no syntax error) but the optimisation never starts (just says 0%) then I get this error window?

    #102760

    Thank you for tidying up the post – will do!

    #102763

    That’s a generic error message that could mean a lot of things..

    Look for any division made in the code and ensure that no division by zero is possible.

    #102765

    Try using variable for ALL parameters, then comment out the ones you want to optimize (p13 and p14), until they are ok:

     

Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login