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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      56 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      143 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X