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 samish18, Today, 10:13 AM
    0 responses
    2 views
    0 likes
    Last Post samish18  
    Started by kenz987, Yesterday, 10:20 AM
    2 responses
    13 views
    0 likes
    Last Post kenz987
    by kenz987
     
    Started by nicthe, 08-23-2023, 07:53 AM
    7 responses
    196 views
    0 likes
    Last Post nicthe
    by nicthe
     
    Started by nicthe, Today, 09:24 AM
    0 responses
    5 views
    0 likes
    Last Post nicthe
    by nicthe
     
    Started by stalt, 12-28-2015, 01:36 PM
    6 responses
    1,536 views
    0 likes
    Last Post giulyko00  
    Working...
    X