Maybe another question is - Can I saw how write to a custom field that would be available in that exported report if the above is not possible?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Has functionality been added to cancel SetStopLoss or ProfitTaker?
Collapse
X
-
Has functionality been added to cancel SetStopLoss or ProfitTaker?
Found previous forum articles that looks like this is not possible from years ago? Is this possible now? Would add a lot more functionality to the Managed Order approach. I'm aware they can be moved but doesn't really help me for my goal. It leads to me using my StopLoss for a ProfitTaker which impacts reporting when exporting my analyzed trade results.
Maybe another question is - Can I saw how write to a custom field that would be available in that exported report if the above is not possible?
Tags: None
-
Hello Dragon989,
Thank you for the questions.
In regard to your question in the forum title, this is still the case.
Regarding your other question, I am not sure I understand what you mean can you provide more detail on what report you are referring to?
I look forward to being of further assistance.
Last edited by NinjaTrader_Jesse; 11-06-2018, 04:25 PM.
-
I attempted this with the StopLoss or ProfitTaker order. They were transferred to the order object no problem but would not cancel. I verified the order lived in the object as expected through a print statement and also monitored for it in the OrderState.Cancelled.
This is how I attempted to cancel the order.
Note that I cancelled the order OnBarUpdate() but my orginal Set was in OnStateChange() / State == State.ConfigureCode:CancelOrder(stopLossOrders[0]);
For the other question -
In Strategy analyzer you can view all the trades taken and then export those trades to an excel sheet. I use this for deep dive analysis in the performance of my strategy. Now when I see an exit name of Stop loss it indicates that my actual stoploss was hit. If I move the stoploss to become a profittaker(above the current price when short but still positive in the trade) it would still report as a Stop loss in the downloaded excel sheet. Question is: Can I modify the Exit name or any other data in the downloaded trade report to indicate this time the stoploss is being used differently.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment