Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question about the attach order feature to an indicator within a strategy

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

    Question about the attach order feature to an indicator within a strategy

    Hi guys,

    I have developed a strategy to place and manage a trade using AtmStrategyCreate command. This command leaves a lot of flexibility to the user. The strategy manages the stop loss order automatically but the user can still move it around as he pleases.

    So my question is if the user attaches the stop loss order to an indicator, can we detect it via a Ninjascript command? And if yes, is it possible to reassign the Stop loss attachement property to another indicator via a Ninjascript command?

    #2
    Hello trendisyourfriend,

    If the user manually attaches the order to an indicator, I am not aware of any way to detect this from NinjaScript.

    There is no method to attach an order to an indicator in NinjaScript. Instead, this is done with logic.

    Below is a link to an example.
    Hello support team, I have 2 dataseries, a 1minute to detect the ATR value. Now I would like to set the stoploss and profit target based on the actual ATR Value Example: Stoploss 2xATR Profittarget 3xATR value 1. How can this be done with builder, I have no coding experience 2. Later I would like to have the possibility to
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 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