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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    55 views
    0 likes
    Last Post CarlTrading  
    Working...
    X