Hey! I have written so much more advanced things than this so it is pretty embarrassing to write this, but part of my big code didn’t act like I wanted it and when I wrote out a sample and it still didn’t work, it is just a normal MA crossover. The buy and sell don’t appear where they are supposed to. Please tell me what I have done wrong. I will attach the code and also a picture of the result. baseline=exponentialaverage(close)[100] sma=average(close)[20] if sma crosses over baseline then buy 1 shares at market endif if sma crosses under baseline then sellshort 1 shares at market endif