Forum

Help with a bit of code

Hello, I'm new to MQL5, coming from pro-realtime. Currently using online apps to generate code. I have a simple one I'll paste below. It's a simple follow the 6 period LWMA and buy when trending up and close on a lower low. I've added a stop loss, take profit and trailing stop. The problem I have is