Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bracket orders

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

    Bracket orders

    Hello, I need to activate bracket orders in backtesting strategy, How can I do it? I mean, when I buy or sell trailing stop loss and target price are activated automatically. To exit positions trading system use only trailing stop and target.

    Thanks!

    #2
    Hello U0000999,

    Thank you for the post.

    ATM strategies in a NinjaScript strategy will only run in real time. To backtest a strategy that uses trailing stops and profit targets, you can use SetTrailStop() and SetProfitTarget().

    Please also see this reference sample that shows how you can adjust the price of your stop and target:


    Please let me know if I can assist further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    61 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 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