Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Having trouble understand how to print a solid colored arrow

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

    Having trouble understand how to print a solid colored arrow

    Hi NT,
    Based on the below code. the Arrow Up/Down prints correct. My issue, is that the when the arrow prints and we have a colored background the outline that is default gray mutes it its very hard to see. I would like to have the arrow one single solid color.
    I am having trouble, inputting the correct code to so. I saw what the guide states, but so far I havent been able to apply the correct script to have the code compile and of course work.

    My Print Arrow code:
    Draw.ArrowUp(this, "uparrow"+CurrentBar, true, 0, Low[3], Brushes.DarkBlue);

    Can you provide me with the correct script to make that arrow have its Outline color the same as the inner region, that being Dark Blue.

    Thank you, TM


    #2
    Hello tradermark2001,
    Refer below example:-
    Code:
    [COLOR=#008000]// Instantiate an ArrowDown object[/COLOR]
    ArrowUp myArrow=Draw.ArrowUp([COLOR=#0000ff]this[/COLOR],[COLOR=#800000]"tag1"[/COLOR],[COLOR=#0000ff]true[/COLOR],Time[[COLOR=#ff6600]0[/COLOR]],Low[[COLOR=#ff6600]0[/COLOR]]-([COLOR=#ff6600]2[/COLOR]*TickSize),Brushes.Green);
    
    [COLOR=#008000]// Set the outline color of the Arrow[/COLOR]
    myArrow.OutlineBrush=Brushes.Green;
    Hope it helps!

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    70 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X