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.

@Configurable in different class than IStrategy
 Post subject: @Configurable in different class than IStrategy Post rating: 0   New post Posted: Fri 08 Sep, 2017, 10:40 
User avatar

User rating: 2
Joined: Tue 11 Jul, 2017, 09:30
Posts: 24
Location: HungaryHungary
Hello,

My strategy class is too crowded and I would like to keep all of my configurable parameters in a different class MyConfigurable. This will be instanteated in the strategy class. But the @configurable parameters doesn't popup from this class when the strategy starts. Is there a way to implement this behaviour, should the MyConfigurable implement or extend something?

Thanks


 
 Post subject: Re: @Configurable in different class than IStrategy Post rating: 0   New post Posted: Tue 12 Sep, 2017, 10:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
One option is to move trading logic to other classes. @Configurable parameters are located only from man IStrategy class.


 

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