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

Error backTesting

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

    Error backTesting

    Hello,

    When I backTest my strategy, I make an error on the limit price of the orders and the result surprised me.
    I use ES 09-16 and I send all my ExitLongLimit at price =1. In real time, all this orders will be execute on Makert but I see in result that the price of execution of orders is 1!!

    Thanks.

    #2
    Hello Ikinaw,

    Thank you for writing in.

    It would be expected to see these results in a backtest or on historical trades on a chart to be filled at the limit price you have set for your ExitLongLimit() if it's below the market.

    In NinjaTrader 8, the exit order will fill at the market price rather than the price you have specified if it is below the market.

    You will instead want to use an ExitLongStop() or ExitLongStopLimit() order if you wish for your orders not to fill at the market price on live data (or the price you have specified historically/while backtesting) if the price is below the market.

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by habeebft, Today, 07:27 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Started by AveryFlynn, Today, 04:57 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Max238, Today, 01:28 AM
    4 responses
    37 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by r68cervera, Today, 05:29 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by geddyisodin, Today, 05:20 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X