backtesting with binary data