Dislikedwith your solution back-testing on off-line chart is working.
I have noticed one thing though which is the modeling quality is like ~20%. I don't know with this modeling quality how reliable back-testing results would be.Ignored
In order to have a better quality you need to use real tick data...for example those provided by Dukascopy, in any case you will need Bid data and Ask data to take in account the spread, and in any case the spread will never be the same you have with your broker...so the backtest will never be realistic enough...
Market is like a puzzle, YOU have to fit the pieces!!