NexusFi: Find Your Edge


Home Menu

 





Resting orders.


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one turkmay with 3 posts (0 thanks)
    2. looks_two NJAMC with 3 posts (4 thanks)
    3. looks_3 monpere with 2 posts (1 thanks)
    4. looks_4 Big Mike with 1 posts (1 thanks)
    1. trending_up 2,507 views
    2. thumb_up 6 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread

Resting orders.

  #1 (permalink)
 turkmay 
New Orleans
 
Experience: Advanced
Platform: Ninja
Broker: IB
Trading: TF
Posts: 82 since Mar 2010
Thanks Given: 51
Thanks Received: 138

As most of you know, NT will not allow 2 resting orders. Why this is the case God only knows. I did receive a horribly difficult to understand work around from NT support. But, as always, am looking for the easy way out.

HERE'S WHAT I WANT TO DO: Place a resting BUY order a few ticks above the opening range and a resting SELL order a few ticks below. The only thing I can figure out is to rest one order and, if it goes the other way, manually fill the other. But I would like to somehow get it automated.

Does anyone have the answer to this delima? I thank you in advance!!!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
21 thanks
My NQ Trading Journal
19 thanks
Tao te Trade: way of the WLD
16 thanks
HumbleTraders next chapter
9 thanks
  #2 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394

Are you trying to do an OCO bracket around the opening price?

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371



turkmay View Post
As most of you know, NT will not allow 2 resting orders. Why this is the case God only knows. I did receive a horribly difficult to understand work around from NT support. But, as always, am looking for the easy way out.

HERE'S WHAT I WANT TO DO: Place a resting BUY order a few ticks above the opening range and a resting SELL order a few ticks below. The only thing I can figure out is to rest one order and, if it goes the other way, manually fill the other. But I would like to somehow get it automated.

Does anyone have the answer to this delima? I thank you in advance!!!

You should be able to to place multiple resting orders anywhere using 'Unmanaged' orders because they bypass the NT internal order entry rules. But you will have to code the associated order management yourself.

Reply With Quote
Thanked by:
  #4 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394


monpere View Post
You should be able to to place multiple resting orders anywhere using 'Unmanaged' orders because they bypass the NT internal order entry rules. But you will have to code the associated order management yourself.

This is a feature built into the LOM project. One of the main reasons I developed it. Somewhere there was a discussion you might be able to do a similar thing with Managed but I think they had to be sent as OCO pairs or they would be rejected by NT or your Broker.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 turkmay 
New Orleans
 
Experience: Advanced
Platform: Ninja
Broker: IB
Trading: TF
Posts: 82 since Mar 2010
Thanks Given: 51
Thanks Received: 138

Thanks guys. The unmanaged self-coded is what NT support offered but is way above my expertise. I DO want this order sent OCO.

Started this thread Reply With Quote
  #6 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394


turkmay View Post
Thanks guys. The unmanaged self-coded is what NT support offered but is way above my expertise. I DO want this order sent OCO.

I would recommend using and helping to develop the Unmanaged order class LOM:


There is a Wiki as well. I have set a goal of this project to expose complex orders and order management features to less experience programmers. This system is far from debugged and of course it is still under development. I will bring your attention to the following function:
publicbool GoMarketBracket(int m_SharesTraded,int m_TickBuffer,int m_PositionNumber)
publicbool GoMarketBracket(int m_SharesTraded,double low,double high,int m_PositionNumber)

This will create an unmanaged OCO order which triggers a Market order to buy/sell depending upon the trigger. I will likely update this later so you can setup a Limit on the order rather than market.

If you use this system, be careful and test it extensively before risking real money.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
 turkmay 
New Orleans
 
Experience: Advanced
Platform: Ninja
Broker: IB
Trading: TF
Posts: 82 since Mar 2010
Thanks Given: 51
Thanks Received: 138

There is a system seller named Markus Heikotter who hawks a "Seahawk" scalp method. I once saw one of his promotional videos and it is, basically, a resting long a tick above the current bar and resting short a tick below (oco). He placed these resting orders with a single click. I don't know if this was proprietary but he was running Trade Navigator. I just went to the TG site and their platinum edition ($2495) has a feature called "next bar open" which sounds, sort of, what we're looking for. Don't know if this is any help at all but may be wroth investigating.

Started this thread Reply With Quote
  #8 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371


NJAMC View Post
I would recommend using and helping to develop the Unmanaged order class LOM:


There is a Wiki as well. I have set a goal of this project to expose complex orders and order management features to less experience programmers. This system is far from debugged and of course it is still under development. I will bring your attention to the following function:
publicbool GoMarketBracket(int m_SharesTraded,int m_TickBuffer,int m_PositionNumber)
publicbool GoMarketBracket(int m_SharesTraded,double low,double high,int m_PositionNumber)

This will create an unmanaged OCO order which triggers a Market order to buy/sell depending upon the trigger. I will likely update this later so you can setup a Limit on the order rather than market.

If you use this system, be careful and test it extensively before risking real money.

Just took a cursory look at the docs, that seems like pretty complicated coding. How about having an interface that just duplicates the standard NT methods like EnterLong(), EnterShortStopLimit(), etc. That way it hides the complexities of the system, and presents an interface that is already familiar to the user, similar to how gomi has GomInitialize(), GomOnBarUpdate(), etc.

Reply With Quote
  #9 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,207
Thanks Received: 101,599


monpere View Post
Just took a cursory look at the docs, that seems like pretty complicated coding. How about having an interface that just duplicates the standard NT methods like EnterLong(), EnterShortStopLimit(), etc. That way it hides the complexities of the system, and presents an interface that is already familiar to the user, similar to how gomi has GomInitialize(), GomOnBarUpdate(), etc.

Better to post in the LOM thread I would say..



Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on March 18, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts