Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with positions of Stop loss and Take profit

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

    Problem with positions of Stop loss and Take profit

    Hello everyone,

    My strategy created Stop loss or Take profit, but when I trying to change their prices by dragging them to the another position on my chart. The problem is that they coming back when recent bar closed. Maybe there is a solution to this problem. If it is please tell me about it.

    #2
    Hello AntonTymoshchuk,

    Thanks for your post.

    This would be expected behavior of a strategy that is not specifically built for moving the profit/stops. The strategy is executing according to the code which is putting the profit/stop as coded.

    If you wish to directly interact with the strategies stop/profit targets then you would need to create a strategy that calls and uses an ATM template to control the exiting of a position. These type strategies will find the entry conditions specified in the code and place an order, once the order is filled the ATM takes over until either the stop or target is hit, then control returns to the strategy to find the next entry. While the ATM is running, you may adjust the stop/profit as desired.

    An example strategy can be found in your NinjaTrader called SampleATMstrategy. This example is well commented/documented internally to help in understanding the special methods and properties that this type strategy uses. In addition you would need to review the helpguide section here: https://ninjatrader.com/support/help...gy_methods.htm

    Comment

    Latest Posts

    Collapse

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