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

Average Fill is miles away from CLOSE[0]

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

    #16
    Hi cocopod,

    When you mention "the point is that when this was submitted via the OnExecution event it placed the pending order at 1159. The market appeared to Gap up on the same tick or was very generous in the filling of my original order." I am having a hard time deciding which order you are saying is incorrect.

    What is the undesired behavior?

    Is the original order getting a generous fill the undesired behavior?

    There is no way to prevent a limit order from being filled at a better price if the market price reaches a better price before the limit fills. This is not possible to do with any broker on any platfrom that I know of. This is just the nature of how limit orders work.

    Below is a link to Investopedia where you can learn more about how limit orders work.
    http://www.investopedia.com/terms/l/limitorder.asp
    Last edited by NinjaTrader_ChelseaB; 11-21-2014, 04:22 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Hi Chelsea,

      Alls well that ends well. I am actually indeed happy with the better fill. I suppose the issue I had was where to place the stop loss and I coined the rule that when short one must place the Stop loss at the higher value of AveFill vs.Close[0]. The reverse is true for when long.

      Have a look at my other post please chelsea. I think that OrderCancel() doesn't work


      C

      Comment


        #18
        Hi cocopod,

        Can I get a link to your other post so I know I am in the right place?
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Brevo, Today, 01:45 AM
        0 responses
        3 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        3 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        239 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        6 views
        0 likes
        Last Post oviejo
        by oviejo
         
        Working...
        X