• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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().

    http://www.ninjatrader.com/support/f...ead.php?t=5790
    BertrandNinjaTrader Customer Service

    Comment


      #3
      okay, thx for this.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by GMiller64, Today, 01:13 PM
      3 responses
      6 views
      0 likes
      Last Post GMiller64  
      Started by itrader46, Today, 12:51 PM
      4 responses
      31 views
      0 likes
      Last Post itrader46  
      Started by hemlock, Today, 11:45 AM
      3 responses
      9 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by gbulle, Today, 11:31 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by JPPoulin, Today, 10:43 AM
      6 responses
      23 views
      0 likes
      Last Post JPPoulin  
      Working...
      X