Signal on moving average 200 periods

Forums ProRealTime English forum ProBuilder support Signal on moving average 200 periods

Viewing 2 posts - 1 through 2 (of 2 total)
  • #6348

    Hi all, i need help with what i think is a piece of simple code, but if it was that simple i wouldn’t be asking for help in the first place. Basically all i’m doing is plot a 200 simple moving average of the close together with the closing price data series. The end result though is baffling me, for instance when a candle closes below the moving average on the main chart i expect to see the same behavior on bottom panel where i plotted the MA and the closing price data series. The vertical line on the chart shows an instance of the challenge i’m having. What am i missing. Any help will be much appreciated. since i couldn’t find any Time Frame related functions, i’m attempting to periodize the 200 MA plotted on the weekly chart on to the daily chart by simply multiplying the 200 MA by 5. The end result left me scratching my head and so i simply returned the closing Price series and the 200 MA to a separate panel and that’s when i realized this behavior. Thanks for the assistance.

     

    #6357

    Hi All,

    I figured out what the issue was, there’s nothing wrong with code. I had a plotted a 200 EMA on my chart rather than a 200 MA.

    hence the difference from what the code outputted and what I was comparing it to on my chart

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

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