Announcement

Collapse
No announcement yet.

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.

      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 Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                601 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                347 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                559 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                558 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X