Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter an exit condition based on the bar after entry

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

    Enter an exit condition based on the bar after entry

    I am trying to create a condition in which the trade will exit based on the bar after entry in the strategy builder. For example I enter a short position and if the bar after entry is bullish the position closes. The bullish part is no problem but I am unsure how to identify the bar after entry and ONLY the bar after entry.

    Thanks
    Last edited by uspilotzzz; 11-20-2020, 05:22 PM.

    #2
    Hello uspilotzzz,

    In the condition builder select Misc > Bars since entry, in the center select Equals (or Greaters equal), on the right select Misc -> Number value and leave this set to 0 (or set this to 1 if you plan to use this with Calculate On price change or On each tick in real-time.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X