Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X