SetParam() would be your own custom events. Unfortunately I would not know how you have programmed such and the relationship you have for them. What you can try is just adding Print() statements within each method and see the sequence of printouts to know what is happening in what order.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Different parameters for different instruments in a backtest on a list
Collapse
X
-
adamus,
SetParam() would be your own custom events. Unfortunately I would not know how you have programmed such and the relationship you have for them. What you can try is just adding Print() statements within each method and see the sequence of printouts to know what is happening in what order.Josh P.NinjaTrader Customer Service
-
SetParamX() is the property method pairing for my parameter, paramX.Originally posted by adamus View PostI would like to know which way round it happens. Is it the SetParamX() first and then Initialize(), or vice-versa?
I have in the meantime figured out which way around the properties and the Initialize() methods are called.Code:public double ParamX { get { return paramX; } set { paramX = Math.Max(0.1, value); } }
The properties methods are called last, so if I can't set the params in Initialize since the properties methods will overwrite them.
Is there another event that is called *after* the properties are set but before the historical data is processed for each run?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
612 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
355 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
561 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
564 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment