I checked several variables. For all backtests the category variable is WalkForward and the account name variable is Backtest. So I am looking for a way that I can check with a variable for which period the backtest is run, for the optimzation period or the test period.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Walk foward
Collapse
X
-
Walk foward
In a walk forward backtests are executed for the optimization period (in sample) and for the test period (result). For example I execute a walk forward with an optimization period of 4 years and a test period of 1 year with one variable to optimize with 3 choices. So 3 backtest are run for the first optimzation period and 1 backtest for test period based on the outcome of the optimization backtests. This gives 4 different backtests (3 times for the optimization period and 1 time for the test period) This process is repeated for each optimization perdiod of 4 years. Is there a way that I can check in the strategy code if the backtest executed is a backtest for the optimzation period or for the the test period?
I checked several variables. For all backtests the category variable is WalkForward and the account name variable is Backtest. So I am looking for a way that I can check with a variable for which period the backtest is run, for the optimzation period or the test period.Tags: None
-
Hello Renejm,
Unfortunately, there is not a property for this.
I'm only aware of the dates of the data that could identify this.
WalkForwardTest_NT8.zipChelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
47 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
33 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment