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 nleitman, Yesterday, 11:46 AM
|
12 responses
32 views
0 likes
|
Last Post
by nleitman
Today, 09:14 AM
|
||
Started by MSerag, Yesterday, 11:52 PM
|
3 responses
23 views
0 likes
|
Last Post Today, 08:52 AM | ||
Started by dcriador, Yesterday, 01:43 AM
|
6 responses
27 views
0 likes
|
Last Post Today, 08:51 AM | ||
Started by James650, Today, 08:25 AM
|
1 response
2 views
0 likes
|
Last Post Today, 08:35 AM | ||
Started by Rogers101, 05-05-2024, 11:30 AM
|
14 responses
40 views
0 likes
|
Last Post Today, 08:32 AM |
Comment