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

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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by tsantospinto, 04-12-2024, 07:04 PM
        5 responses
        67 views
        0 likes
        Last Post tsantospinto  
        Started by cre8able, Today, 03:20 PM
        0 responses
        6 views
        0 likes
        Last Post cre8able  
        Started by Fran888, 02-16-2024, 10:48 AM
        3 responses
        48 views
        0 likes
        Last Post Sam2515
        by Sam2515
         
        Started by martin70, 03-24-2023, 04:58 AM
        15 responses
        114 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by The_Sec, Today, 02:29 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X