How can I verify if an trader was open

 

Hello.

I want to save in txt same values when an trader was open.

I thing that the best way is in each tick, verify if an trader was opened...

How Can I do this?

I need to verify if an trader was opened and to verify this, in each tick...

Thanks for help...

Reason: