CLOSE croesses under MA doesn’t work?

Forums ProRealTime English forum ProBuilder support CLOSE croesses under MA doesn’t work?

Viewing 5 posts - 1 through 5 (of 5 total)
  • #139959

    Hi,

    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.

    My code looks as follow:

     

    #139977

    This works fine:

     

    #139995

    Thanks first!

    I simply copy your code and have a try by me. But it looks it doesn’t work 100%. See attached screenshots. Really strange. :-/

     

    #140005

    Check that periods and average type on your chart are the same as in your code and that you are using a numer of unit large enough (1K should do).

     

     

    #140014

    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!).

Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login