Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

draw vertical line on chart for profit target vs stop loss

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

    draw vertical line on chart for profit target vs stop loss

    i place vertical lines on the chart when i enter a trade via strategy, but is it possible to place a new vertical line on the bar which either results in a profit target or stop loss? this would allow me for easier review when working on strategies.

    #2
    Hello Bobby, thanks for writing in.

    The OnExecutionUpdate event will tell you when your stop order has been filled. Use the execution price to draw a new line using Draw.Line(). Here is the documentation and a use example:
    https://ninjatrader.com/support/help...tionupdate.htm
    https://ninjatrader.com/support/help..._and_profi.htm

    The stop loss order will have an order Name of "Stop Loss".

    Best regards,
    -ChrisL
    Last edited by NinjaTrader_ChrisL; 05-14-2021, 02:06 PM.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sidlercom80, Today, 12:57 AM
    0 responses
    1 view
    0 likes
    Last Post sidlercom80  
    Started by gbajaj, Yesterday, 11:16 PM
    0 responses
    1 view
    0 likes
    Last Post gbajaj
    by gbajaj
     
    Started by PWillard, Yesterday, 10:30 PM
    0 responses
    1 view
    0 likes
    Last Post PWillard  
    Started by waldoalvarez, 06-19-2021, 05:50 AM
    2 responses
    16 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Noongun, Yesterday, 03:17 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_EricB  
    Working...
    X