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 sjsj2732, Today, 04:31 AM
|
0 responses
20 views
0 likes
|
Last Post
by sjsj2732
Today, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
280 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
279 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
130 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
90 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment