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 Aviram Y, Today, 05:29 AM
|
1 response
6 views
0 likes
|
Last Post Today, 07:28 AM | ||
Started by cls71, Today, 04:45 AM
|
1 response
7 views
0 likes
|
Last Post Today, 07:25 AM | ||
Started by TradeForge, Today, 02:09 AM
|
1 response
22 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by elirion, Today, 01:36 AM
|
2 responses
14 views
0 likes
|
Last Post
by elirion
Today, 07:21 AM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
5 responses
14 views
0 likes
|
Last Post Today, 07:18 AM |
Comment