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

Analyzing different instruments

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

    Analyzing different instruments

    Hello!
    I'm pretty new to Ninjatrader and would like to develop my own strategy. Unfortunately I don't understand how I can analyse two different stocks at at time.

    Basically I want do the following:

    - if the RSI of stockA is bigger than of stockB then close the position of stockB (when I was long) and buy stockA

    - if the RSI of stockB is bigger than of stockA then close the position of stockA (when I was long) and buy stockA

    Can somebody help out? I have especially a problem with the term "if the RSI of stockB is bigger than of stockA" ...

    Thank you very much in advance
    Kejo
    Last edited by kejo84; 05-04-2013, 04:26 AM.

    #2
    Hello Kejo,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    I recommend reviewing the information at the following link for details on how to use multiple time-frame and instruments in your strategy: http://www.ninjatrader.com/support/h...nstruments.htm

    For the RSI greater then and RSI of another instrument you willneed to use BarsArray: http://www.ninjatrader.com/support/h.../barsarray.htm

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    14 views
    0 likes
    Last Post strategist007  
    Working...
    X