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].
For more options, visit this group at
http://groups.google.com/group/jbooktrader?hl=en.