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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      214 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      130 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      146 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      230 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      192 views
      0 likes
      Last Post CarlTrading  
      Working...
      X