|
|||||||||||||||||||
|
|||||||||||||||||||
| Special offer: buy AmiBroker and EOD+Real-Time Data |
|
Written by: Craig Nelson Date found: 6 oct 97 OK, a little background. This indicator will calculate the correct Historical Volatility, that is the REAL historical volatility based on the daily changes(and not Omega definition of volatility) in closing prices. As far as I know, and based on what I see in my indicator list, there isn't a UF or Indicator that does this. For those that trade options, historical vol is what is compared to market-implied vol to help detect overpriced/underpriced situations and how to figure out if premiums are fat or lean. Anyway, the Indicator verifies OK, but when I try to format the indicator in a chart I get a GPF from TS. I'm not sure if this might be caused by a "stack overflow" from the multitudinous calculations, or if there is a "divide by zero" problem that slipped through the cracks. Can others copy and paste this code into TS and see if they get a GPF? The above code is a combination of "reinventing the wheel", "divide and conquer", and the useful suggestions that poured in after I sent out my initial request. I'm certainly no EL expert, but I'm learning. Thanks to all who helped. Hopefully, if we can get the GPF bug worked out this should be a useful indicator to have, assuming Omega hasn't already included it in TS 4.0 or their next release. My version of TS is 3.51. Code:
all formulas for TradeStation all formulas
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators and systems are submitted by anonymous users. Therefore S4T™ does not take any responsibility for it's quality. If you use any of this information, use it at your own risk. You are responsible for your own trading decisions. Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade. In no case will S4T™ be responsible for your trading gains or losses. |
|
|