I just tried the above code in 1.80.8 and TradeIsEntry is still not working (it's always False).

Does anyone know if there is there a bug with TradeIsEntry? If TradeIsEntry is working properly, would someone please provide me with a working example of how to use it.