Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting with COBC - False

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

    Backtesting with COBC - False

    Hi,

    Is it possible to backtest (or optimize) a strategy with one or more indicators set to COBC set to False ? I'd like to use a higher time frame indicator set to COBC False for confirmation of an entry trigger.

    Thanks in advance.

    #2
    Ashtree,

    Yes, this is possible using the following 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


    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the response, I have another question.

      Does the higher timeframe indicator and the lower timeframe indicator have to be on the same chart. This causes a stepping effect of the HTF indicator. Can a NT strategy handle two charts, a lower timeframe and a higher timeframe or does it all have to go on one chart. If so is there a way of avoiding the stepping issue, e.g. the HTF confirmation indicator is the angle of the MACD line at point of entry, if this is plotted on the lower time frame then it steps and consequently can be pointing in the opposite direction to what it would be on my manual, separate higher timeframe chart I use in discretionary trading.

      Many thanks.

      Comment


        #4
        Hi Ashtree gambler,

        The added series in NinjaScript, like Add(PeriodType.Minute, 1) do not work with the concept of a chart at all. They can be added programatically without adding to a chart. Documentation for multiseries NinjaScript is available here and can help with a lot of the concepts you're wondering about:
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        570 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X