Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Modify setProfitTarget / setStopLoss name in a chart

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

    Modify setProfitTarget / setStopLoss name in a chart

    Hi,

    after a setProfitTarget() or setStopLoss() has been triggered it shows up in a chart with the label of "Profit target" or "Stop loss". Is there a way to modify this string? I would like to have them say what their profit take amount is, since I have multiple different entries and stopLoss / profitTargets it would be helpful to have more informative labels.

    This can be done by using ExitShort() / ExitLong() but I like the simplicity of what SetProfitTarget() and setStopLoss() have to offer.

    Thanks,
    4D

    #2
    Hello 4dplane,

    Thank you for your post.

    As you noticed it would only be possible through the Exit methods.

    Unfortunately, the Set methods would not offer this option.

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DJ888, 04-16-2024, 06:09 PM
    4 responses
    12 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by terofs, Today, 04:18 PM
    0 responses
    11 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by nandhumca, Today, 03:41 PM
    0 responses
    7 views
    0 likes
    Last Post nandhumca  
    Started by The_Sec, Today, 03:37 PM
    0 responses
    3 views
    0 likes
    Last Post The_Sec
    by The_Sec
     
    Started by GwFutures1988, Today, 02:48 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X