Dukascopy
 
 
Wiki JStore Search Login

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
 Post subject: Parameter change event handler Post rating: 0   New post 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.


 
 Post subject: Re: Parameter change event handler Post rating: 0   New post Posted: Mon 30 May, 2011, 10:42 
User avatar

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.


 
 Post subject: Re: Parameter change event handler Post rating: 0   New post 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.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com