Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Candlestick Indicators give random results #14

Open
fluffyx opened this issue May 22, 2021 · 0 comments
Open

Candlestick Indicators give random results #14

fluffyx opened this issue May 22, 2021 · 0 comments

Comments

@fluffyx
Copy link

fluffyx commented May 22, 2021

The beginning of the results seem to look the same, but the endings can be wildly different.

This is pretty odd, and it makes the data worthless. What's going on here?

historical_data = [
  {:open=>13192,
  :high=>13192,
  :low=>13177,
  :close=>13177},

 {:open=>13179,
  :high=>13187,
  :low=>13179,
  :close=>13186}

  #, etc. (1453 elements omitted for brevity)
]

candle_results_1 = Indicator.create('CdlDoji').run historical_data
candle_results_2 = Indicator.create('CdlDoji').run historical_data

candle_results_1 == candle_results_2 # FALSE!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant