Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw two conditions on the same candle at the same time

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

    Draw two conditions on the same candle at the same time

    Hello. If there are two different conditions in a candle at the same time, how can I draw a yellow triangle on the candle and green under the candle? The indicator either draws me a yellow triangle or a green one, but not both at the same time. How could I do it? Thank you

    #2
    Hello julifro,

    Thanks for your post.

    In order to see both draw objects, they would each need a unique tag name.

    Comment


      #3
      Hello. Thanks for your help. I have this code and I don't know where to put that unique tag name that it tells me:

      Draw.Dot(this, CurrentBar.ToString(), true, 0, High[0] - TickSize, Brushes.Azure);

      Comment


        #4
        Hello julifro,

        Thanks for your reply.

        If both of the dots are using the same tag name only the last one would appear. You are using the CurrentBar number for the tag name. All you need is to add some string in front of that, like:

        Draw.Dot(this, "A"+CurrentBar.ToString(), true, 0, High[0] - TickSize, Brushes.Azure);
        Draw.Dot(this, "B"+CurrentBar.ToString(), true, 0, High[0] - 5 * TickSize, Brushes.Gold);
        Draw.Dot(this, "C"+CurrentBar.ToString(), true, 0, High[0] - 10 * TickSize, Brushes.Orange);
        Draw.Dot(this, "D"+CurrentBar.ToString(), true, 0, High[0] - 15* TickSize, Brushes.Red);

        Comment

        Latest Posts

        Collapse

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