The first equity curve is from the provided script (entry from a tmf returning 2 as soon as price crosses 0.5*atr), second is the same script without using a tmf, just with Entry = 0.5*atr. Slippage=0 in both cases.
See the "inflation"?
The first approach should actually give worse results since price definitely has to cross the stop entry level (maybe by a lot) for an entry to trigger.