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

Reload Ninjascript internally

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

    Reload Ninjascript internally

    im trying to call the F5 hotkey essentially to reload the whole shabang after modifying a property or two,
    something like this
    ChartControl.OnAutoScaleAndReturnHotKey (sender, e)
    which calls the fixed scale hotkey event, but I cant find the event for reloading the entire ninjascript, though I'm know it must exist
    thanks

    #2
    You may want to look at https://ninjatraderecosystem.com/use...indications-2/ which demonstrates reloading the chart with all of its ninjascript on a user event.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello Entwaze,

      There is not a exposed method in NinjaScript for that purpose, if you want to call the F5 reload you would have to use a techniqueue like the one that was linked in post 2.

      About your description, if you mean changing properties in the Indicators menu, that will reload the indicator once you apply or press OK on that menu so no additional F5 would be needed for that use.
      JesseNinjaTrader Customer Service

      Comment


        #4
        Im updating it from a wpf button that is part of an add on NinjaTrader_Jesse thanks for the script QuantKey_Bruce I should be able to send that F5 key to reinitiate the on bar update loop;

        Comment


          #5
          that being said, im realizing in the add on, I will need focus on the indicator, so it would be really great if there was an onevent reload override for the ninjascript base, if you're working in the same script the f5 key trick would probably do it, but its still not internal

          Comment


            #6
            okay i got, i just set up an event to trigger the other script and then send the F5 key, thanks Bruce!

            Comment


              #7
              You're welcome. Sounds like you got there.
              Bruce DeVault
              QuantKey Trading Vendor Services
              NinjaTrader Ecosystem Vendor - QuantKey

              Comment


                #8
                Yes that event trigger for a key in the keyboard helped a ton thanks bro

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by sofortune, Today, 10:05 AM
                3 responses
                15 views
                0 likes
                Last Post NinjaTrader_ChristopherJ  
                Started by ETFVoyageur, 05-07-2024, 07:05 PM
                23 responses
                185 views
                0 likes
                Last Post ETFVoyageur  
                Started by reynoldsn, 05-10-2024, 07:04 PM
                7 responses
                39 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by ETFVoyageur, Today, 02:15 AM
                5 responses
                31 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by drnoggin, Today, 12:19 PM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X