Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Limit on Open Orders
Collapse
X
-
Hello fiddy,
Thank you for your post.
There is no feature for this in NinjaTrader. However, this function could be programmed in a NinjaScript strategy that would automate the placement of the order on the open. If you would like details on NinjaScript please refer to our Educational Resources in our Help Guide at the following link: http://ninjatrader.com/support/helpG..._resources.htm
Please let me know if you have any questions.
-
Hello,
If your strategy is running as CalculateOnBarClose = false or with a secondary series, for intra bar orders you could use the following items to assist in creating logic that happens on each new bar or on each new session.
I have provided an example of how you could check the time of the open and if it is the first tick of the bar.
Code:protected override void Initialize() { CalculateOnBarClose = false; } if(Time[0] == ToTime(8, 0, 0)) if(FirstTickOfBar) EnterLongLimit(limitPrice);Cody B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
476 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
317 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
254 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
340 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
306 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment