I'm starting with Lua programming. Could you tell me if there is any function, method or cookie that I can use when a trade close (limit or stop is triggered). I want to do a series of actions immediately after this happens. A small example would be very useful.
Thanks