• 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

Access Instrument.Fullname from State.SetDefaults, or Configure?

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

  • NinjaTrader_ChelseaB
    replied
    Hello funk101,

    By default, the primary instrument of the indicator will be the series that the indicator is added to and also by default this will be the data series in panel 1.

    Instrument.FullName, Closes[0], BarsInProgress 0, BarsArray[0], CurrentBars[0] will all refer to this primary instrument.

    Are you wanting to get the instrument of panel 2?
    Try using:
    Code:
    ChartControl.BarsArray[1].Bars.Instrument.FullName

    Leave a comment:


  • Access Instrument.Fullname from State.SetDefaults, or Configure?

    My spread indicator needs two dataseries. How can I set the first instrument to default to the instrument in Panel 1?
    I tried accessing Cbi.Instrument.FullName from state but to no avail.
    Please point me in the right direction.
    Thanks

Latest Posts

Collapse

Topics Statistics Last Post
Started by chaitunt, Today, 10:13 PM
0 responses
3 views
0 likes
Last Post chaitunt  
Started by lwyatt100, Today, 10:13 PM
0 responses
4 views
0 likes
Last Post lwyatt100  
Started by cyberjames2019, Today, 09:03 PM
0 responses
8 views
0 likes
Last Post cyberjames2019  
Started by gjbeaudin, Today, 08:47 PM
0 responses
4 views
0 likes
Last Post gjbeaudin  
Started by karolwatcher, Today, 08:15 PM
0 responses
7 views
0 likes
Last Post karolwatcher  
Working...
X