Potential bug with indicator values for builder generation

In SQ.Internal.Indicators all the indicators use sample code like this:



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?

Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority High

History

MF
#1

Mark Fric

26.11.2020 10:25

Priority changed from Normal to High

MF
#2

Mark Fric

02.12.2020 13:58

Status changed from New to Fixed

you are right, this was an issue. It is fixed now

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please