Please try using 4 as the entries per direction when you apply the strategy or using UniqueEntries for the EntryHandling mode. If you are trading multiple entries in the same direction you will need to increase the entries per direction to match what you want to allow.
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
Sample using Multi-Instruments in strategy
Collapse
X
-
Hello MGHORBEL,
Please try using 4 as the entries per direction when you apply the strategy or using UniqueEntries for the EntryHandling mode. If you are trading multiple entries in the same direction you will need to increase the entries per direction to match what you want to allow.JesseNinjaTrader Customer Service
-
The code used is in the attached file.Attached Files
Comment
-
Hello MGHORBEL,
Are you doing the exact same test with the same primary instrument being used? If any of the series are duplicated meaning if you use a primary that is also being added as secondary that will change how the Positions collection reports, you would need 4 different instruments for that test to show a position on each bars in progress.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by alifarahani, 04-19-2024, 09:40 AM
|
13 responses
84 views
0 likes
|
Last Post Today, 02:03 PM | ||
Started by PaulMohn, 05-19-2022, 11:40 AM
|
12 responses
546 views
0 likes
|
Last Post
by PaulMohn
Today, 02:02 PM
|
||
Started by ILM8008, Today, 01:31 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:50 PM | ||
Started by swjake, Today, 12:04 PM
|
4 responses
13 views
0 likes
|
Last Post
by swjake
Today, 01:49 PM
|
||
Started by Zeezee, Today, 12:45 PM
|
2 responses
10 views
0 likes
|
Last Post
by Zeezee
Today, 01:48 PM
|
Comment