Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Order + Chart Trader - Move stops etc..

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

    Strategy Order + Chart Trader - Move stops etc..

    Hello,

    I have a strategy that places stop and target orders once an order is executed. However, when i see the orders on the chart trader and I want to move them manually, the stop orders move back to where it's suppose to go based on bar close. What functions / order code should i be using so that I can move the orders once the strategy places them?
    For example, i want to move my target up based on what i see on the chart to keep locking in more profits but my strategy takes over and moves it back down.

    Do you have some sample code i can reference?

    #2
    Hello priceisking,

    Thanks for your inquiry.

    Using Set methods will update the stop loss in relation to bar updates, and calling order methods in OnBarUpdate will update that order back to the level with the code when the logic in OnBarUpdate reaches that order method.

    I have attached a modification of the SampleOnOrderUpdate strategy which can demonstrate how this goal can be achieved.

    SampleOnOrderUpdate - https://ninjatrader.com/support/help...and_onexec.htm

    Please let us know if we can be of further assistance.
    Attached Files

    Comment


      #3
      Thank you.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      41 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      124 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      64 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X