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.

Strategy State management
 Post subject: Strategy State management Post rating: 0   Post Posted: Thu 24 Nov, 2011, 06:19 

User rating: 0
Joined: Tue 22 Nov, 2011, 12:47
Posts: 130
Location: United States,
hi,

this is a newbie question -

Is there an article or best practice on how should one manage his strategy state?

Is my strategy get instantiated once per chart OR is it a single instance in which case it will be very problematic to save my strategy state as class data members.

Just to make it clear - when talking about Strategy State I'm not referring to Order State which is a completely different topic. It is more about counters, flags, timers etc that I need to manage on a per chart / instrument basis.

Will be glad to hear how others are approaching this design issue in JForex.

Thanks!
cb888trader.


 
 Post subject: Re: Strategy State management Post rating: 0   Post Posted: Thu 24 Nov, 2011, 09:18 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider making use of map, see:
https://www.dukascopy.com/wiki/index.php?title=Use_Map


 

Jump to:  

  © 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