|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Parameter change event handler |
macronetics
|
Post subject: Parameter change event handler |
Post rating: 0
|
Posted: Fri 27 May, 2011, 14:15
|
|
User rating: -
|
Is there an event handler that would be called when the strategy parameters are changed while the strategy is running?
My strategy has to do some specific processing only when the parameters change so having such an event handler would improve efficiency greatly.
|
|
|
|
 |
API Support
|
Post subject: Re: Parameter change event handler |
Post rating: 0
|
Posted: Mon 30 May, 2011, 10:42
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
The API doesn't have such event handlers. However, you might consider keeping your parameter in your strategy as a private field and checking its value updates in the onTick method.
|
|
|
|
 |
Guest
|
Post subject: Re: Parameter change event handler |
Post rating: 0
|
Posted: Wed 01 Jun, 2011, 18:31
|
|
User rating: -
|
That is what I am doing now but it would be more efficient to perform the check only when the parameters are manually modified.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|