I have tried to implement sigScale In in my codes according to Example 1 from the following entry: Portfolio-level back testing .However, I am unable to make it work. Take the following simple code as an example:
Buy Condition 1 will always be true whenever Buy Condition 2 is true. Therefore, your nested IIf will always set the Buy array to 1, not sigScaleIn. Try switching the order of the nesting to check for the most restrictive condition first.