In my strategy, an email is automatically sent on the execution of any order.
I build the content of the email as such :
if(execution.Order.Name == "Profit target"){
mail_content = "Profit target at : " + execution.Price + Environment.NewLine;
}
etc...
It didn't require much testing. I just ran the strategy live in real time and checked the result.
How could I build a mail that contains HTML tags and some styling and test the output easily? If it's impossible, I'll send the email from an external script.
Thanks
Comment