Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

pointvalue selected instrument

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

    pointvalue selected instrument

    Hello.
    I am working on an indicator that will work on a graph with 2 instruments, mini and its micro. I can't access the pointvalue of the selected instrument in the chartrader.
    I know the masterinstrument.pointvalue but it's not what I need. What I am looking for is that it returns the pointvalue of the selected instrument.
    Could you help me?
    Thanks in advance​

    private void OnChartTraderInstrumentSelectionChange(object sender, EventArgs e)
    {
    if (myInstrumentSelector.SelectedValue != null)
    {
    Instrument selectedInstrument = Instrument.GetInstrument(instrument);
    }
    }

    i get the instrument selected selectedInstrument.PointValue is not working.​

    #2
    Hello manueldecastro,

    Thank you for your post.

    Have you tried using selectedInstrument.MasterInstrument.PointValue?



    PointValue is only available from MasterInstrument, so this must be added to selectedInstrument.

    Please let us know if you have any further questions.

    Comment


      #3
      selectedInstrument.MasterInstrument.PointValue
      I think this is not possible, I was getting an error.
      I finally fixed it with some if to determine the mini/micro instrument with .startwith
      Regarding adding the .pointvalue to selected instrument, I don't understand how I could do it.​

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X