There are other logics I have in blocks but I don't think that matters.
But since you asked I will provide all details.
I am running this on "On Tick" event.
My first block is "Once per bar"
This is followed by the condition which checks the Smoothed MA. If this block passes. I have another condition that check if my Trend variable is equal to "Sell" This means that until now the prices were in downtrend. After the last closed bar now the prices are going to go up (as per my logic and theories/strategies) So I close existing "sell" trades. I then open a "Buy" trade. I then also now set the Trend variable to "buy" since I am not in uptrend. I now wait for another crossover condition when the 5MA < 8MA
Let me know if I can provide more clarification. I don't believe any other conditions I am using matters. It just seems like it is doing what it is supposed to but 1 candle late.
