Announcement

Collapse
No announcement yet.

How do I drawing a band

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

  • How do I drawing a band

    Hi,

    I want to draw a band following an indicator line, say a moving average line, but don't seem to be able to achieve that. Can anyone give some ideas how this can be done?

  • #2
    Re: How do I drawing a band

    tttay
    You can do that using the addBand() function to which you pass the value of the average as the value parameter [for the complete syntax required by this function see the link to the corresponding article in the EFS KnowledgeBase]
    Alex


    Originally posted by tttay
    Hi,

    I want to draw a band following an indicator line, say a moving average line, but don't seem to be able to achieve that. Can anyone give some ideas how this can be done?

    Comment


    • #3
      Thanks Alex.

      Tried addBand() before, but it does not give what I want. I want a band that follows a moving average line, not a horizontal line.

      Also, the band is preferably translucent, or behind the price bars.

      Comment


      • #4
        tttay
        If you mean a band like a channel then how to do what you want will depend on how this band or channel is calculated [eg average plus or minus a fixed value, percentage, etc]
        If you search the forums for keywords such as band* or channel* you will find many scripts or code examples that calculate various types of bands or channels and that you can use to create your own
        Alex


        Originally posted by tttay
        Thanks Alex.

        Tried addBand() before, but it does not give what I want. I want a band that follows a moving average line, not a horizontal line.

        Also, the band is preferably translucent, or behind the price bars.

        Comment

        Working...
        X