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 helpwanted, Today, 03:06 AM
    0 responses
    3 views
    0 likes
    Last Post helpwanted  
    Started by Brevo, Today, 01:45 AM
    0 responses
    6 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X