As this is my first post I wanted to start by thanking Ray and Dierk et al, for the great forum, which I find to be an invaluable learning tool, and very necessary despite my other programming experience !! I still have a lot to learn about C# !!
I have just started trading a strategy live, and want to make it more robust, hence the direction of my queries.
1. I note the Ninja reference manual discusses Live Options, particularly Error handling, but cannot find a list of order error codes. Is there one? I simply wanted to email my mobile on a “strategy stop, cancel and close”.
2. Could some kind person post an example of order error trap coding? Similarly an example of System.Exception level trapping to generate an email would be appreciated !
3. Also when a position with stop loss, is stopped out, is there a system data field/variable to advise this?
4. Finally is there a way to apply a template to a chart within a strategies code? (or add an indicator to panel 2 within the strategy code? )
Thanking you in advance
Aussie2
a contented Ninja trader

Comment