Get each day’s highest/lowest MACD for the past 5 days

Forums ProRealTime English forum ProBuilder support Get each day’s highest/lowest MACD for the past 5 days

Viewing 12 posts - 1 through 12 (of 12 total)
  • #209556

    Hello,

    I’m looking for a way to retrieve the highest and lowest MACD values (the blue line) for each day for the past five days.

    Could anyone please help me with that?

    #209590

    There are different ways to do, so could you just define how you want to use them or display them on the chart? So I could suggest the best solution.

    #209607

    I’d like to average these numbers to draw a line on the MACD indicator. The purpose is to know when there seems to be an overreaction to the upside or downside.

    #209614

    Ok and it will be used on intraday timeframes such as 15-minutes for instance?

    #209625

    Yes, that’s correct!

    Does that mean the code is dependent on the graph’s timeframe and there is no way to search for data in-between given dates?

    Does the graph has to have a 5-day history for the data to be retrieved?

    #209632

    I was thinking of different manner to do it, here is the code that calculate the mean of the last “period” days of highest and lowest MACD values.

    1 user thanked author for this post.
    #209646

    Thanks a lot Nicolas!

    I’m going to give a try and see if I can tailor it further.

    Does the graph have to extend beyond the period (5 days) to calculate the values or can they be calculated independently of the graph’s history length?

    #209648

    Link to above code added as Log 353 here …

    Snippet Link Library

    1 user thanked author for this post.
    #209651

    The chart must contained the X days history visible.

    #209663

    Is there no way around it?

    Can’t we parse historical data even if it’s not on the current graph?

    #209725

    No, the highest and lowest values of an indicator calculated upon a data serie must read it and therefore must be visible on the chart.

    #209764

    Understood, thanks Nicolas!

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

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