Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need refresh link on existing topic "Keep Limit Order"

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

    Need refresh link on existing topic "Keep Limit Order"

    Hi there, I figure best option here is to do a refresh on the link provided... The thread is titled "Keep Limit Order" . Question was answered & I'm after the hard code answer.

    Here is a link to the thread: https://forum.ninjatrader.com/forum/...ep-limit-order

    Your answer:

    Hello, thanks for writing in. We have an existing example that keeps the resting orders alive by re-submitting the order on every bar it should be active:

    https://ninjatrader.com/support/foru...der#post806596

    In an unlocked script, you can use the order overload that allows you to keep the order alive without needing to re-submit:

    https://ninjatrader.com/support/help...ders_alive.htm



    The unlocked link is a dead page.

    Looking for new link.

    Thanx!

    #2
    Hello johnMoss,

    I see that the link is still valid, you can manually access that page by going to the help guide and use the left side menu -> NinjaScript -> Educational resources -> Reference samples -> Strategy -> Keeping orders alive.

    Comment


      #3
      Thank you Jesse, I'm not finding anything titled 'help guide' on several search approaches... Apologies... . the help guide... Gotta Link ?

      Comment


        #4
        Hello johnMoss,

        You can press F1 in the platform to access the help guide. It is also in the Help -> Hep guide menu. This is the link additionally:

        Comment


          #5
          OK Thank you... Got it, got the reference file, but it won't compile.

          Here is the NT8 sample code:

          EnterLongLimit(0, true, DefaultQuantity, entryPrice, "live until cancelled long");

          Here is the attempt:

          EnterLongLimit(0, true, (Convert.ToInt32(Contracts), EMA[0], "Long"));

          Synopsis: On conditions met, fire a long entry with the number of contracts stipulated in the user interface.


          On Compile, errors are generated re indexing, bool to double, & double to bool. Anything you see here stand out as obvious?

          Comment


            #6
            Hello johnMoss,

            From what I can see you have some unneeded code, try using the following isntead. If you still get an error please posst the error.

            EnterLongLimit(0, true, Contracts, EMA[0], "Long");

            Comment


              #7
              Corrected, compiled... Thank you sir...

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              52 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              130 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              70 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              44 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              48 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X