Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CalcOnBarClose not affect

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

    CalcOnBarClose not affect

    I write testing sample:
    Code:
    protected override void Initialize()
    {
      Add(PeriodType.Minute, 15);
      CalculateOnBarClose = false; // not affected?!
    }
    
    protected override void OnBarUpdate()
    {
                    if (BarsInProgress==0)
                    {
                        Print("M1: "+Time[0]);
                    }
                    else if (BarsInProgress==1)
                    {
                        Print("M15: "+Time[0]); // or Times[1][0] - no difference
                    }
    }
    In Output window I expected to see time of ticks, but I see the following:
    M1: 07.03.2012 8:15:00
    M15: 07.03.2012 8:15:00
    M1: 07.03.2012 8:16:00
    M1: 07.03.2012 8:17:00
    M1: 07.03.2012 8:18:00
    M1: 07.03.2012 8:19:00
    etc.

    Why?
    Privider is CQG, demo-account.NT 7.0.1000.9
    Last edited by romanick; 03-12-2012, 12:11 AM. Reason: invalid method name in subj

    #2
    Welcome to our forums romanick - the COBC property would only be effective in realtime time / Market Replay use, but not on historical data / backtesting : in this case it would be 'true' per default, you would have access to the OHLCV info from the worked with bar series.

    Comment


      #3
      Thanks for your reply!

      Comment


        #4
        How can I use MarketReply data in StrategyAnalyzer?

        Comment


          #5
          You're welcome - unfortunately you could not use MR data in the Strategy Analyzer backtesting engine, you could run a Market Replay for example for a month continuously though if you downloaded the needed data via File > Utilities > Download Replay Data.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          65 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          149 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          99 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X