I am throwing a general question out there, not specific to any platform.
I would like to know the community's thoughts or ideas on how to combat flapping on the current bar. This is one of the main culprits why back-testing results of strategies does not match forward testing. In real-time, your entry/exit order may flap back and forth depending on your logic.
Has anyone came up with any ideas on how to best filter these flaps back and forth.