Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
How to limit the number of simultaneous ATM orders?
Collapse
X
-
How to limit the number of simultaneous ATM orders?
Is there a possibility to limit the number of ATM orders enabled on a chart? I'm testing a semi-automated strategy using alerts and I would like to avoid multiple triggers of the same order if I already have an active order.Tags: None
-
Hello andr3i,
A script can use logic to prevent itself from calling methods if the methods have already been called or called a certain number of times.
This would not prevent manual orders, but if you placed all orders through the script from logic or button presses, the script could decide if a new order is submitted.
Below is a link to the help guide on Atm Strategy methods.
And a link to an example that uses buttons.
Chelsea B.NinjaTrader Customer Service
-
Hello andr3i,
There would not be a built in script. You would have to write your strategy with your custom logic.
Use a bool to know when you have submitted an order. Require that bool to false for the condition that submits the order to trigger.
Below is a link to a forum post with helpful information about getting started with programming C#.
As a heads up, using Atm Strategy methods are advanced. This requires more consideration than NinjaStrategy methods.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
27 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
32 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:33 PM
|
||
Started by wzgy0920, 04-23-2024, 09:53 PM
|
2 responses
49 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:29 PM
|
||
Started by Kensonprib, 04-28-2021, 10:11 AM
|
5 responses
193 views
0 likes
|
Last Post
by Hasadafa
Yesterday, 10:19 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
11 responses
3,235 views
0 likes
|
Last Post Yesterday, 08:07 PM |
Comment