Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to include VIX into trading strategy?

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

    How to include VIX into trading strategy?

    Hi,

    The VIX is the volatility index indicator. I am trying to create a strategy where the strategy is only active when the VIX is above 20. If it is below 20, the strategy doesn't trade at all.

    Can anyone advice me on how to execute this?

    If it helps, I found this article on the VIX indicator online : http://valtinho.com/post/VIX-Indicat...aTrader-7.aspx

    I tried to place the code into an indicator and click "generate", but when I use it I don't get anything though.

    Can anyone help?

    Thanks in advance guys! Really appreciate any help given (:

    #2
    You can display the VIX as a dataseries in a chart, no need for an indicator.
    The strategy can be programmed to use this dataseries internally.

    I tried to place the code into an indicator and click "generate", but when I use it I don't get anything though.
    That's probably because there is no VIX data available, because the intrument name is wrong. What dataprovider are you connected to ? Sometimes the VIX is named differently something like ^VIX or $VIX.
    Are you able to display the VIX in a chart in NinjaTrader ? Can you create a chart of the VIX in your dataprovider software ?

    small update of the VIX indicator ypu posted, see attachment
    I tested this indicator connected to IB and it works fine after some minor changes.
    I changed the code so it "reads" teh VIX value from daily bars, but redraws the VIX line on every primary barupdate. I'm assuming here that the VIX is Daily barseries , and your primary barsseries (the instrument you're trading) is faster, like 10 min or so.

    Marco
    Attached Files
    Last edited by marcow; 08-19-2012, 10:30 AM.

    Comment


      #3
      Sorry I have edited the values code to minute instead of day and it is now working (:
      Last edited by comfy; 08-22-2012, 11:59 AM.

      Comment


        #4
        comfy,

        The indicator may either require a type of historical data you haven't downloaded yet, or there is something wrong in the indicator code.

        Can you post the code here?
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        368 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        571 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X