Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

identify which condition triggered the entry

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

    identify which condition triggered the entry

    I have a couple different entry conditions in my script. is there a way (maybe a logfile or something) that tells you which condition caused the trade entry? i guess i can remove conditions and see if it still triggers to get to the bottom of which one is doing it. it's hard to tell from the chart because a couple of things happen very close to the same time.

    #2
    Hello PLeary,

    Thank you for your post.

    You can add a Print() statement to show information in the Output window (NinjaTrader Control Center > Tools > Output Window) regarding the order and condition and use Time[0] to see at what time on the chart this occurred.

    For example:
    Code:
    if(myConditionToEnter1)
    {
    EnterLong();
    Print("My Condition 1 returned true and placed an Enter Long. " + Time[0]);
    }
    For information on Print() please visit the following link: http://www.ninjatrader.com/support/h.../nt7/print.htm

    For information on Time please visit the following link: http://www.ninjatrader.com/support/h...s/nt7/time.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Originally posted by PLeary View Post
      I have a couple different entry conditions in my script. is there a way (maybe a logfile or something) that tells you which condition caused the trade entry? i guess i can remove conditions and see if it still triggers to get to the bottom of which one is doing it. it's hard to tell from the chart because a couple of things happen very close to the same time.
      Use IOrders. You will then know which order was triggered, simply by looking at its name.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      152 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      87 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      131 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      106 views
      0 likes
      Last Post CarlTrading  
      Working...
      X