Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Historical Volatility (Any Time Period)

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

    Historical Volatility (Any Time Period)

    This is a historical vol indicator of any time period (minute, day, month, week). It will for example calculate the historic volatility for the last 9 1 minute bars if used in a 1 minute chart with HistVolAny(9). Whatever you like. Not usable in tick/range/volume charts due to indeterminate length of time for the bar sample. (actual time length is needed to calculate annualized rates)

    Usage is as simple as HistVolAny(numberofbars)[0].

    The other histvol indicator only lets you find x day (session) moving historical volatility while in a minute or smaller timeframe.

    You may of course combine the use of the two, but this one gives a more accurate (and volatile) measure of HV possibly in a very short time period. (Fascinating and useful to know the practically instantaneous HV when entering a trade) In some ways this result could be correlated to bollinger band sizes as a percentage of the instrument.
    Attached Files
    Last edited by scriabinop23; 02-02-2008, 01:08 PM.

    #2
    indicator HV

    I got an error message when I tried to import what am I doing wrong?

    Comment


      #3
      Originally posted by ninjablanks View Post
      I got an error message when I tried to import what am I doing wrong?
      I programmed these using NT 6.508. Is it possible you are using 6.0?
      I checked it on NT 6.0, and you need to comment out the range bars line (line 61) like this to import it successfully (it does work):

      // ||(Bars.Period.Id == PeriodType.Range)


      Last edited by scriabinop23; 02-04-2008, 10:02 PM.

      Comment


        #4
        Originally posted by scriabinop23 View Post
        This is a historical vol indicator of any time period (minute, day, month, week). It will for example calculate the historic volatility for the last 9 1 minute bars if used in a 1 minute chart with HistVolAny(9). Whatever you like. Not usable in tick/range/volume charts due to indeterminate length of time for the bar sample. (actual time length is needed to calculate annualized rates)

        Usage is as simple as HistVolAny(numberofbars)[0].

        The other histvol indicator only lets you find x day (session) moving historical volatility while in a minute or smaller timeframe.

        You may of course combine the use of the two, but this one gives a more accurate (and volatile) measure of HV possibly in a very short time period. (Fascinating and useful to know the practically instantaneous HV when entering a trade) In some ways this result could be correlated to bollinger band sizes as a percentage of the instrument.
        Hi .

        I tried using you HistVolAny indicator. It returns the value 0 all the time. This is how I use it :
        EMA_offset=HistVolAny(EMA_period)[0];

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,221 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        6 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        437 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        9 views
        0 likes
        Last Post FAQtrader  
        Working...
        X