I am developing some buy strategies and I want to test my buy signals on historical data without considering sell signals. Basically, I am looking at the risk / reward (in hindsight) if I had bought at a certain time. Does anyone know of some common or standard algorithms for backtesting buy signals on historical data? I imagine that I would basically pass the algorithm an array of price data and it would return an array indicating the risk / reward, indicated as a floating point number, for buying at every point.