Hi Iaz,

I have tested this and it when looping through two Assets and Asset 1 is in a trade, whilst in the loop for Asset 2 (which is not in a trade) NumOpenTotal = 1! Which leads me to believe that the statistic is aggregated for the Algo and not just the asset. I get around this by using NumOpenShort == 0 && NumOpenLong == 0 which is specific to the asset.

Regards,
Jas

Last edited by j45p41; 08/15/19 19:11.