Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Has functionality been added to cancel SetStopLoss or ProfitTaker?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.

    Comment


      #3
      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]);
      Note that I cancelled the order OnBarUpdate() but my orginal Set was in OnStateChange() / State == State.Configure

      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


        #4
        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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        52 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        48 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X