Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 TradeSaber, Today, 07:18 AM
    0 responses
    4 views
    0 likes
    Last Post TradeSaber  
    Started by PaulMohn, Today, 05:00 AM
    0 responses
    9 views
    0 likes
    Last Post PaulMohn  
    Started by ZenCortexAuCost, Today, 04:24 AM
    0 responses
    6 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by ZenCortexAuCost, Today, 04:22 AM
    0 responses
    3 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by SantoshXX, Today, 03:09 AM
    0 responses
    17 views
    0 likes
    Last Post SantoshXX  
    Working...
    X