NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 06-18-2012, 04:16 AM   #1
joeydisco
Junior Member
 
Join Date: May 2012
Posts: 27
Thanks: 10
Thanked 1 time in 1 post
Default Historical Volatility Indicator?

Hi,

Can anyone tell me what the correct indicator is for the historical volatility of a stock?

Thanks in advance.
joeydisco is offline  
Reply With Quote
Old 06-18-2012, 04:30 AM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello joeydisco,
The ATR indicator measures the volatility of an instrument. Please refer here to know more about it.
http://www.investopedia.com/terms/a/atr.asp

The ATR indicator comes natively in NinjaTrader.
http://www.ninjatrader.com/support/h...indicators.htm

Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 06-18-2012, 04:54 AM   #3
joeydisco
Junior Member
 
Join Date: May 2012
Posts: 27
Thanks: 10
Thanked 1 time in 1 post
Default

Thanks but the ATR does not represent historical volatility as calculated here:

http://www.lfrankcabrera.com/calc-hist-vol.pdf

For instance, you would not use the ATR as a volatility input when trading options, you would use historical volatility.
joeydisco is offline  
Reply With Quote
Old 06-18-2012, 05:06 AM   #4
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello joeydisco,
For options, VIX (symbol in NinjaTrader (^VIX) is taken to calculate the volatility. Please refer here to know more
http://www.cmegroup.com/trading/opti...y-indexes.html

VIX is appended as an index in NinjaTrader and you can create a chart of it if your connectivity provider provides data for VIX.
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Old 06-18-2012, 05:58 AM   #5
joeydisco
Junior Member
 
Join Date: May 2012
Posts: 27
Thanks: 10
Thanked 1 time in 1 post
Default

Thanks.

That is something I was looking for as well.
joeydisco is offline  
Reply With Quote
The following user says thank you to joeydisco for this post:
Old 06-18-2012, 06:42 AM   #6
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,219
Thanks: 24
Thanked 1,231 times in 1,002 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by joeydisco View Post
Thanks but the ATR does not represent historical volatility as calculated here:

http://www.lfrankcabrera.com/calc-hist-vol.pdf

For instance, you would not use the ATR as a volatility input when trading options, you would use historical volatility.
You would have to code an indicator to use that formula then.
koganam is offline  
Reply With Quote
The following user says thank you to koganam for this post:
Old 06-19-2012, 11:54 AM   #7
joeydisco
Junior Member
 
Join Date: May 2012
Posts: 27
Thanks: 10
Thanked 1 time in 1 post
Default

Let's say I have an equity trading system and I want to add a condition that says I should buy or sell when the VIX is X% above or below its' moving average.

How would I go about doing this?

Thanks.
joeydisco is offline  
Reply With Quote
Old 06-19-2012, 12:21 PM   #8
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello joeydisco,
You have to create a multi-series indicator to this. Please refer to this help guide link which further discusses the multi-series concepts
http://www.ninjatrader.com/support/h...nstruments.htm
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Old 06-24-2012, 02:12 AM   #9
joeydisco
Junior Member
 
Join Date: May 2012
Posts: 27
Thanks: 10
Thanked 1 time in 1 post
Default

Is it not possible to do this by adding a condition to the strategy wizard?

i.e. If VIX index > 10 SMA
then Enter long position on stock X?

I'm not calculating any new values that Ninjatrader wouldn't already have access to so I imagine I wouldn't have to create a new indicator.
Last edited by joeydisco; 06-24-2012 at 02:50 AM.
joeydisco is offline  
Reply With Quote
Old 06-24-2012, 07:33 AM   #10
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,219
Thanks: 24
Thanked 1,231 times in 1,002 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by joeydisco View Post
Is it not possible to do this by adding a condition to the strategy wizard?

i.e. If VIX index > 10 SMA
then Enter long position on stock X?

I'm not calculating any new values that Ninjatrader wouldn't already have access to so I imagine I wouldn't have to create a new indicator.
The VIX is a separate instrument to which you are referring in another instrument's chart. That makes it multi-instrument. So, no, you must use a multi-instrument strategy: you cannot do what you want to do, in the manner that you have asked.
koganam is offline  
Reply With Quote
Old 06-24-2012, 09:20 AM   #11
joeydisco
Junior Member
 
Join Date: May 2012
Posts: 27
Thanks: 10
Thanked 1 time in 1 post
Default

So can I create a multi-instrument strategy using the strategy analyzer or do I have to code something from scratch?

Thanks in advance.
joeydisco is offline  
Reply With Quote
Old 06-24-2012, 09:28 AM   #12
Radical
Senior Member
 
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
Default

You have to do it with code.
Radical is offline  
Reply With Quote
Old 06-25-2012, 04:04 AM   #13
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello joeydisco,
As Radical and koganam already mentioned, you have to code it via the NinjaScript editor. You cannot do it via the Strategy Wizard.

Thanks Radical and koganam for your inputs.
NinjaTrader_Joydeep is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need volatility indicator renkoben Indicator Development 16 11-14-2012 03:11 AM
Raschke & Connors 6/100 Historical Volatility TrendTracker Indicator Development 1 10-28-2011 08:37 AM
Historical Volatility (Any Time Period) scriabinop23 NinjaScript File Sharing Discussion 3 06-29-2010 03:36 PM
Volatility indicator ? T2020 Indicator Development 3 03-25-2010 10:05 AM
Historical Volatility Ratio simul316 Indicator Development 0 06-23-2007 06:57 PM


All times are GMT -6. The time now is 10:37 AM.