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)
Need Help with simple strategy on canceling orders
So im trying to write a simple strategy that makes a market based on bollinger bands. It's very basic so far and I have it to a point where I can offer or bid at the price I want. What im trying to do is cancel the sitting orders if price crosses the mid point of the bollingers. The strategy so far places an order based on price in relation to the 20 period ma for a bollinger. I'm either offering or bidding at the extreme bands, if price is above the 20 period ma im offering, below and im bidding. What I need to do is cancel the previous order if price doesnt fill me and moves above or below the ma. Heres the code I have so far. It will place a singal order but wont remove it and place a new one if price crosses the middle band. Any help would be greatly appreciated. I've looked at the ninjatrader help for strategies and it doesn't help me much.