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 helpwanted, Today, 03:06 AM
    0 responses
    3 views
    0 likes
    Last Post helpwanted  
    Started by Brevo, Today, 01:45 AM
    0 responses
    7 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X