Programming another limit order if order isn't filled? - futures io
futures io futures trading



Programming another limit order if order isn't filled?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one ericson with 2 posts (0 thanks)
    2. looks_two gregid with 2 posts (2 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 MrYou with 1 posts (0 thanks)
    1. trending_up 1,429 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Programming another limit order if order isn't filled?

(login for full post details)
  #1 (permalink)
Sacramento, CA
 
Experience: Advanced
Platform: NinjaTrader
Broker: NA
Trading: Stocks, Forex
 
Posts: 64 since Nov 2013
Thanks: 14 given, 19 received

So i am doing limit orders for cash forex and sometimes it isn't filled. So how do i program or what do i use to check if it was cancelled and then send a new limit order to get the next best fill?

I've been looking at IOrder and and OrderState.Accepted and OrderState.Cancelled. Has anyone run into this?

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Neurological explanations for trading Success
Psychology and Money Management
Where can I find Cost to Trade and Book Depth info?
Emini and Emicro Index
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Which kind of Blockvolume is visible? - order processing
Emini and Emicro Index
Cross border fund flows / fx correlations
Treasury Notes and Bonds
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Big Mike in Ecuador
30 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
 
(login for full post details)
  #3 (permalink)
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
 
gregid's Avatar
 
Posts: 651 since Aug 2009
Thanks: 320 given, 620 received


Yes, you will have to use IOrders for this. Check the reference sample from NT forums:
Strategy: Using OnOrderUpdate() and OnExecution() methods to submit protective orders - NinjaTrader Support Forum

This should give you a place to start.

Reply With Quote
The following user says Thank You to gregid for this post:
 
(login for full post details)
  #4 (permalink)
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
 
MrYou's Avatar
 
Posts: 403 since Jun 2011
Thanks: 618 given, 196 received


ericson View Post
So i am doing limit orders for cash forex and sometimes it isn't filled. So how do i program or what do i use to check if it was cancelled and then send a new limit order to get the next best fill?

I've been looking at IOrder and and OrderState.Accepted and OrderState.Cancelled. Has anyone run into this?

If you're using managed orders doesn't it submit a new order on the next bar if the rules are still valid?

Reply With Quote
 
(login for full post details)
  #5 (permalink)
Sacramento, CA
 
Experience: Advanced
Platform: NinjaTrader
Broker: NA
Trading: Stocks, Forex
 
Posts: 64 since Nov 2013
Thanks: 14 given, 19 received

Good question which I dont have the answer to but would like to know also.

Started this thread Reply With Quote
 
(login for full post details)
  #6 (permalink)
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
 
gregid's Avatar
 
Posts: 651 since Aug 2009
Thanks: 320 given, 620 received


MrYou View Post
If you're using managed orders doesn't it submit a new order on the next bar if the rules are still valid?

It depends on what parameters you use:

EnterLongLimit(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double limitPrice, string signalName)

If liveUntilCancelled == true, then it will keep submitting the order until CancelOrder() is called untill reaching TimeInForce condition

NinjaTrader Version 7

Reply With Quote
The following user says Thank You to gregid for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > Programming another limit order if order isn't filled?


Last Updated on January 28, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts