Error : Cannot read property 'when' of undefined


#1

Hello everyone !
I’m polishing my strat SubMachine for my publisher authorisation.(finger crossed)

As it’ll be used (hope so ! ) by many users, i’m trying to convert many order blocks in limit mode instead of market mode, as mentionned in telegram channels and strat tips.

Since i did that, results are even better, but in some cases the strat falls into an error :
Error : Cannot read property ‘when’ of undefined

It happens on some specific dates (12of march 2021 for ex.).
it happens just after a Balance waiting USD ratio > 98%
And before a macd crossing test.

Someone have an idea / solution ?

Many thanks in advance,
Jejous.