Hello fellow quants. I'm having some issues with inserting data into my algorithm. It seems to be with the pricing but I don't know if the issue is somewhere else in my code. This algo first checks that the 100 hour SMA is above or below the price, then if there's an EMA crossover in it's favor, it takes a Long/Short position and sets a Stop Loss and Take Profit. I then plot my points, but it seems like it's either not being plotted correctly, or it is being plotted correctly but the data is off. And lastly, you can see no matter how many backtests I do with different values, in the beginning the Equity always plummets, then starts evening out. Can someone please look over this and help me out?

Author