Closed codebeaulieu closed 5 years ago
For good measure I just attempted to import the data using your CSVImporter and I had the same results.
I see what you are doing here... and it makes sense after I think about it. It was just a bit hard to understand without thinking through how the indicator works.
So, for anyone using this indicator in the future. Keep in mind that the indicator has a leading compnent to it (Span A & Span B). So, if we are trying to perform analysis on the Tenkan line (for example), we have to look back in our data by the amount we input as the middlePeriodCount
.
So, for my unit tests I had to look back 26 bars to read my current Tenkan line.
I've just attempted to integrate Ichimoku into a big project. I wrote all of the rules I needed and began writing unit tests against the indicator. My very first, and very simple unit test is failing.
Upon further inspection, its failing because there are a ton of null values returned from the indicator rendering it completely unusable.
This is my dataset:
I'm importing this data from a CSV file:
Here's what the data looks like coming back from the CSV file:
Then running a unit test over it like so:
Do you have any ideas as to why this indicator is returning so many null values?