Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ninjascript help

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

    ninjascript help

    hello.

    i have made this script to place a long limit order when a certain high is meet, with stops and profit targets, i am using a 15min ES chart for this.
    now everything works fine the way i want it, but the problem is when that high is meet it will place a long limit order fine, but if that 15min bar high that trigger the strategy to place the long limit order closes with out triggering the strategy, it will remove the long limit order and cancel the strategy.
    how can i tell NT to not too cancel anything until all the strategy have been fulfill?
    i also wan to be able to cancel the strategy if another greater high have been reached if the strategy have not been fulfill.

    thanks.
    Attached Files

    #2
    Hello,

    Thank you for your forum post.

    The reason this occurs is due to the following with Managed Orders:

    Order Submission for Entry and Exit Methods - Basic Operation
    You can submit and manage orders in one of two ways:

    • <LI class=rvps1>Orders that automatically expire (cancel) at the end of a bar unless re-submitted
    • Orders that are live until you purposely cancel them



    Please see the following page for options on how to work this. Essentially you need to recall the EnterLongLimit on every bar update that you want the limit order to remain in the market unless you specify with advanced order handling that the order is live until cancelled as described on this page:



    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      hello.

      thanks very much for you help.
      i am not an expert on this yet.
      it was easy at first with the wizard and all but not so much any more.
      so not quite sure how to work with what you have explained to me.
      could you modified my ninjascript so i can see how it's done?

      thanks.

      Comment


        #4
        Hello,

        Unfortunately I am unable to code this for you. You would need to contact a NinjaScript consultant to have this coded for you/modified.


        NinjaScript Consultants:




        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        27 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        18 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X