Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing stop "on the fly"

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

    Changing stop "on the fly"

    Hello,
    Is it possible to change the stop of a runnig "scripted" strategy "on the flY"?

    I have a "scripted" strategy that uses a stop loss, that moves to break even when the BE trigger is reached, then it becomes a trailing stop when the trailing trigger is reached. I run it from chart trader. After the strategy triggers and I am in the trade, I cannot change the stop loss/trail stop (move the arrow). It jumps back where it was.

    If it's possible, how? An example (not only an explanation) would be appreciated, as I do not know scripting well (actually, very badly).

    Thanks.

    #2
    Hi BBzDan,

    Unfortunately, dynamically controlling the way the orders are placed is not supported, and frankly, should not be done.

    You can add more discretion by calling an ATM Strategy from the Strategy (there's a sample code at "Tools>Edit NS>Strategies") and moving the orders around from a Chart Trader or SuperDOM.

    The Stop is moving back to it's original position on the next OnBarUpdate(), where it's value is set in the code.
    TimNinjaTrader Customer Service

    Comment


      #3
      OK, thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      649 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      576 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X