I would like to request to change or preferably add another method of strategy initialization: When you enable a strategy for real-time trading, the historical signals are dis-regarded and you always start the strategy in a flat position. This way you dont need to manually or programatically sync your market position when you enable a strategy.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Automation Initilization Methods
Collapse
X
-
Strategy Automation Initilization Methods
Currently, when you enable a strategy (for real-time trading) that includes historical bars, you need to sync the market position based on the position the strategy has determined based on historical bars.
I would like to request to change or preferably add another method of strategy initialization: When you enable a strategy for real-time trading, the historical signals are dis-regarded and you always start the strategy in a flat position. This way you dont need to manually or programatically sync your market position when you enable a strategy.Tags: None
-
thinking about it a little more, maybe add a vertical line where the (real-time) strategy was initialized. Or some other type of visual queue of where the historical strategy ends. Maybe just remove all the historical signal arrows all together once the strategy goes in to real-time mode.
-
Originally posted by NinjaTrader_Jason View PostYou can use the following statement at the top of OnBarUpdate():
if (Historical) return;
This ensures the strategy that runs in real-time will begin flat. However, this does not guarantee the account is flat as well.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bmartz, Today, 09:30 AM
|
2 responses
11 views
0 likes
|
Last Post
by bltdavid
Today, 11:24 AM
|
||
Started by f.saeidi, Today, 11:02 AM
|
1 response
3 views
0 likes
|
Last Post Today, 11:08 AM | ||
Started by geotrades1, Today, 10:02 AM
|
4 responses
12 views
0 likes
|
Last Post
by geotrades1
Today, 11:08 AM
|
||
Started by rajendrasubedi2023, Today, 09:50 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 10:57 AM | ||
Started by lorem, Today, 09:18 AM
|
2 responses
11 views
0 likes
|
Last Post Today, 10:55 AM |
Comment