NexusFi: Find Your Edge


Home Menu

 





How to automatically set limit orders


Discussion in NinjaTrader

Updated
    1. trending_up 1,469 views
    2. thumb_up 2 thanks given
    3. group 5 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
richw's Avatar
 richw 
Salt Lake City, UT
Legendary Market Wizard in Training
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
Posts: 1,917 since May 2010
Thanks Given: 2,318
Thanks Received: 1,621

Instead of having to create orders automatically, is there a way that I could have additional limit or market orders created automatically once I enter a trade? For example, I enter a long position with 1 contract at 20000 in NQ. What I would like to have happen is then have two or more buy limit or market orders placed for set numbers of contracts at set intervals below the initial entry, say 100 ticks apart as an example. I would also want to have the stop set automatically and have the stop automatically increment the number of contracts as the orders are filled. How could I accomplish this?

Another variation could be some mechanism for placing all of the trades at the same time. Then, I could adjust them by hand as needed, but I think I would prefer the first option.


Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Friday Update: Markets Now Pricing Fed Rate HIKES as Sta …
Traders Hideout
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Kalshi Rockets to $22B, Passes Polymarket in Volume -- B …
Prediction Markets & Event Contracts
Q1 2026 Shatters All Derivatives Volume Records -- CME H …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
5 thanks
  #2 (permalink)
 Belltalks 
Chicago US
 
Experience: Intermediate
Platform: NinjaTrader
Trading: CL GC
Posts: 31 since May 2016
Thanks Given: 6
Thanks Received: 16


richw View Post
Instead of having to create orders automatically, is there a way that I could have additional limit or market orders created automatically once I enter a trade? For example, I enter a long position with 1 contract at 20000 in NQ. What I would like to have happen is then have two or more buy limit or market orders placed for set numbers of contracts at set intervals below the initial entry, say 100 ticks apart as an example. I would also want to have the stop set automatically and have the stop automatically increment the number of contracts as the orders are filled. How could I accomplish this?

Another variation could be some mechanism for placing all of the trades at the same time. Then, I could adjust them by hand as needed, but I think I would prefer the first option.

Yes, that's possible. I do it by labelling entry orders so that I'm able to manage fills of those orders to transmit associated OCO orders.
Management of those entries can be achieved with the OnExecutionUpdate function.
Take a look to the info in the following link, what you are requesting should be easily adaptable from the examples:
https://forum.ninjatrader.com/forum/ninjatrader-8/strategy-development/1209799-samples-of-onexecutionupdate-trying-to-reverse-trade-on-some-of-my-stops

I hope it helps.


Reply With Quote
Thanked by:
  #3 (permalink)
 bmw421 
New Orleans Louisiana
 
Experience: Intermediate
Platform: ninjatrader
Trading: futures
Posts: 7 since Jul 2013
Thanks Given: 0
Thanks Received: 3



richw View Post
Instead of having to create orders automatically, is there a way that I could have additional limit or market orders created automatically once I enter a trade? For example, I enter a long position with 1 contract at 20000 in NQ. What I would like to have happen is then have two or more buy limit or market orders placed for set numbers of contracts at set intervals below the initial entry, say 100 ticks apart as an example. I would also want to have the stop set automatically and have the stop automatically increment the number of contracts as the orders are filled. How could I accomplish this?

Another variation could be some mechanism for placing all of the trades at the same time. Then, I could adjust them by hand as needed, but I think I would prefer the first option.

I just seen your post , have you tried a layering tool, where you enter at a certain price in 1 contract and it goes against you say by 15 ticks then enter 2 and if it still goes against you enter 5 where your average comes down with a stop at last entry stop out. When it reverses it's powerful .

I use 1-3-5 in MNQ to start and switch to 2-5-10 and see if that helps , you must practice it over and over.

Hope this helps
Wayne


Reply With Quote
Thanked by:
  #4 (permalink)
 
richw's Avatar
 richw 
Salt Lake City, UT
Legendary Market Wizard in Training
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES, NQ, YM
Posts: 1,917 since May 2010
Thanks Given: 2,318
Thanks Received: 1,621

How has this strategy worked for you over time? I would like to discuss this further with you, if possible.


bmw421 View Post
I just seen your post , have you tried a layering tool, where you enter at a certain price in 1 contract and it goes against you say by 15 ticks then enter 2 and if it still goes against you enter 5 where your average comes down with a stop at last entry stop out. When it reverses it's powerful .

I use 1-3-5 in MNQ to start and switch to 2-5-10 and see if that helps , you must practice it over and over.

Hope this helps
Wayne


Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on October 11, 2024


© 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