Yes, that did it.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Change Text on Chart after Stop Loss executes
Collapse
X
-
You need to use the correct syntax.Originally posted by sarasotavince View PostThe Exit Order is firing (and completing without issue).
All I need to do is add TEXT to the chart to tell me which Exit Condition was triggered. The default "Stop Loss" does tell me which condition was utilized.
So, any way to add some text to the chart besides STOP LOSS? Maybe my question wasn't so clear earlier.
if you want to show the same text for all orders. Otherwise use the orderName where the empty sting is located.Code:ExitLong ("Condition 4","");
Leave a comment:
-
sarasotavince,
I see what you mean now.
You need to set the Plot Executions from the Data Series window to Text and Marker
Right click on the Chart and select Data Series...
Find the property PlotExecutions on the far bottom right list.
Leave a comment:
-
The Exit Order is firing (and completing without issue).
All I need to do is add TEXT to the chart to tell me which Exit Condition was triggered. The default "Stop Loss" does tell me which condition was utilized.
So, any way to add some text to the chart besides STOP LOSS? Maybe my question wasn't so clear earlier.
Leave a comment:
-
Hello sarasotavince,
Thank you for your post.
You will want to add TraceOrders = true; to the Initialize() method.
This will print out the orders to the Output window (Tools -> Output Window) and what is occuring with them.
If you do not see any outputs for the Exit() order then it is highly likely that the condition for the Exit() is not being met.
Leave a comment:
-
Change Text on Chart after Stop Loss executes
I would appreciate some guidance...
I am using
trying to replace "Stop loss" or add to "Stop loss" the text "Condition 4" on my chart.Code:ExitLong ("Condition 4");
The stop loss is firing perfectly, and I can compile without error, but the "Condition 4" is not appearing on the chart.
I also tried
wherein string1 was "Condition 4" but like above, no compiling error but no printing on the chart either.Code:ExitLong(string1)
As I have several conditions that close a trade, I'd like to be able to READ some text on the chart instead of figuring it out every time.
Thanks in advance...The ExitLong help section wasn't much help to me.
Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
409 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
272 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
230 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
318 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
279 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Leave a comment: