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

Overfilling error

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

    Overfilling error

    I have no programming notions but I have learned very well to use the strategy wizard of Ninjatrader 7. I use a strategy that has not given me any problems so far but tonight it gave me an over filling message (and luckily it closed all the orders ). I enter a stop at a certain level and use the barsinceentry(2) exitlongposition to be sure to leave the market (having a take profit and a normal stop loss in the past has given me many problems because I work on breakouts and the movements are so fast that sometimes the system did not have time to place the orders of take profit and stop loss and remained in the market even if not wanting it). Tonight I had set the strategy with 2 contracts. This is a simple strategy that: SET1 enter stop long at a price level; set 2: bar since entry 2 - exit long posistion.
    Can you help me?

    #2
    Hello.

    Thanks for the note, and welcome to the NinjaTrader forum.

    Please see this forum post from my colleague where he explains what overfill is and how to handle overfill in your script:



    The post above contains all the information needed to identify and handle overfill error. Note: you will need to unlock your code to implement overfill handling.

    Please let us know if we may be of any further assistance.
    Last edited by NinjaTrader_ChrisL; 03-26-2018, 12:29 PM.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thank you very much. I have read all the Threads with great interest
      I understand more or less what an overfilling is. What I do not understand is why I have this error on my very simple strategy. I go long with a stop order and close at market after 2 bars. What's the problem?

      Comment


        #4
        Hello.

        Thanks for the reply.

        I will need to look at your log files to see why an overfill occurred in this instance.

        Please send me your log and trace files to*platformsupport[at]ninjatrader[dot]com.*
        You can do this by going to the Control Center-> Help-> Mail to Platform Support.
        Please reference the following in the email body:*ATTN ChrisL <Paste forum link here>

        I look forward to your reply.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Thank you! I sent the trace to support!
          I would like to know how I can do to be sure that after 2 bars (Barsinceentry = 2) all positions are closed regardless of over filling .
          Thank you again!

          Comment


            #6
            Hi Chris! I sent you the trace and the strategy. Have you any news? Thank you!

            Comment


              #7
              Hi Chris! Sent trace, strategy and log! Can you tell me something today?

              Comment


                #8
                Hello.

                Thanks for the follow up.

                I am reviewing now.
                Chris L.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by ScottWalsh, 04-16-2024, 04:29 PM
                6 responses
                27 views
                0 likes
                Last Post ScottWalsh  
                Started by frankthearm, Today, 09:08 AM
                10 responses
                35 views
                0 likes
                Last Post frankthearm  
                Started by GwFutures1988, Today, 02:48 PM
                0 responses
                2 views
                0 likes
                Last Post GwFutures1988  
                Started by mmenigma, Today, 02:22 PM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by NRITV, Today, 01:15 PM
                2 responses
                9 views
                0 likes
                Last Post NRITV
                by NRITV
                 
                Working...
                X