Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Make more precise limit orders with automated trading ninjatrader 8
Collapse
X
-
Make more precise limit orders with automated trading ninjatrader 8
As it is (as far as I know) you can only place a market order with automated trading. Is there a way to create a limit order at the moment an alert is triggered instead of a market order? Market orders are so not precise and given the close tolerances in automated trading (I'm doing) my spreads are usually too wide. Thanks in advance for your answer.Tags: None
-
Hello wbayne333,
Thank you for your post.
A NinjaScript strategy is able to place Market orders, Limit orders, Market-If-Touched orders, Stop-Market orders, Stop-Limit orders, and more. Please see the help guide documentation below for more information about the different order types you are able to use.
Managed approach - https://ninjatrader.com/support/help...d_approach.htm
To place a Limit order at the same time an alert is triggered instead of a Market order, you could create a condition in your script that when it becomes true will trigger an Alert and place a Limit order using EnterLongLimit/EnterShortLimit.
This could be accomplished using the Strategy Builder. In the Strategy Builder, you would navigate to the Conditions and Actions screen, create a condition for your Alert and Limit order in the Conditions section, then set an Alert action followed by calling EnterLongLimit/EnterShortLimit. After setting this up in the Strategy Builder you could view the code to accomplish this by clicking the 'View code' button in the Strategy Builder.
See the help guide documentation below for more information.
Strategy Builder Conditions - https://ninjatrader.com/support/help...on_builder.htm
Strategy Builder Actions - https://ninjatrader.com/support/help...eActionsWindow
Also, here is a link to our publicly available training videos, 'Strategy Builder 301' and 'NinjaScript Editor 401', for you to view at your own convenience.
Strategy Builder 301 — https://www.youtube.com/watch?v=_KQF2Sv27oE&t=13s
NinjaScript Editor 401 - https://youtu.be/H7aDpWoWUQs?list=PL...We0Nf&index=14
Please let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment