Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
draw vertical line on chart for profit target vs stop loss
Collapse
X
-
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.Tags: None
-
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,
-ChrisLLast edited by NinjaTrader_ChrisL; 05-14-2021, 02:06 PM.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
553 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
100 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
543 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
546 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment