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

Problem with market data price

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

    Problem with market data price

    I have a strategy, the strategy enter to short one tick below the low of the last bar and take profit of 8 ticks,
    I am running with market replay on ES-09 future, 5 minute bars,
    I saw in one of the position that the exit price was very far from the entry price and not even on the bar , what is the problem ? how can i rely on the strategy test with this kind of behaivors ?
    Click image for larger version

Name:	Capture.JPG
Views:	180
Size:	75.3 KB
ID:	1166114
    ​​​​​​​Thanks

    #2
    Hello yaniv,

    Thank you for your post.

    Most likely this is caused by a random bid or ask tick at that level - if you add a 1 tick bid and one tick ask series do you see one reported at that level at the time of the trade?

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Can you please tell me how to do that ?
      Thanks

      Comment


        #4
        Hello yaniv,

        Thank you for your reply.

        The easiest would be to open a second chart window and add two data series to it of the same instrument you're running the strategy on.

        For the first set the data series to use the following settings:

        Price Based on: Ask
        Type: Tick
        Value: 1

        For the second you'd want to use the following:

        Price Based on: Bid
        Type: Tick
        Value: 1

        Then run the strategy using Market Replay data on the original chart- the ask and bid charts should update as well. When you see the odd trade taken, check to see if you see that execution at a valid ask or bid price on the second chart.

        Please let us know if we may be of further assistance to you.
        Kate W.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Rapine Heihei, Today, 08:19 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        5 views
        0 likes
        Last Post Rapine Heihei  
        Started by f.saeidi, Today, 08:01 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 07:51 PM
        0 responses
        6 views
        0 likes
        Last Post Rapine Heihei  
        Started by frslvr, 04-11-2024, 07:26 AM
        5 responses
        98 views
        1 like
        Last Post caryc123  
        Working...
        X