In the strategy I have several private variables calculated.
How can I test all possibilities to find out what set has the best results?
For example do the long trade if int a = -1, int b = 0, int c = 1 and to exit long trade if a = 1.
variables a, b, c I calculate base on indicators and correlation to the price.
Beside the checking the results based on the variables, part of the conditions are as well price leve compared to some indicator f.e. close[0] < ema[0]. how can I check if results are better if there is a sign '>' and not '<'?
Comment