Jeff Brown![]() Member ![]() Posts: 31 Joined: 1/29/2008 ![]() | Jim, I agree with you that the logic of the iif should have ZERO impact on the calculation and the Trade Ranking with it should be exactly the same as without it. However, the results are clearly different. Mach 5 uses VTY_PRICE(4,1). Mach 5 v2 uses iif or ATR. See the difference? Results run with iif: The Trade Ranking code: Results run without iif: The Trade Ranking code: Also note that neither iif, nor ATR, when directly used instead of VTY_PRICE produce the exact same results (as Mach 5). If our formula is the same, then all 3 should agree. I'll dig into the Temp directory and see if I can see the difference in the code that actually gets compiled. But I think I'm going to end up concluding that "something's happening under the hood that I can't see that is creating the different results." [Edited by Jeff Brown on 3/5/2018 8:19 PM] ![]() ![]() ![]() ![]() |