Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 alifarahani, Today, 09:40 AM
          3 responses
          15 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by RookieTrader, Today, 09:37 AM
          4 responses
          17 views
          0 likes
          Last Post RookieTrader  
          Started by PaulMohn, Today, 12:36 PM
          0 responses
          4 views
          0 likes
          Last Post PaulMohn  
          Started by love2code2trade, 04-17-2024, 01:45 PM
          4 responses
          40 views
          0 likes
          Last Post love2code2trade  
          Started by junkone, Today, 11:37 AM
          3 responses
          23 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X