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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X