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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue