I have an efs study that has various function parameters defined in preMain. These include the start day, month, year and end day, month, year. I also have an 'optimisation' button function defined that allows me to run multiple iterations of the study for incremental changes in some of the parameters such as stop loss and DMI length to determine which values give the best result.
I want to be able to use some of the defined function parameters in this optimisation function. For example I always want to run it against the same dates of data to have a meaningful comparison.
I can see that it is not possible to do this by passing parameters as part of the drawTextAbsolute command and I have seen various comments about setting the function parameters as global variables. However when I try to do this I get an undefined variable error message.
How am I supposed to define the global variables?
I want to be able to use some of the defined function parameters in this optimisation function. For example I always want to run it against the same dates of data to have a meaningful comparison.
I can see that it is not possible to do this by passing parameters as part of the drawTextAbsolute command and I have seen various comments about setting the function parameters as global variables. However when I try to do this I get an undefined variable error message.
How am I supposed to define the global variables?
Comment