Put a simple condition - Long more EMA and shorts less EMA and close by TrailStop.
But the position is closed not only to TrailStop, but when performed opposite condition - if have open Long and fulfillment of the terms "less EMA" - Long then close and open shorts.
How to do that would not open until closed by TrailStop?
Comment