I am running a simple 1 hour resolution backtest. Here's an example scenario.

Say the close price of a stock is 10.
I place a Buy StopMarketOrder at 11.
Next bar the close of the stock is 12. (high: 14, low: 10.5)

Why do I get filled at 12?
Can the backtester not assume I will get filled at 11?
Or does Lean work differently and I have to use tick resolution for this to work?

Author