Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Coding using specific ETF's

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

    Coding using specific ETF's

    Hello,
    To introduce myself, I'm new to NinjaTrader; I have the free version now but plan on purchasing once I become more familiar with NinjaScript. I have a basic grasp so far, and have experience using MATLAB and Excel. As for my question:
    I'm trying to develop a contrarian strategy using the VIX. I want to use VIX performance to produce orders on SPY. I'm getting a coding error on an if command.
    CrossAbove("VIX", (Bollinger(Sdev, SMA)), 1)
    EnterLong("SPY")

    I'm getting a few errors but can't figur out what's wrong. Am I approaching this incorrectly? Should I declare SPY and VIX somewhere else? Let me know if you need more information.

    Thanks

    #2
    smcclendon3, thanks for the post and glad to see you using NinjaTrader for your strategy works.

    What you would want to create is a so called MultiSeries strategy in our NinjaScript, we ship a dedicated example with the 'SampleMultiInstrument' script installed per default with NT - I would suggest to closely review it's structure first to get started.

    More documentation on this topic can also be found here introducing the framework you would operate in : http://www.ninjatrader.com/support/h...nstruments.htm
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by techgetgame, Yesterday, 11:42 PM
    0 responses
    8 views
    0 likes
    Last Post techgetgame  
    Started by sephichapdson, Yesterday, 11:36 PM
    0 responses
    2 views
    0 likes
    Last Post sephichapdson  
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,613 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Yesterday, 05:56 PM
    0 responses
    10 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    20 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X