Hi,
I ran into a issue with the Optimizer on a strategy I am working on, and was wondering if anyone had a better work around. I set two variables as inputs one being the maxgain which is a positive number, and maxloss as a negative number. When I try to change the start value of this variable I get a error. It tells me a incorrect value has been entered. Is there a way to use the Genetic Optimizer with a negative value ? I want to be able to vary the max loss to see where I get the best Risk/Reward ratio.
Thanks
Here is my code
input: maxGain(200),MaxLoss(-100);
Optimization Question
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Re: Optimization Question
Hi Thomas,Hi,
I ran into a issue with the Optimizer on a strategy I am working on, and was wondering if anyone had a better work around. I set two variables as inputs one being the maxgain which is a positive number, and maxloss as a negative number. When I try to change the start value of this variable I get a error. It tells me a incorrect value has been entered. Is there a way to use the Genetic Optimizer with a negative value ? I want to be able to vary the max loss to see where I get the best Risk/Reward ratio.
Thanks
Here is my code
input: maxGain(200),MaxLoss(-100);
Negative values can be used in the start and end inputs for optimization runs. You only need to pay attention to what value you are entering first. As you are entering those values, make sure that the start value is less than the end value. If you want you can come to LiveChat and we'll help setting that up for you.