I think the correct answer is "you don't" (I've done something similiar
before, and I remember having to hack a lot).

On Fri, Dec 4, 2009 at 2:10 PM, alrts <[email protected]> wrote:

> Hi,
>
> I made an indicator "priceVolatilityEMA". I took the indicator
> "priceEMA" as template and simply replaced
>
>        double price = marketBook.getSnapshot().getPrice();
>
> in method calculate() of "priceEMA.java" with
>
>        priceVolatility = new PriceVolatility(beta);
> (*)     priceVolatility.calculate();
>        double priceVolatilityValue = priceVolatility.getValue();
>
> in order to build "priceVolatilityEMA.java". However at (*) I'm,
> getting a "null pointer exception" as marketBook is suddenly null when
> calling "priceVolatility.calculate()". I made something wrong.
>
> How to corectly call an indicator within an indicator ?
>
> Thanks for helping!
>
> --
>
> 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]<jbooktrader%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/jbooktrader?hl=en.
>
>
>

--

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