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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sjsj2732, Yesterday, 04:31 AM
    0 responses
    28 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    284 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    281 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    132 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X