Note that `Historical` is true even for live strategies, at the beginning of the run.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to determine if in back-test or live
Collapse
X
-
How to determine if in back-test or live
Is there a way to problematically detect weather a strategy is running live or being run from the strategy analyzer?
Note that `Historical` is true even for live strategies, at the beginning of the run. -
boaza, I would look into checking which account string you get from Account.Name. 'Backtest' would signify the SA run then in this case. Or you make a user input that needs to be set for example to a certain value if backtesting / optimization is done with the script.BertrandNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Barry Milan, Today, 10:35 PM
|
1 response
6 views
0 likes
|
Last Post Today, 10:48 PM | ||
Started by WeyldFalcon, 12-10-2020, 06:48 PM
|
14 responses
1,427 views
0 likes
|
Last Post
by Handclap0241
Today, 10:43 PM
|
||
Started by DJ888, Yesterday, 06:09 PM
|
2 responses
9 views
0 likes
|
Last Post
by DJ888
Today, 10:31 PM
|
||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
40 views
0 likes
|
Last Post
by jeronymite
Today, 10:10 PM
|
||
Started by bill2023, Today, 08:51 AM
|
2 responses
16 views
0 likes
|
Last Post
by bill2023
Today, 10:10 PM
|
Comment