Hi, I have written a basic ema cross over system and the system will buy/sell when I don’t want it too and I can’t see whats wrong with my code. Please take a look any help is welcome, thanks. Screenshot of issue: https://gyazo.com/4c337115afa8ec5e7a11c2b030a30ae4
the trade appears corect to me because “close” crosses under the EMA20 and then crosses over right after the next bar. The system enters the Position when the next bar opens.
Maybe you can see it more clear when switching from candlesticks to a line. It appears to be a problem with a choppy signal.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok