Just wondering if I could get some help limiting downside risk on this algorithm .It buys on the first green bar of a Heikin Ashi if the trend is above the 5 ema. Timeframe is just short of 4 hour bars

If you guys have any ideas to limit downside risk id love to hear your opinions.