Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

hold position open until minimum target is met even after an exit condition is met

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

    hold position open until minimum target is met even after an exit condition is met

    good morning, could you help me to find out how to create a condition in s. builder, so that a trade is not closed until a minimum of points is obtained? i.e., if my condition is given to exit a bet but the position has not yet reached the minimum target I have set, the position will remain open until the target size is met. thank you very much.

    #2
    Hello micaeliglesias,

    You can calculate the target price when the entry is submitted (or the position changes) and save this to a variable and then in the conditions compare the close price to be greater than this variable.

    These examples linked below provide sample code of calculating a price and saving this to a variable that you can adapt to your needs.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    72 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    143 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    76 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    47 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    51 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X