Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Turn Strategy off after trade is closed

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

    Turn Strategy off after trade is closed

    How can I setup that my strategy will turn off after postition closing ? I use the strategy builder

    #2
    Hello Uregon,

    With the strategy builder there is not a way to physically disable the strategy but you could use a variable to prevent the logic from working once an entry has been submitted. In manual coding there is a method called CloseStrategy which lets you terminate the strategy.

    To disable the logic using a variable that would be as simple as doing the following:

    In the inputs and variables page create a new bool variable with a default value of false
    In your entry condition set make a new condition:
    Left: User variables -> your variable name
    Center: equals
    Right: Misc -> false
    In the same set as an action add Misc -> Set your variable name and set it to true by checking the box.

    This means the entry condition can happen only once and then once the position is closed it won't do anything else however it will still be enabled.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    55 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    37 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    17 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    19 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    49 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X