Monthly (close-open), monthly timeframe

Forums ProRealTime English forum ProBuilder support Monthly (close-open), monthly timeframe

Viewing 3 posts - 1 through 3 (of 3 total)
  • #182929

    Hi , i am trying to do and indicator that returns me the summatory of the value (close-open) for the last 10 month but for each month separately, i mean: the last 10 januaries, the last 10 februaries, …..

    that is what i did,But it doesn´t work, i don´t know why

    Thank you very much

    #182934

    Hi, it’s because in the loop, with i+12 instead of i*12 you’re adding all the consecutive months before the one 12 ago instead of “jumping” every 12 months + with 0 to 10 you’re adding that 11 times instead of 9 times to first one to make a total of 10 + you’re counting current candle’s retorno several times inside the loop.

    Let’s try with this one to display on a monthly timeframe each month the sum of same-name 10 months as current month + previous same-name 9 one’s

     

    #182953

    Now is perfect, thank you very much, my idea was the following

    An indicator that returns the average of (close-open)% of the last 10 months (for each month) to do seasonality studies for stocks.

    Thanks again

    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)

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