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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.JesseNinjaTrader Customer Service
-
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.
Code: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
-
Hello Dragon989,
Thank you for the reply. That was my mistake I have edited my previous post, you would need to move to using standard orders for this concept to both cancel the orders and also provide unique names.
Please let me know if I may be of additional assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by guillembm, Yesterday, 11:25 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 09:11 AM | ||
Started by junkone, 04-21-2024, 07:17 AM
|
10 responses
148 views
0 likes
|
Last Post Today, 09:03 AM | ||
Started by tsantospinto, 04-12-2024, 07:04 PM
|
6 responses
101 views
0 likes
|
Last Post
by tsantospinto
Today, 08:57 AM
|
||
Started by rocketman7, Today, 02:12 AM
|
5 responses
26 views
0 likes
|
Last Post Today, 08:56 AM | ||
Started by ZenCortexReal, Today, 08:54 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 08:54 AM |
Comment