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
Strategy sync question
Collapse
X
-
Strategy sync question
i have attached a short scalping exit strategy. it covers shorts on a 2 bar reversal. I manually enter a short, then enable the strategy. It syncs strategy to Account (sync =True) and exits when a 2-bar high is exceeded. works great. But if i enter a manual short white the strategy enabled, sync toggles to false and it doesn't work (Account != Strategy i guess). I have tried various Start Behaviors and IsAdoptAccountPositionAware = true to no avail. What can be done to have the running strategy recognize a manual short entry & stay sync'd to account ? thanksTags: None
-
Hello Kicks.Spin,
The start behavior and account sync feature is only for when you first start the strategy, past that point those features are not used. For what you are asking you would be better off using the addon framework to monitor the account directly.
By observing the account events or using the various collections you can leave the strategy enabled and see the manual orders or positions. Generally it would be best to use an indicator for this purpose and then also use the addon framework account to submit the orders, that just makes the script easier to write so you don't have addon logic in addition to strategy logic.
JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DynamicTest, Yesterday, 11:18 PM
|
1 response
5 views
0 likes
|
Last Post Today, 07:13 AM | ||
Started by Rogers101, 05-05-2024, 11:30 AM
|
6 responses
26 views
0 likes
|
Last Post
by Rogers101
Today, 07:12 AM
|
||
Started by llanqui, Yesterday, 03:51 PM
|
4 responses
22 views
0 likes
|
Last Post
by llanqui
Today, 07:10 AM
|
||
Started by smartromain, Yesterday, 10:50 PM
|
1 response
13 views
0 likes
|
Last Post Today, 07:09 AM | ||
Started by nleitman, Yesterday, 11:46 AM
|
11 responses
29 views
0 likes
|
Last Post Today, 07:08 AM |
Comment