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

how to change the plot shape for just 1 plot

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

    how to change the plot shape for just 1 plot

    I want to show up arrow for longs and down arrow for shorts.
    how can I fix the up arrow or down arrow?
    I have this in my initialize.
    AddPlot(new Stroke(Brushes.Orange, 2), PlotStyle.TriangleDown, "UnderlyingDirection");

    my barupdate is as follows.

    if(look4MoveDown && Lows[1][0]<Lows[1][1])
    {
    // Look for longs move up.
    look4MoveDown=false;
    Values[0][0]=1; //<<

    }

    #2
    Hello junkone,

    Thank you for your note.

    It would not be possible to have a portion of the plot, a plotstyle of TriangleUp and another have another portion a plotstyle of TriangleDown, based on conditions.

    You could either have up triangles or down triangles, but not mixed.

    You could have two plots, of both plotstyles, and only set each plot when the condition is true, which would give the visual appearance of 1 plot with an alternating plot style.

    If you wanted to use drawing objects, you could draw arrows using ArrowUp and ArrowDown,



    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by geddyisodin, Yesterday, 05:20 AM
    8 responses
    51 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    10 responses
    36 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by DayTradingDEMON, Today, 09:28 AM
    4 responses
    24 views
    0 likes
    Last Post DayTradingDEMON  
    Started by George21, Today, 10:07 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by Stanfillirenfro, Today, 07:23 AM
    9 responses
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X