Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Exit order logic on tick, primary series at 5 min
Collapse
X
-
Exit order logic on tick, primary series at 5 min
I'm running some strategies right now on 5 min bars, and I'd like to use low time frame tick/seconds for exit logic. Is it possible to calculate all charts and most logic at 5min as primary and run higher granularity for exit orders or will orders automatically submit to primary series?Tags: None
-
Hello Skifree,
Thank you for your post.
It is possible to specify what series you would like to submit your orders to by specifying the barsInProgressIndex.
For example, using ExitLong():
ExitLong(int barsInProgressIndex, int quantity, string signalName, string fromEntrySignal)
We also have a sample script demonstrating submitting orders to a secondary bar object:
Please let us know if you have any further questions.
-
I'm having trouble making the work. I've found a good strategy, which uses 5 min bars and 5 min RSI, but the losses are larger than I intend, so the path to take is to have a high granularity primary (15 second) to submit orders to and from. This seems to work, but how would I backtest using the 5min RSI? When I try to use a secondary 5min dataseries (basic but custom indicator using RSI), the chart always displays the calculations at the same series as primary. How would my main chart be series 1 (enter/exit functions) and rsi (entry conditions) be series 2 - or is this not possible with the product?
Comment
-
one note is that your feedback conflicts with other support feedback, like this https://forum.ninjatrader.com/forum/...ti-time-frames
That suggests that only primary series can handle executions, not secondary?
Comment
-
Hello Skifree,
If the strategy is not working as intended, you will need to debug using prints and TraceOrders.
The primary series is the one the strategy is applied to (selected in the Strategy's properties). The secondary series or any additional series would be the ones added into your strategy via AddDataSeries().
It is possible to submit orders to different bars objects. From the Help Guide:
"You can submit orders to different bars objects. This allows you the flexibility of submitting orders to different timeframes. You can watch for trade conditions across different time frames and place orders on whichever one you want. This is useful for strategies that require more finesse in the exit than the entry. You can now enter trades on longer time frames and then monitor and exit your trade on a more granular time frame."
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 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