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, 05-11-2026, 05:56 AM
|
0 responses
27 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
183 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
335 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
260 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment