No. TimeFrame affects only series and trades. But in your script the entry levels and price series are still based on 60 minutes. Please read the manual how to use TimeFrame. Aside from that - entry and exit at the same price tick will not give you an optimistic or pessimistic, but just a meaningless result, as the trade outcome is unknown. Blaming the evil backtester won't help.

It's clear that when you're learning to write scripts and are just experimenting with entries and exits, you probably won't see such problems already in the script. But you can easily see them in the log. That's why you should check the log after running a test. If you do not understand the value of a certain variable, print them also in the log. Then you're not helpless when you get unexpected results, but can see where they come from.