Should self.p.chikou have negative sign?
self.l.senkou_span_b = senkou_span_b(-self.p.senkou_lead) self.l.chikou_span = self.data.close(self.p.chikou)`
No. The value is being shiftef back. The negative signs fetches values from the past, hence the negative sign, to the current point
I am checking Ichimoku, but i don´t know if the values are well calculated because I always got that chikou_span is Nan.
The test suite for
Ichimoku running with
runonce=True shows that all values are being calculated (can also be seen in the plot below)
You are using
oldsync=True. This may be the cause. The setting was left there several versions ago in case the new data feed synchronization mechanism would show flaws. But after some maturing time it seems robust.
- Any reason to still use it?
The plot (directly from a test run)