NexusFi: Find Your Edge


Home Menu

 





Unmanaged vs Managed orders


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Xeno with 9 posts (3 thanks)
    2. looks_two eman with 5 posts (7 thanks)
    3. looks_3 edgefirst with 4 posts (4 thanks)
    4. looks_4 baruchs with 3 posts (3 thanks)
      Best Posters
    1. looks_one eman with 1.4 thanks per post
    2. looks_two NinjaTrader with 1.3 thanks per post
    3. looks_3 edgefirst with 1 thanks per post
    4. looks_4 Xeno with 0.3 thanks per post
    1. trending_up 16,015 views
    2. thumb_up 23 thanks given
    3. group 9 followers
    1. forum 34 posts
    2. attach_file 0 attachments




 
Search this Thread

Unmanaged vs Managed orders

  #31 (permalink)
chuso
Madrid/Spain
 
Posts: 3 since Nov 2012
Thanks Given: 1
Thanks Received: 0


baruchs View Post
The only benefit of using "unmanaged" is the ability to submit Long and Short at the same time, even that can be manipulated in the "managed".

Can you tell me how to send a long and short order at same time in managed?


Regards

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #32 (permalink)
 baruchs 
Israel
 
Experience: Intermediate
Platform: NinjaTrader
Broker: pfg
Trading: eminis
Posts: 323 since Jun 2009


chuso View Post
Can you tell me how to send a long and short order at same time in managed?


Regards

You can't.
What you can do is - calculate a middle point btw the long and short price and below it issue a long limit and cancel short limit, if was issued, and vs. On the next bar if was not triggered recalculate.

Baruch

Reply With Quote
  #33 (permalink)
 sburtt 
London, UK
 
Experience: Advanced
Platform: NinjaTrader
Trading: EUR/USD
Posts: 58 since Jul 2012
Thanks Given: 3
Thanks Received: 4


Hi baruchs
I know your post is 2 years old, but could you please elaborate more on this concept. I've been trying to find a way around this for a while, but with no success. Thanks


baruchs View Post
The only benefit of using "unmanaged" is the ability to submit Long and Short at the same time, even that can be manipulated in the "managed".


Reply With Quote
  #34 (permalink)
 yeshe 
San Fransisco Ca
 
Experience: Intermediate
Platform: Ninjatrader
Broker: IB
Trading: forex
Posts: 17 since Jan 2014
Thanks Given: 5
Thanks Received: 1


baruchs View Post
You can't.
What you can do is - calculate a middle point btw the long and short price and below it issue a long limit and cancel short limit, if was issued, and vs. On the next bar if was not triggered recalculate.

Baruch

This is an interesting post and would like to add the following. Hopefully someone has found a good solution for the following.

being flat
shortlimit is active
longlimit becomes active

NT will ignore the longlimit in the managed approach because of the trading rules.

solution:
cancel shortlimit first
then activate longlimit

but:
if you put this code close to each other the Nt core will not have enough time to cancel the shortlimit and you end up again with the ignored longlimit.
There needs to be at least one bar in between the cancel of shortlimit and the activation of longlimit.
So you will have to cancel shortlimit on bar 0 and activate longlimit on bar 1
problem: you activate 1 bar too late with possible missed trading opportunities


solution:
use smaller time frame to cancel the shortlimit on bar 0 and activate the longlimit 1 bar later on the smaller timeframe. Use the other logic on you regular timeframe.


but:
this will make your overall performance slower, for example i am running into crashing NT during WFO because i am using lower time frame (1 minute) for 0 bar cancelling and 1 bar later activating. At the same time the main logic of the code is still running on the higher time frame.




Question:
Did anyone find a solution for this.
Maybe it is time to step to the unmanaged approach?


regards

Reply With Quote
  #35 (permalink)
john3318
Portland Oregon
 
Posts: 2 since Jan 2015
Thanks Given: 0
Thanks Received: 1

Use:

OnOrderUpdate(IOrder order)
{
if(order.Name == nameOfShortLimit && order.OrderState == orderState.Canceled)
{
//Enter Long Limit
}
}

Reply With Quote




Last Updated on March 6, 2015


© 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