Having an issue, however, running some simple backtests for some indicies utilizing Exponential Moving Averages and specific time frames. For example, I have the timeframe for 01-02-1990 to 06-22-2010, and another for 01-03-2000 to 06-22-2010.
The if/then scenarios I have are, when X EMA crosses above X EMA, enter long position, and vice versa for crosses below.
When I run the backtest, though, times of buys/sells/executions don't seem to be adding up, and for benchmarking/buy and hold comparison, how can I get the first trade to go in on 01-02-1990 and 01-03-2000, respectively?

Comment