Hello,
I have problem with using Stochastic indicator in custom indicator.
I try to write indicator similar to RSISinglaArrows which is decribed in wiki:
https://www.dukascopy.com/wiki/#Indicato ... _indicatorBut instead of RSI I want to use Stochastic.
If I replace RSI by Stochatic I receive strange bug:
07.03.2014 12:16:46.508 SEVERE dataprovider.AbstractDataProvider ] null
java.lang.NullPointerException
at com.dukascopy.indicators.MAIndicator.getLookback(MAIndicator.java:108)
at com.dukascopy.indicators.StochasticIndicator.getLookback(StochasticIndicator.java:123)
at jforex.indicators.StochMA01.getLookback(StochMA01.java:107)
It looks that MA indicator which is used by STOCH indicator is NULL. And I do not know why... (it means that we can not use indicators which call another indicators?)
In attachment code of my indicator. Please help me.