Announcement

Collapse
No announcement yet.

Is there away to setBarBgColor() offset in the future....?

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

  • Is there away to setBarBgColor() offset in the future....?

    Hello,

    I have a couple of simple moving averages that are offset several bars from the current bar (into the future) on my charts.

    What I would like to do is color the background (say red) as they are moving together...in the offset space...not at the current bar. So this would be much like a consistently leading thermometer of the current price action. ***To this end I would like to remove the background color once the current bar 'caught up' with the painted background.

    Is there a way to do this with setBarBgColor()?

    Any help is much apppreciated,

    gg

  • #2
    Re: Is there away to setBarBgColor() offset in the future....?

    gg
    You can't use setBarBgColor() [which can be applied only where there is a plot] but you could obtain a similar effect by drawing vertical lines using the drawLineRelative() function
    Alex


    Originally posted by gguindon
    Hello,

    I have a couple of simple moving averages that are offset several bars from the current bar (into the future) on my charts.

    What I would like to do is color the background (say red) as they are moving together...in the offset space...not at the current bar. So this would be much like a consistently leading thermometer of the current price action. ***To this end I would like to remove the background color once the current bar 'caught up' with the painted background.

    Is there a way to do this with setBarBgColor()?

    Any help is much apppreciated,

    gg

    Comment

    Working...
    X