Difference of last 5 closing

Forums ProRealTime English forum ProOrder support Difference of last 5 closing

Viewing 7 posts - 1 through 7 (of 7 total)
  • #97777

    Hi

    I wonder how I can code so that I get the difference for the closing price for the 5 last candels in a 5 min chart. Anyone that can help me?

    Ex:

    5 close (1645,3; 1644,4; 1644,1; 1643,8; 1644,6) and I want too have a number for the highest and lowest for the last 5 candles. In this exemple 1645,3-1643,8=1,5

    How can I code it so I get the number 1,5 as output?

    #97779

    returns the average for the last five candle closing prices – or do you mean that you want the average of the last five 5 minute candles on a different time frame chart?

    1 user thanked author for this post.
    #97780

    I have updated my question… i want the difference between highest and lowest close for the 5 last candles

    #97781

     

    1 user thanked author for this post.
    #97782

    Thank you for that… this forum i really great when one is trying too learn!!

    #97783

    The difference is:

     

     

    1 user thanked author for this post.
    #97784

    Roberto’s answer is correct if you want the difference. I may have been confused in my reply as I read your first post and title before you edited them and they originally asked for an average.

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

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