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

First Strategy Help

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

    #16
    Originally posted by ScottieDog View Post
    So it runs with COBC, even in market replay, not just in backtest mode?

    Thanks for your help.
    In Market Replay, it should run with whatever COBC setting you are using: in Backtest, essentially, it is always COBC = true.
    Last edited by koganam; 10-25-2014, 03:17 PM.

    Comment


      #17
      ScottieDog,

      Kognam is correct. The COBC will be whatever you set it to when first add and running the strategy. The back test will always have this setting set to true.
      Cal H.NinjaTrader Customer Service

      Comment


        #18
        sorry to hijack this thread but I have a similar question.

        In the backtest to reference the previous bar I have to use High[0]. High[1] references 2 bars ago. I understand this is because of the COBC setting of the backtest.

        However, when I trade in realtime and COBC set to false having High[0] causes issues as the system terminates itself claiming things like "limit offer is less than ask".
        If I have backtested a system on COBC am I going to get a realistic real world execution if i just leave that set to false in the realtime trading also?

        Thanks

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        4 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        12 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        13 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X