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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
421 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
279 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
238 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
325 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
288 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment