I'm using the language reference to set up text messages via email that are meant to go out whenever the strategy executes a trade (in or out).
I set up two share services: Email and Text.
I've included this code into the strategy:
protected override void OnExecutionUpdate(Execution execution, string executionId, double price, int quantity, MarketPosition marketPosition, string orderId, DateTime time) { Share("Text", orderId, new object[]{ "[email protected]", orderId }); }
Is this how you would do it for email to text? If not, what would be different?
Edit:
Including screenshot of an error I am getting in playback
Comment