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 aligator, 07-13-2022, 12:51 PM
          18 responses
          347 views
          1 like
          Last Post scottytuckerjr23  
          Started by wobmon, Yesterday, 11:56 AM
          12 responses
          46 views
          0 likes
          Last Post rockmanx00  
          Started by khufford, Today, 05:37 PM
          1 response
          14 views
          0 likes
          Last Post khufford  
          Started by 12VMan, Today, 06:11 PM
          0 responses
          6 views
          0 likes
          Last Post 12VMan
          by 12VMan
           
          Started by rocker84, 02-10-2025, 11:58 AM
          2 responses
          16 views
          0 likes
          Last Post rocker84  
          Working...
          X