Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Entry Stop Orders on Chart

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

    Draw Entry Stop Orders on Chart

    Hi is there an easy way to programmatically (in a strategy) draw the entry stop orders much like the chart trader does?
    Particularly, I'd like to know if there's an easy way to get the price marker on the right hand side.
    Attached Files
    Jeremytang
    NinjaTrader Ecosystem Vendor - Shark Indicators

    #2
    Hi Jeremy,

    You could consider setting a plot based on your stop loss levels in order to see price markers. It will have to be configured specifically to use the same color as your chart background. (Transparent won't show price markers).
    Plotting within a NinjaScript strategy.

    You can also custom code a solution, maybe consider combining rays with text if you want to make a similar display.

    Example:
    double myStopLevel = 25;
    DrawRay("myStopLevel", 10, myStopLevel, 0, myStopLevel, Color.Red);
    DrawText("myStopText", true, myStopLevel.ToString(), 11, myStopLevel, 0, Color.Black, new Font("Arial", 10), StringAlignment.Center, Color.Black, Color.White, 0);
    Last edited by NinjaTrader_RyanM1; 03-21-2011, 03:06 PM.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    574 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X