Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print SetTrailStop()

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

    Print SetTrailStop()

    I'd like to print a SetTrailStop() to the Output Window but I can't figure out how to do this.

    Here's exactly what I want to occur:
    1) After an entry order has been filled I want a print statement showing that the trailing stop has been set.
    2) I don't want to use TraceOrders b/c I don't want all of the amended trailing stop messages. (Is there a way to suppress certain TraceOrders messages?)

    You can see in the attached .jpg file that I'm getting the OrderType.ToString() but this isn't telling me if the initial trailing stops have been set upon entering a trade. How do I get this info into a print statement?
    Attached Files

    #2
    Unfortunately you can't selectively filter the trace orders output - you can use this sample and then check for your SetTrailStop orderstates in the OnOrderUpdate().

    Comment


      #3
      okay, thx for this.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      27 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      117 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      226 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      417 views
      0 likes
      Last Post CaptainJack  
      Working...
      X