this will help for object orientated coding and to implement (inject)
a own performance manger.
and also a big thank you for the existing development keep up with the
good work
andaluzo
unread,
Nov 9, 2011, 3:11:20 PM11/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JBookTrader
While digging deeper in /source/com/jbooktrader/platform/strategy/
Strategy.java
there are some more changes
// inject custom performance manager and position manager here
// see also /source/com/jbooktrader/platform/strategy/
Strategy.java
// lines 167ff
// the method "process" needs to make use of the getter for
position and performance manager
// ->
this.getPerformanceManager().updatePositionValue(marketSnapshot.getPrice(),
this.getPositionManager().getCurrentPosition());
// lines 156 ff
// -> this.getPositionManager().trade();
// lines 76 ff
// -> if (this.getPositionManager().getCurrentPosition() != 0)
{
// -> this.getPositionManager().trade();
// lines 68 ff
// -> this.getPositionManager().setTargetPosition(position);