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

Execution on the same bar

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

    Execution on the same bar

    Hi all!

    I'm fighting with a system "scalping like", a lot of trades are filled in/out on the same bar, so while backtesting executions I'm observing many trades are not possible because, in example on a 2 mins bar, the system do not know what happened during the bar formation.

    Attached a snapshot of deals I'm lookig to develop in order to get a better backtest.

    Thanks in advance for any suggestions,

    Regards

    marce
    Attached Files

    #2
    imported post

    Marce,

    I am not sure if there are any tricks of the trade that will provide you with what you are looking for. We do have on our list for future enhancement support for intrabar resolution backtesting which I suspect is what you would ultimately want.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Right Ray, thanks for your answer.

      I thought to code something to develop the DefaultFillType.cs, just to add some condition during execution in order to filter trades, but I'm not sure this solution will work fine.

      Another question regarding accounts and systems, what if I execute different strategies on the same symbol?

      Regards

      Marce

      Comment


        #4
        imported post

        DefaultFillType.cs is only applicable to historical backtest and is not used to fill real-time simulation. There is no way to change the internal real-time simulation fill logic.

        You can execute different strategies on the same symbol no problem in the same account. Keep in mind, the strategy positions will not be in sync with the actual account position. For example, StrategyA can be long 1 contract while StrategyB can be short 1 contract which would be FLAT in your real account.

        Ray
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Kaledus, Today, 01:29 PM
        3 responses
        9 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by frankthearm, Yesterday, 09:08 AM
        14 responses
        47 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by gentlebenthebear, Today, 01:30 AM
        2 responses
        13 views
        0 likes
        Last Post gentlebenthebear  
        Started by PaulMohn, Today, 12:36 PM
        2 responses
        17 views
        0 likes
        Last Post PaulMohn  
        Started by Conceptzx, 10-11-2022, 06:38 AM
        2 responses
        56 views
        0 likes
        Last Post PhillT
        by PhillT
         
        Working...
        X