public Stochastic Stochastic(ChartData Input, int KPeriod, int DPeriod, int Slowing, int MAMethod, int PriceField) throws TradingException {
long key = this.Engine+(2306031294302496378L)+Input.chartHashCode()+KPeriod+DPeriod+Slowing+MAMethod+PriceField;
Note, for builder first iteration if the parameter sum clashes, wrong indicator will get used from the cache to calculate the key. In the example above, lets say
cache has one version with k=10, d=20, slowing=5.
Next time when builder generation tries to get k=12,d=18,slowing=5, indicator cache will be used instead of calculating correct indicator values. - this will result in incorrect strategy generation.
Can you look into generating proper key hash that simply does not add but applies special multiplier or other ways?