Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

days to load

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

    days to load

    Is there a way when you load an indicator it can change the days to load ?

    #2
    Hello,

    Thank you for the post.

    In this situation, there would not be a supported way to change the DataSeries properties like DaysToLoad as this would be inherited by the indicator when applied.

    Could you tell me, is this for the purpose of making sure the end user has enough data loaded prior to the indicator running?

    I look forward to being of further assistance.

    Comment


      #3
      It is just for user friendlyness.

      I need at least of 7 days of data in order for my indicator to work.
      if I have less than 7 days my indicator doesn't work.
      I just wanted the user when to load to check if there is at least a minumum of 7 days and if not change it so it will load a minumum of 7 days.

      If it is not possible is there an alert box I can use to see if it is under the 7 day bench mark?

      Comment


        #4
        Hello,

        Yes, in this case, you could check the amount of data loaded to ensure the amount is met. If not, you could Draw text or open a message box as an example.

        One way to do this would be to subtract the To date from the From date:
        Code:
        Print(Bars.ToDate.Subtract(Bars.FromDate).Days);
        you could use this logically like the following:

        Code:
        if(Bars.ToDate.Subtract(Bars.FromDate).Days < 7){
        	Draw.TextFixed(this, "myText", "You need to load more than 7 days of data", TextPosition.BottomRight);	
        }
        I look forward to being of further assistance.

        Comment


          #5
          Hello,

          Yes, in this case, you could check the amount of data loaded to ensure the amount is met. If not, you could Draw text or open a message box as an example.

          One way to do this would be to subtract the To date from the From date:
          Code:
          Print(Bars.ToDate.Subtract(Bars.FromDate).Days);
          you could use this logically like the following:

          Code:
          if(Bars.ToDate.Subtract(Bars.FromDate).Days < 7){
          	Draw.TextFixed(this, "myText", "You need to load more than 7 days of data", TextPosition.BottomRight);	
          }
          I look forward to being of further assistance.

          Comment

          Latest Posts

          Collapse

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