Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Reset InstrumentSelector?

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

    Reset InstrumentSelector?

    When initially ready for use, an InstrumentSelector shows Select as the value of the selected item, and then one can select from the available instruments.

    Having selected an instrument, how does one reset the InstrumentSelector to once again display Select and essentially have no selected instrument, exactly as when first used?

    Thanks.

    SOLVED (apparently): I eventually discovered that setting the StringValue property to an empty string resets it.

    If this is not the "correct" way, please advise. Thanks.
    Last edited by jeronymite; 05-18-2020, 06:53 PM. Reason: Found a solution.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello jeronymite,

    Thank you for the post.

    If setting the property that you have to an empty string resets it to the first state I would say that is likely going to be the solution. You may also try setting the selected instrument to null but what you have is likely fine. I don't see any issue with what you are doing based on the description, if that does not work in some way it will only affect your selector so there is not really any concern of that being a problem. If you see an issue surrounding that can you provide a small sample of what property you set so I can test that on my end?

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      i have followed you and i'm fine not to have detected the bug or something.



      ___________________________________
      sonidos mp3 gratis populares
      Last edited by CatherineLamb; 08-10-2021, 10:43 PM.

      Comment


        #4
        I have yet to move and I have to find someone with experience for SOLVED

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mattbsea, Today, 05:44 PM
        0 responses
        5 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        4 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,282 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        20 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Working...
        X