Can anyone provide me some guidance on how to do this? I am as green as it gets when programming for NinjaTrader, but I can learn quickly when I find the right pieces that I need.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Question about placing orders with automated strategy
Collapse
X
-
Question about placing orders with automated strategy
I want to build a strategy that automatically places multiple orders at intervals I specify and each one with a diferent number of contracts once the strategy is triggered. As the orders are filled, I want the target price to stay so many ticks above (if long, below if short, obviously) the average price of the entire position with the option to automatically change the target after a certain threshold is reached (e.g. - number of total contracts in position and/or number of ticks from first entry or indicator that triggered entry).
Can anyone provide me some guidance on how to do this? I am as green as it gets when programming for NinjaTrader, but I can learn quickly when I find the right pieces that I need.Tags: None
-
Hi richwaters,
If you are new to NinjScript, the strategy wizard is a good first place to start. This allows you to create conditions in point and click interface:
Help on the strategy development process is here:
If you are interested in getting this coded right away, a NinjaScript consultant is your best bet. These are NinjaTrader parteners who can be hired to write code to your specifications:
Ryan M.NinjaTrader Customer Service
-
Thank you, but I still need a pointer...
My strategy will be a little more advanced I think, and I want to do it myself so that I learn how to test other ideas.
How do I enter multiple orders once the condition has been triggered?
How do I adjust the target and stop once a strategy is going?
If the wizard can allow this, where do I enter the info? I have not seen an example showing these two pieces that I am missing.
Plus, I will eventually want to add onto this.
Comment
-
The number of positions accepted in a direction is controlled with EntriesPerDirection and EntryHandling Properties.
For dynamically changing stop loss orders, you must do this in code. We have a sample that can help with this here:
Ryan M.NinjaTrader Customer Service
Comment
-
Based upon another forum entry I found and this info...
I have the orders entering correctly now. Now, I am looking into the target and stop adjustments.
Thank you.
Comment
-
How do I do this?
For example, I want the EnterLongLimit price to be so many ticks below a Swing Low indicator. I cannot figure out how to do this.
Comment
-
I found the solution to my last question
I am still working my way through the entire strategy, though, and have run into more questions.
Originally posted by richwaters View PostFor example, I want the EnterLongLimit price to be so many ticks below a Swing Low indicator. I cannot figure out how to do this.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
639 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
572 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment