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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
474 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
315 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
253 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
340 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
305 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment