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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        31 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        19 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        9 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        17 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        20 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X