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 linkcou, Today, 07:01 AM
|
1 response
8 views
0 likes
|
Last Post
by balltrader
Today, 08:07 AM
|
||
Started by ninza33, Today, 07:16 AM
|
2 responses
7 views
0 likes
|
Last Post Today, 08:05 AM | ||
Started by ellington, Today, 07:40 AM
|
0 responses
2 views
0 likes
|
Last Post
by ellington
Today, 07:40 AM
|
||
Started by Atticus20, Today, 07:27 AM
|
0 responses
9 views
0 likes
|
Last Post
by Atticus20
Today, 07:27 AM
|
||
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
66 views
0 likes
|
Last Post Today, 06:25 AM |
Comment