Tick data backtest script and simple model