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
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 cls71, Today, 04:45 AM
|
0 responses
1 view
0 likes
|
Last Post
by cls71
Today, 04:45 AM
|
||
Started by mjairg, 07-20-2023, 11:57 PM
|
3 responses
213 views
1 like
|
Last Post
by PaulMohn
Today, 04:22 AM
|
||
Started by TheWhiteDragon, 01-21-2019, 12:44 PM
|
4 responses
544 views
0 likes
|
Last Post
by PaulMohn
Today, 04:09 AM
|
||
Started by GLFX005, Today, 03:23 AM
|
0 responses
3 views
0 likes
|
Last Post
by GLFX005
Today, 03:23 AM
|
||
Started by XXtrader, Yesterday, 11:30 PM
|
2 responses
12 views
0 likes
|
Last Post
by XXtrader
Today, 03:07 AM
|
Comment