I have been reviewing some extensive backtesting and realised that I may have had an error in my code.
To simplify things I have one part that states (A || B && C) where A, B and C are different conditions that need to be true for a trade to be placed.
I want the test to return true if A is true irrespective of B or C.
If A is false I want the test to return true only if both B and C are true.
I believe I should have coded it with extra brackets as (A || (B && C)).
However I do not want to make the change and rerun the tests (which has taken me days to do) unless I have to.
So based on how I currently have it coded what will the test return if A is false and either of B or C is false?
To simplify things I have one part that states (A || B && C) where A, B and C are different conditions that need to be true for a trade to be placed.
I want the test to return true if A is true irrespective of B or C.
If A is false I want the test to return true only if both B and C are true.
I believe I should have coded it with extra brackets as (A || (B && C)).
However I do not want to make the change and rerun the tests (which has taken me days to do) unless I have to.
So based on how I currently have it coded what will the test return if A is false and either of B or C is false?
Comment