Seasonal Indicator

Forums ProRealTime English forum ProBuilder support Seasonal Indicator

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

    Hi All,

    i would like to ask for a code assistance.
    The attached code shows the seasonal behaviour
    – quantity of up /down weeks from year to year in % (Histogram 1=100%)
    – price percentage of the up /down weeks in %
    – SumUp percentage of Price changing from Jan to Dec.

    • I would like to know how to code the vertical line shown 52 weeks ago from todays date without showing the vertival lines to the left.
      How to eliminate the additional vertical lines to the left?
    • Is it possible to change the background colour all 3 monthy repeating every year.
      For example:
      2018, Jan-Mar= dark green, Apr-Jun=mid green, Jul-Sep=light green, Okt-Dec= yellow
      2019, Jan-Mar= dark green, Apr-Jun=mid green, Jul-Sep=light green, Okt-Dec= yellow

    – How is it possible to eliminate the fix variable of 2018 at the if loop at the beginning?

    Many thanks for your support in advance.
    Best Regards

    Hasardeur

     

    #110940

    Here is the modified code. I changed the vertical line color to red, because it was not clearly visible on a yellow background.

    You can now choose the first year for the indicator to begin to be plotted in history with the StartYear variable.

     

    1 user thanked author for this post.
    #111036

    Dear Nicolas,

    many thanks for your fast and detailed support.
    As I see, I have been close to the solution, the “defparam drawonlastbaronly = true” I have not known.
    Thanks again.

    Best regards

    Hasardeur

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