Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PeriodType.Year not detected

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

    PeriodType.Year not detected

    Hello,

    Just a note to state that PeriodType.Year is not detected unlike other PeriodTypes

    if(Bars.Period.Id==PeriodType.Year) DrawTextFixed("Test", "Tested", TextPosition.BottomRight);

    will not work while the same test will work just fine on PeriodType.Month, PeriodType.Day, PeriodType.Minute, etc...

    #2
    Thanks, but I don't see an issue testing it here. Do you have more than 20 year bars loaded? As BarsRequired would be at 20 per default, so you won't get a return as you get no OnBarUpdate() call until you have the 20 bars. Try with more data or lower the BarsRequired please.

    Comment


      #3
      It must come from your explanation. I have less than 20 year bars showing.
      How to "lower BarsRequired" please ?

      Comment


        #4
        You can set this in your Initialize() method.

        i.e.

        BarsRequired = 1;

        Comment

        Latest Posts

        Collapse

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