Hi all. I'm looking to be able to send an HTTP request whenever an order is placed on NT via the dom or chart trader. I do not want to have to trade any differently than I already am, I just want a transparent method for sending an HTTP request whenever I do trade.
In speaking with NT, they say there are not any supported/documented ways for an indicator to do this. I also cannot find any information out there about any undocumented methods for an indicator to listen for order execution.
// Example #2
// Generic execution logic not specific to a particular IOrder object
protected override void OnExecution(IExecution execution)
// Remember to check the underlying IOrder object for null before trying to access its properties
if (execution.Order != null && execution.Order.OrderState == OrderState.Filled)
I haven't used NT in a long while, but quite certain that won't work. OnExecution() would only work for orders the strategy itself execute.
There are other undocumented hooks. I think if you look at some of the more complex examples on futures.io (formerly BMT) Elite section you'll find code that uses these hooks already. I just can't give a specific link, since I don't use these tools I only have a passing knowledge of them.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post: