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 RideMe, 04-07-2024, 04:54 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by f.saeidi, Today, 08:13 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by DavidHP, Today, 07:56 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by kujista, Today, 06:23 AM
        3 responses
        9 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by Mindset, Yesterday, 02:04 AM
        2 responses
        18 views
        0 likes
        Last Post NinjaTrader_RyanS  
        Working...
        X