Greetings!
Not so long time ago met a problem with a flat filtering.
My strategy does receive a false signal after weekend, and doesn't open a correct.

Strategy's logic is : When MA line changes a colour it opens a pending order in a distance of 8 pips from indicator. So if trend is up it Opens a pending BUY order in an 8 pips higher than indicator value. For SELL orders it does the same while downtrend.
As you see an incorrect position on sunday opened and closed at once, and on the next day it doesn't open a buy order while yellow line approach. It doesn't show any problems while backtesting but it appears in a live time!
I tried to disable receive data bars on weekend by a code feature, but it doesn't bring any success.
My Ideas ran out. Maybe you have any suggestions.
Strategy attached