I create an indicator and want to check if a bar is crosses under the MA10, MA20 and MA30 at the same day. If it is, then the output is minus. But it seems it doesn’t work always. See my attached screenshot.
Because sometimes Close from the previous candlestick was already below one of the MA, so the Close is not crossing the MA on the current period (it has crosses the period before!).
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.