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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X