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 having some trouble getting my Limit Orders to Cancel on this Ninja Script... would really appreciate it if some kind soul could take a look and help me out...
also attached the file
Thanks!
Can you help answer these questions from other members on NexusFi?
I don't have any experience with IOrder actually, I just never needed it I guess. Perhaps some other people will, and they can examine the code more closely.
Hm ... maybe there is a timing problem. LimitOrders are only active for one bar. If you want to cancel the order manually it could be already cancelled by NT?
What is the detailed error-message? What says the log-tab?
from my discussions with Josh, apparently i should be able to use ticks as a criteria to cancel limit orders too... the issue i'm noticing is when i get to the part which contains the cancellation logic... its not executing... yet for what its worth it seems sound...
I believe you have to put some Print(..) statements in your code.
What are the values of the order-variables, what is the place in your code
which is executed and which is not ...
Darth,
absolutly none... not a single error at all... just isn't reading the order.LimitPrice variable... which is odd because shouldn't be an issue being in the OnOrderUpdate() section...
It might be useful to post a video illustrating exactly what is occurring. You might try the jing software package (free) if you need one for video capturing.
BigDog,
I've tried to get this strat to place orders but was having no luck. I've commented out some of the lines you've been using and am able to get orders to go.
Now for your question. If you cancel the orders, is it due to a no-fill and then you just want to re-position the limit to the new Median[0] +/- 2ticks? or is it time based?