It is “almost” working but not quite [e.g.] on Oct18 a position is correctly not taken
but on Oct19 a position should have been taken but was not taken.
Any help/suggestions about this issue will be much appreciated.
The chart and code are as follows:
Comment