Announcement

Collapse
No announcement yet.

Volatility indicator

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

  • Volatility indicator

    Dear sirs,

    Can someone build this useful indicator ?

    The indicator is ATR(55) divided by the difference between the Upper and Lower Bollinger Bands (Bollinger Bands parameters defined by the user).

    This looks as:
    ATR(55)/(upper BB - Lower BB)

    By default: length = 20 and 2 for standard deviation for the Bollinger Bands.

    This indicator is useful to measure volatility conditions.

    Kind regards,

    P.

  • #2
    pbereau
    The following will calculate the indicator

    PHP Code:
    var Volatility atr(55,0) / (upperBB(20,2,0) - lowerBB(20,2,0)); 
    Use the template available in this thread to complete the efs. Insert the line shown above inside the main function of the efs and use return (Volatility); as the return statement.
    To add user defined parameters see the post How to add user defined parameters to an efs at the same link.
    For more information on the EFS2 functions and studies see the EFS2 Function Reference in the EFS KnowledgeBase
    Alex

    Comment


    • #3
      Thanks Alexis

      I follow your instructions but the indicator appears in the chart...and i want it in the indicator window...how to achieve that ?

      Thank you

      Comment


      • #4
        pbereau
        If you used the efs template I suggested then check that the setPriceStudy() statement in the preMain function is set to setPriceStudy(false)
        Alex

        Comment

        Working...
        X