• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Instrument values

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

    Instrument values

    Hello,
    I am trying to code an indicator that uses prices and indicator values from several different forex instruments not just from the instrument on current chart.

    Which function do I use to get for example $GBPUSD bid price or example $AUDUSD ATR etc?

    Is it possible to retrieve the values from different instruments?

    #2
    Hello matt_,

    Thanks for your post and welcome to the forums!

    Yes, you can retrieve values from different instruments. In your indicator code you would need to add the various instruments to then access their data. This creates a multi-instrument script which then changes your coding as each added instrument will call OnBarUpdate(). The helpguide provides a dedicated section for understanding the code considerations for a multi time frame or multi instrument script. Please review the complete section of the helpguide (it progressively builds examples) here: http://ninjatrader.com/support/helpG...nstruments.htm
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AxelrodWins, Today, 09:56 PM
    0 responses
    1 view
    0 likes
    Last Post AxelrodWins  
    Started by trader14, Today, 08:12 PM
    0 responses
    6 views
    0 likes
    Last Post trader14  
    Started by ypbtrainer, Today, 05:38 PM
    0 responses
    2 views
    0 likes
    Last Post ypbtrainer  
    Started by GARZONJ, Yesterday, 11:22 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by mike09, Yesterday, 07:37 PM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X