Announcement

Collapse
No announcement yet.

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:	162
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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        89 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X