Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Remove borders with Draw objects

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

    Remove borders with Draw objects

    I am drawing arrows with the following. It draws it with borders. Is there a way to remove the borders?

    Code:
    // Plot signals
    if (SignalBuy) Draw.ArrowUp(this, "BuySignal" + CurrentBar, true, 0, Low[0] - Bars.Instrument.MasterInstrument.TickSize, ArrowUpColor);
    if (SignalSell) Draw.ArrowDown(this, "SellSignal" + CurrentBar, true, 0, High[0] + Bars.Instrument.MasterInstrument.TickSize, ArrowDnColor);
    Click image for larger version

Name:	Screen Shot 2022-06-13 at 10.18.57 PM.png
Views:	174
Size:	10.1 KB
ID:	1205116

    #2
    Hello barbaros,


    Thank you for your post.


    In order to set the outline color of your arrows, you could save the arrows to a variable and then set the OutlineBrush property of the arrow to the desired color. Here are snippets from the help guide pages about ArrowUp and ArrowDown where the arrows are instantiated and then the OutlineBrush is set. If you do not want an outline, you could set this to the same color as the body of the arrow or you could make the outline transparent with OutlineBrush = Brushes.Transparent:

    ArrrowUp -

    Code:
    // Instantiate an ArrowDown object
    ArrowUp myArrowUp = Draw.ArrowUp(this, "tag1", true,  Time[0], Low[0] - (2 * TickSize), Brushes.Green);
    
    // Set the outline color of the Arrow
    myArrowUp.OutlineBrush = Brushes.Black;
    ArrowDown -

    Code:
    // Instantiate an ArrowDown object
    ArrowDown myArrowDown = Draw.ArrowDown(this, "tag1", t rue, Time[0], High[0] + (2 * TickSize), Brushes.Green);
    
    // Set the outline color of the Arrow
    myArrowDown.OutlineBrush = Brushes.Black;

    If you have any additional questions, please feel free to ask them here.

    Comment

    Latest Posts

    Collapse

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