I've no objections, although I would suggest making it a concrete
method with empty implementation in Strategy.java. That way, nothing
needs to change for the existing strategies which don't need to "reset
()". What type of "house-keeping" are you going to add there?

On Aug 3, 6:49 am, Martin Koistinen <[email protected]> wrote:
> I would like to propose that the abstract method reset() is added to
> strategy which is called when the snapshots are greater than GAP_SIZE time
> apart (a la com.jbooktrader.platform.IndicatorManager.java).  The end result
> would be that, if so desired, a strategy can perform certain house-keeping
> activities just before processing the first snapshot of each day.
>
> I am asking rather than simply doing, because this will impact all existing
> strategies.  The required action would be to simply add the following lines
> to each existing strategy:
>
> @Override
> public void reset() { /* nothing to do */ }
>
> Alternatively, if all your strategies extend StrategyES (or similar), you
> could add it there to cover all of them in one go.
>
> Anyone object to this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jbooktrader?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to