Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Advice (and trades) repeat. #248

Closed
kuzetsa opened this issue Jun 23, 2014 · 1 comment
Closed

Advice (and trades) repeat. #248

kuzetsa opened this issue Jun 23, 2014 · 1 comment

Comments

@kuzetsa
Copy link
Contributor

kuzetsa commented Jun 23, 2014

As per #171 there is a bug involving repeated advice and trades, and not just MACD

It seems that there is undocumented behavior when the following code is called:

    if(this.trend.persisted && !this.trend.adviced) {
      this.trend.adviced = true;
      this.advice('long');
    } else
      this.advice();

Specifically, the lines with an empty call to this.advice(); seems to be the issue.

in my own fork / repo, I'll be pushing commits with a fix for these sorts of bugs.

At this time, it is unclear to me if @askmike is still accepting pull requests.

@kuzetsa
Copy link
Contributor Author

kuzetsa commented Jun 25, 2014

Nevermind, I don't understand what the purpose of that code even was, and ultimately ended up forking the codebase after fixing the logic bug during a code audit & refactor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant