Hey guys, I´ve created an algo that I´m pretty pleased with and I have made an indicator out of it. The only thing I´ve changed in the code when converting it into a indicator is replacing for exaple “buy” with “drawarrow up”, “sellshort” with “drawarrowdown” , nothing else in the code. But as you can see in my pictures the indicator dosen´t always do what the backtest is doing and in some places there´s up to four bars between when the indicator is showing where to take a position and where the backtest is taking it. Do anyone have a clue about what the problem can be?