• 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 Stok, Today, 08:44 AM
    0 responses
    3 views
    0 likes
    Last Post Stok
    by Stok
     
    Started by Longhornmark, Today, 08:22 AM
    0 responses
    4 views
    0 likes
    Last Post Longhornmark  
    Started by akuntysh, Today, 12:02 AM
    2 responses
    10 views
    0 likes
    Last Post akuntysh  
    Started by hir04068, Today, 04:26 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by Revan, Yesterday, 11:53 PM
    4 responses
    27 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X