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
Limiting only 2 trades to be run at the same time while running multiple strategies?
Collapse
X
-
Hello trgui7883,
You would just add whatever conditions you had used in each of the individual strategies into a single strategy. If you made multiple strategies using the strategy builder you could use those as reference and make a new strategy that has those conditions in it.
A single strategy will always know what orders it placed and what position it is in. When you run more than one strategy on the same instrument they won't know what the other strategy is doing so they can quickly become out of sync and place erroneous trades.
Once you have a single strategy you can limit to two trades in a single direction by setting the entries per direction setting to 2.
JesseNinjaTrader Customer Service
Comment
-
Great answer, Jesse. We have multiple strategies that we are combining into a single strategy to get a better sense of the stats of the whole vs the sum of the parts in backtests. We have the opposite problem in that each strategy performs better with a different "entries per direction" setting so I'm working on managing that internally vs using the Ninja-provided hook. From your comment, it sounds like that is the right approach.
trgui, the way we approached the combined strategy is to have an object for each sub-strategy to store settings/state data along with separate signal/trade processing functions as needed. In spots where we can share functions/settings across all strategies, we do so.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by lightsun47, Today, 03:51 PM
|
0 responses
1 view
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
8 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
41 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 02:44 PM
|
||
Started by port119, Today, 02:43 PM
|
0 responses
8 views
0 likes
|
Last Post
by port119
Today, 02:43 PM
|
Comment