Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Use "Default 24 x 7" as trading hours but only place orders during RTH?
Collapse
X
-
Use "Default 24 x 7" as trading hours but only place orders during RTH?
I would like to use the "Default 24 x 7" trading hours for my data series, but specify my strategy to only place orders during "US Equities RTH". Is this possible to do? How would I achieve this in the NinjaScript editor in my strategy code?Tags: None
-
Hello herbnderby,
Thank you for your post.
You could add an additional data series to your script for RTH Trading Hours and submit orders to that added series. AddDataSeries() would be used to add an additional data series to your script. Then you would check if the added series is processing by creating a condition checking if (BarsInProgress == 1) and submit orders within this condition to submit them to the added series.
Please note that Realtime OnBarUpdate() iterations will only happen when in both trading hours periods.
See the help guide documentation below for more information.
AddDataSeries() - https://ninjatrader.com/support/help...dataseries.htm
BarsInProgress() - https://ninjatrader.com/support/help...inprogress.htm
Something else you could do would be to add time checks to your script to submit orders within a certain time frame.
See the help guide documentation below for more information about creating time checks.
Creating Time Comparisons - https://ninjatrader.com/support/help...imeComparisons
Creating Time Filters - https://ninjatrader.com/support/help...ateTimeFilters
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>
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
93 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
138 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
123 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
73 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment