Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Analyzing weird very short time-frame behavior

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

    Analyzing weird very short time-frame behavior

    Hi Ninjas,

    I have a situation here that I can't still understand quite well, cause for sure it has to do with transmission order's velocity and the filling process when the Script is in "live" trading. This issue doesn't occur in backtest.

    As you can see in the chart attached, there's a a very short time-frame range bar chart, there you could see the following example about what I mean:

    At 7:15:39 the system opened a short position, holding it until 7:16:41, when a new bar is created, opening at 1.35885 and the system triggered correctly a BUY order to cover. As you can see in the chart despite the open of the new bar is at 1.35885 , the BUY order is filled upper, at 1.3589

    I'd like to know why does this happen, and what could I do in order to prevent it or minimizing it ?

    Thanks
    Attached Files

    #2
    Hi Pstrusi,

    Thank you for your post.

    To clarify, What do you set your CalculateOnBarClose to? True or False?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Of course on True

      Comment


        #4
        I was reviewing tick by tick the building of those bars in the example and there's not any tick out of that range, the only logic reason would be simply that all those prices in the EURUSD are always BID prices, so when the system triggers a BUY order it will fill it possibly at the ASK prices, which generally is halfpip above BID.

        If you have any other idea or suggestion please share.

        Thanks

        Comment


          #5
          Pstrusi,

          Yes, with long market orders you will get filled at the Ask price. If you change the chart to an Ask chart you will see your executions closer to the bar values that you are looking for.

          Something to consider as well is that there is the spread with the Forex which is generally greater than the that of Futures.

          Additionally, with market orders you will get filled at where ever the market will fill you at.

          Let me know if this helps
          Cal H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          71 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          39 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X