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 PeakTry, Today, 10:49 AM
    0 responses
    2 views
    0 likes
    Last Post PeakTry
    by PeakTry
     
    Started by llanqui, Today, 10:32 AM
    0 responses
    4 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by StockTrader88, 03-06-2021, 08:58 AM
    45 responses
    3,992 views
    3 likes
    Last Post johntraderuser2  
    Started by TAJTrades, Today, 09:46 AM
    0 responses
    8 views
    0 likes
    Last Post TAJTrades  
    Started by rhyminkevin, Yesterday, 04:58 PM
    5 responses
    62 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X