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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
73 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
39 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment