I have coded a indicator that assignes a variable the value 500 when all my conditions are meet.
I have a automatic trading system (strategy) that have exactly the same conditions as the indicator, fullfilled conditions = BUY x contract.
But, the automatic trading system (strategy) executes the BUY one bar after the variable is 500, why?
The BUY should be executed at the same bar as the variable is 500? This is when I backtest, I have never tested this strategy in real life. Is it different then?