indicator icon indicating copy to clipboard operation
indicator copied to clipboard

Candlestick Indicators give random results

Open fluffyx opened this issue 4 years ago • 0 comments

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!!

fluffyx avatar May 22 '21 22:05 fluffyx