I'm new to NinjaTrader and I'm trying to create a bot that sends me a message and a screenshot every time I send an order (manually., but when I try to apply the method OnExecutionUpdate it fails telling me "No suitable method to override".
I don't know what's wrong although the code is pretty simple.
protected override void OnExecutionUpdate(Execution execution, string executionId, double price, int quantity, MarketPosition marketPosition, string orderId, DateTime time)
{
// Check the underlying Order object for null before trying to access its properties
if (execution.Order != null && execution.Order.OrderState == OrderState.Filled)
{
sendCombiMessage();
}
}
Being sendCombiMessage the function that sends the message to Telegram (I tested It and it works)
I tried to avoid the error removing 'override' but then it does nothing.
Thanks in advance
EDIT: I have solved it changing from Indicator to Strategy.

Comment