Hallo everyone,
In case of back testing “Long only”, I want to arrange the scores from the largest positive (top of the array) to the largest negative (bottom of the array). We will then scan the array from top to bottom.
In case of back testing “Short only”, I want to arrange the scores from the largest negative (top of the array) to the largest positive (bottom of the array). We will then scan the array from top to bottom.
Only in the case of back testing “Long and Short”, I want to take the modulus of of all scores and then choose the biggest scores. And the backtesting engine would decide which of the chosen stocks would be “Long” and which would be “short”, depending on their original sign, current signal and last signal combination.
thanks in advanced