I see that the order long/short might play a small role in the Test phase, when perhaps both orders compete for entry at the same bar. But I think this would be rare -- it would have to mean that both adviseLong and adviseShort return True in Test mode at a certain bar.

But, anyway, that's not what happening. I am getting different generated code in Data/ . Meaning Zorro's Train output is depending on the order of adviseLong/adviseShort. That shouldn't happen.