Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to draw Rectangle on multiple Dataseries chart?

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

    How to draw Rectangle on multiple Dataseries chart?

    Hi guys,

    Am drawing the Rectangle using DrawRectangle interface. Only unable to display rectangles on multiple dataseries on a chart. I think am unable to pass the unique tag value as first parameter. Any help would be appreciated.

    Cheers
    Yam

    #2
    Originally posted by yameen.forex View Post
    Hi guys,

    Am drawing the Rectangle using DrawRectangle interface. Only unable to display rectangles on multiple dataseries on a chart. I think am unable to pass the unique tag value as first parameter. Any help would be appreciated.

    Cheers
    Yam
    It might be easier to help if we can see what your statement is, so that we can see if and how it may not be quite what you want it to do?

    Comment


      #3
      Koganam,

      Firstly, I would like to thank you for showing interest in my query.

      Based on attached screenshot, I have 3 data series (3 timeframe chart) in a single window. If I draw any drawing object then from the properties, am able to set attach to multiple charts.

      My question is, how can I set it programmatically? Below is my code.

      DrawRectangle("Box" + ToDay(Time[0]).ToString(), false, _StartBar, _StartY, _EndBar, _EndY, _BorderColor, _BoxBGColor, _Opacity);

      I think the tag should be unique for each dataseries? If yes, how can I pass the unique number?

      Your help would be appreciated.

      Cheers
      Yam
      Attached Files

      Comment


        #4
        You would simply apply the indicator to each dataseries on the panel.


        Originally posted by yameen.forex View Post
        Koganam,

        Firstly, I would like to thank you for showing interest in my query.

        Based on attached screenshot, I have 3 data series (3 timeframe chart) in a single window. If I draw any drawing object then from the properties, am able to set attach to multiple charts.

        My question is, how can I set it programmatically? Below is my code.

        DrawRectangle("Box" + ToDay(Time[0]).ToString(), false, _StartBar, _StartY, _EndBar, _EndY, _BorderColor, _BoxBGColor, _Opacity);

        I think the tag should be unique for each dataseries? If yes, how can I pass the unique number?

        Your help would be appreciated.

        Cheers
        Yam

        Comment


          #5
          I got it working!!!

          Thanks a lot Sledge. You guys are helpful!

          Cheers
          Yam

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          602 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          347 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
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          559 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X