generating a support and resistance array

Forums ProRealTime English forum ProBuilder support generating a support and resistance array

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

    Hi everyone,

    I am trying to generate a support and resistance array that updates daily at 10PM by taking the highest and lowest of the past 24hours and weeding out the past lines that are comprised between those two. Here is the code I’ve managed so far:

    My problem is the following:

    If I ask to calculate only on the last 100 bars, i. e. on the 24hours (I’m working on 15mn candles) it will only work on the previous 10PM occurrence.

    If do not put “DefParam CalculateOnLastBars=x” it displays all the past results of all the past occurrences of 10PM simultaneously, which kinda defeats the purpose. For example, say we are on day 4: day 1 highest is not comprised between highest and lowest of day 2 but is comprised between highest and lowest of day 3. So it disappears on day 3 but since the graphics displays all the daily results it still shows up as a day 2 result. I know I’m not being utterly clear but you get the idea.

    If I ask “DefParam ShowOnLastBarOnly=true” it doesn’t display anything unless the last bar is indeed the 10PM bar.

    So the question is: who can I get it to show the last state of the array while having it calculate all the previous states?

     

    Thanks a lot !

    #237550

    Can you post the value of the missing variables (or the ITF file)?

     

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