Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modify the printed name "Stop loss" in the SetStopLoss Function?

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

    Modify the printed name "Stop loss" in the SetStopLoss Function?

    Hello Team,

    I use the SetStopLoss Function in my strategy, in the OnBarUpdate section. The stop is adjusted every bar update, bound on the Parabolic SAR and is moving from a Stop "Loss" to a Stop Profit, once it is triggered and executed, it is always "Stop Loss" visible in the chart, is it possible to change this name somewhat easily, despite programming everything totally different?

    Thank you!

    #2
    Hello Triple_M,

    Thanks for your post.

    There are no supported means for changing the signal name of SetStopLoss() orders. By default, the signal name generated internally by the SetStopLoss() method is "Stop loss". This is noted in the SetStopLoss() help guide page.

    SetStopLoss(): https://ninjatrader.com/support/help...etstoploss.htm

    To define your own signal name for stop loss orders, you would need to use Exit methods such as ExitLongStopMarket() and define the signal name in the string signalName parameter of the Exit method.

    ExitLongStopMarket(int quantity, double stopPrice, string signalName, string fromEntrySignal)

    Managed Approach Order Methods: https://ninjatrader.com/support/help...d_approach.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 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