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

Tick by tick backtesting

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

    Tick by tick backtesting

    Hi,

    I want to be able to backtest this strategy tick by tick. The way I want it to work is place a short stop entry on the next bar after the criteria are met. If it's filled, I want it to accurately backtest whether it hits an 8 tick target, or 8 tick stop. Currently it will stop out if the 10 minute prints at least 8 ticks above the entry regardless of whether the ticks hit an 8 tick profit first. Is this going to be possible?
    Attached Files

    #2
    Hello jeremy1375,

    Welcome to the NinjaTrader forums!

    Yes, this is possible. You will want to work from this reference sample:
    You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by


    You will want to use Exit() statements submitted to the tick series instead of Set statements.
    All exit statements like ExitLongLimit() and ExitLongStop() have an overload that allows you to submit to a specific series.
    Last edited by NinjaTrader_RyanM1; 12-06-2010, 04:29 PM.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    57 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    20 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    9 views
    0 likes
    Last Post cre8able  
    Working...
    X