maybe this is a very simple question, but I need to be alerted by email whenever a order (from a ninjascript strategy) is filled. I know about the sendmail() function, and it works, but I do not know the way to trigger it for "automatic" orders like Stop Losses and Exit on Close. I suppose it will be through the OnOrderUpdate method, but I would need some sort of example...
Un saludo,
Pablo
Comment