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 junkone, Today, 11:37 AM
        0 responses
        2 views
        0 likes
        Last Post junkone
        by junkone
         
        Started by quantismo, 04-17-2024, 05:13 PM
        5 responses
        34 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by proptrade13, Today, 11:06 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        34 views
        0 likes
        Last Post love2code2trade  
        Started by cls71, Today, 04:45 AM
        2 responses
        10 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Working...
        X