Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I'm trying to put together template for entry exit logic so it would be easy to code new strategies and got stuck on one portion where I can't close triggered long limit order. So, basically scenario is my 3 long limit orders are being triggered and when I try to to Exit long ninja doesn't close it, here is log from traceorder:
I did a check with print message, condition is being triggered with "ExitLong" statements, i'm really confused where else can be the problem :S Can you confirm that ExitLong would close triggered LongLimitOrder ? if it is then probably I will need to comment out everything and enable block by block
Are you sure NT is not ignoring the exits because they might violate their internal order rules? That's one of the reasons I now only use Unmanaged orders. You may want to also open a post on the NT support forum.
Thank you for your input, I don't see any errors related to the internal handling rules in logs. Also another question iOrder object, will it become null after order is closed? or it will still have details from the last order ?
The variable that holds the IOrder object will always contain the object untill you set the variable to null. The IOrder object itself will hold values in its properties for the order.
Thank you for your information! I got Visual Studio for debugging now it became waaay easier. Now I need another word of advice, on how to track\distinguish orders that hit TP and got closed at tp ? For example I have 3 orders rolling with 3 different target prices, orderstatus is filled. But I can't find the way to say which one is filled and which one is not, this is to close any open orders on opposite signal or to know when to clear iOrder objects. Thank you for your help everyone. Should I use opposite stop order to simulate TP ? and when its hit have action done on that event ? Limit order for TP and stop orders for SL ?