> In this case one SOLUTION seems to be the following:
>
> If indicatorB calls indicatorA, all you have to do is providing
> indicatorA as a parameter to indicatorB. You can then access
> indicatorA within IndicatorB's calculate() method by
> indicatorA.getValue(). You just have to make sure to create indicatorA
> before indicatorB in your stategy. No hacking.
>

Alternatively, you can use the approach as in this attached class.
This may be a better solution since it does not require your strategy
to create indicatorA if it needs indicator B.

--

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.


Attachment: PriceVolatilityEMA.java
Description: Binary data

Reply via email to