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

Entry order locations

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

    Entry order locations

    Click image for larger version

Name:	sadfasdfasfeaceavaeaaadfadsfdas.png
Views:	94
Size:	61.6 KB
ID:	1219402

    How come when I'm using OnBarClose and sending an order to Sell at the HIGH, it doesnt do it?
    Code:
    EnterShortLimit(DefaultQuantity, High[0], "Short Entry");
    (I havent tried this Live or on Playback, this is just theoretical)

    #2
    if you cant tell, it entered at the middle of the candle not at the High
    I'm guessing its because its because it was for the order for the previous candle's High that ended up filling on this one (in the middle)

    Comment


      #3
      When the strategy is set to bar close, the price bar is only accessed once, at bar close. Nothing can happen till then and at that time the order goes in, but it looks delayed and at the wrong price level. When running on bar close, the current bar is not the rightmost bar. It is one bar to the left.
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        Hello ezrollin,

        Thank you for your patience.

        Correct, when you are calculating OnBarClose, this means that OnBarUpdate will only be called once at the close of each bar. There is no access to intrabar fills with this option. For more information:


        Please let us know if we may be of further assistance.
        Emily C.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by 00nevest, Today, 02:27 PM
        0 responses
        1 view
        0 likes
        Last Post 00nevest  
        Started by Jonafare, 12-06-2012, 03:48 PM
        5 responses
        3,986 views
        0 likes
        Last Post rene69851  
        Started by Fitspressorest, Today, 01:38 PM
        0 responses
        2 views
        0 likes
        Last Post Fitspressorest  
        Started by Jonker, Today, 01:19 PM
        0 responses
        2 views
        0 likes
        Last Post Jonker
        by Jonker
         
        Started by futtrader, Today, 01:16 PM
        0 responses
        9 views
        0 likes
        Last Post futtrader  
        Working...
        X