>
>
> I just added this constructor to BalanceVelocity.java (in the
> indicators source directory):
>
> public BalanceVelocity(DepthBalance depthBalance, int fastPeriod,
> int slowPeriod) {
> fastMultiplier = 2. / (fastPeriod + 1.);
> slowMultiplier = 2. / (slowPeriod + 1.);
> }
>
> This enables the compile at least (whether it is correct or not I do
> not know).
>
The correct fix is actually not to add a constructor, but to use the
existing one. So, instead of
balanceVelocityInd = new BalanceVelocity(new DepthBalance(),
getParam(FAST_PERIOD), getParam(SLOW_PERIOD))
the strategy should call
balanceVelocityInd = new BalanceVelocity(getParam(FAST_PERIOD),
getParam(SLOW_PERIOD))
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---