IdentifyTrend use current value only
In the current setup, it is not possible to use the current value of the indicator when there is a change of value. In this case, the indicator shows both directions Buy and Sell. interestingly, only in the MT5 version. in the MT4 version there is only buy or sell. both are not displayed at the same time there.
---> Default set MT5
It's a visual trick for making beautiful drawings on history. There's no point in trying to fix it.