Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Daily Data 6E

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

    Daily Data 6E

    Hi,
    I'm using 2 time frames :

    Add(PeriodType.Day,1);
    Add(PeriodType.Minute,10);

    in the OnBarUpdate i wrote :

    if (BarsInProgress != 0)
    return;

    I'm using 2 indicator :
    one with time frame of daily :

    ATR(BarsArray[1],2);

    second with time frame of minutes :

    DonchainChannel(BarsArray[2],20)

    My problem is, when i'm runing a backtest from the dates
    8/1/2012 till 11/1/2012
    I'm getting trades or just printing the values of the indicator from the 8/31/2012.
    what happend to the begining of the month????

    tnx,
    Igal

    #2
    Igal, which BarsRequired setting are you using here? 20 bars / days?

    Thanks

    Comment


      #3
      U mean :
      if (CurrentBar < 20)
      return;

      ?

      Igal

      Comment


        #4
        No, the BarsRequired setting you have directly in the UI - that's normally 20, so 20 bars would be skipped until OnBarUpdate() called then, that's likely what you see here.

        Comment


          #5
          ok its the same thing that i wrote.
          in the UI its 20

          Comment


            #6
            Ok, then I would expect that outcome. You can change to a lower value as well, if you script would not need that many bars for inits.

            Comment


              #7
              those bars are by minute or daily??
              i mean if the Min. bars required is 3 so i wait till 3 days of data or 30 minute?

              Comment


                #8
                All your series would need to have it fullfilled before you see an OnBarUpdate() call. So if you have it at 3 > it would be 3 days in your setup.

                Comment


                  #9
                  Ok,
                  tnx

                  Igal

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  670 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  379 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  111 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  575 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  582 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X