NexusFi: Find Your Edge


Home Menu

 





Using Long and Short Stop Entries Simultaneously


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Genshin with 2 posts (0 thanks)
    2. looks_two baruchs with 1 posts (0 thanks)
    3. looks_3 decs0057 with 1 posts (1 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 2,209 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 Genshin 
Chicago, IL
 
Experience: Intermediate
Platform: Ninja Trader, Sierra Chart
Trading: ES, CL
Posts: 35 since Oct 2012
Thanks Given: 498
Thanks Received: 12

Trying to develop a strategy that places Stop entries at two indicator lines on both sides of the market. I'm using Unique entries that have already been declared:

 
Code
private IOrder entryOrder1 = null;
private IOrder entryOrder2 = null;
private IOrder entryOrder3 = null;
private IOrder entryOrder4 = null;
Then, where I want to enter the market I use:

 
Code
entryOrder1 = EnterLongStop(longEntry, "Long 1a");
entryOrder2 = EnterLongStop(longEntry, "Long 1b");
entryOrder3 = EnterShortStop(shortEntry, "Short 1a");
entryOrder4 = EnterShortStop(shortEntry, "Short 1b");
Where longEntry and shortEntry are equal the to indicator values. When I test, it places the long entries correctly, but simply doesn't place the short entries. The calculation is correct for shortEntry, so I was wondering if there was something that I don't know about how Ninja handles these orders. When I reverse the order and place the Shorts before the longs, it places the short stop entries correctly, but not the longs.

 
Code
EntriesPerDirection = 2;
EntryHandling = EntryHandling.UniqueEntries;
Any help is appreciated, thanks!


Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 decs0057 
Munich, Germany
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 73 since Feb 2010
Thanks Given: 15
Thanks Received: 25


It's not possible with managed approach to place long and short entry order on same bar. You have to use unmanaged approach


Reply With Quote
Thanked by:
  #4 (permalink)
 baruchs 
Israel
 
Experience: Intermediate
Platform: NinjaTrader
Broker: pfg
Trading: eminis
Posts: 323 since Jun 2009

or rotate.


Reply With Quote
  #5 (permalink)
 Genshin 
Chicago, IL
 
Experience: Intermediate
Platform: Ninja Trader, Sierra Chart
Trading: ES, CL
Posts: 35 since Oct 2012
Thanks Given: 498
Thanks Received: 12

Thank you! This has been frustrating me for some time...


Started this thread Reply With Quote




Last Updated on February 10, 2014


© 2026 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 - Downloads - Top
no new posts