Announcement

Collapse
No announcement yet.

re-draw the past "X" number of bars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • re-draw the past "X" number of bars

    Alexis, I have a question about this thread. I have been working with multiple time frames using the percentR study. I found this thread, which you mentioned in another thread in the Wizard sub-forum. It gives great info, but leaves me with a follow-on question.

    I am bringing a longer-interval study (eg 5min) into a shorter-interval chart (eg 1min) and using it to test conditions that change bar background color or draw shapes or text. As you describe, conditions within the longer-interval sometimes create conditions which meet the criteria, and so when the 1-min bar closes, it draws the pertinent color or the shape. But sometimes when the 5min interval ends, the conditions have changed and the color or shape is no longer valid. I understand all that, so far.

    What I would like, is . . . . when the 5min interval closes, I would like to have the study somehow go back and paint all 5 bars with the color that meets the conditions when the 5min interval closed (the final conditions). Or to have the interim text or interim shapes (that drawn after each interim 1min bar close) be cleared or wiped away. So when the 5min interval closes, I want the chart to have the color and shapes/text for all 5 1min bars that meet the conditions evident when the 5min interval closed.

    Of course, that is exactly what I get when I reload the efs, as you mention. But what I would like would be a way for the efs automatically to go back and 'fix' the 1min bars after the 5min interval closes (instead of me having to do it).

    Is there a way to re-draw the past "X" number of bars from inside an efs? Is there any other way to accomplish this?

    Thanks you very much. Joe

  • #2
    Joe
    You can use setBar() to paint prior bars or backgrounds. Note however that you cannot paint prior price bars.
    Alex







    Last edited by Alexis C. Montenegro on 09-12-2005 at 07:43 PM

    Comment


    • #3
      Alexis, I am not sure I understand the distinction between "prior" bars and "historical" bars. Does historical refer to yesterday's intraday bars? But during the trading day today (current session for that symbol) they are still prior intraday bars?

      As always, thanks for your patience and assistance. Joe.

      Comment


      • #4
        Joe
        I just used different terms but the meaning was the same.
        To avoid further confusion I edited my prior reply.
        Alex

        Comment

        Working...
        X