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

Profit target code

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

    Profit target code

    Can anyone help me figure out how to add a profit target to this strategy. It only has trailing stops right now with no profit target. I want to be able to set a profit target and trailing stop.

    #2
    Brandon,

    To add profit targets you just need to add SetProfitTarget() with the parameters you want to the Initialize method.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cupir2, Yesterday, 07:44 PM
    3 responses
    21 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by reynoldsn, Yesterday, 07:26 PM
    2 responses
    14 views
    0 likes
    Last Post reynoldsn  
    Started by MartinT, 05-17-2023, 06:00 AM
    18 responses
    173 views
    0 likes
    Last Post flybuzz
    by flybuzz
     
    Started by sgordet, Today, 05:24 AM
    2 responses
    21 views
    0 likes
    Last Post sgordet
    by sgordet
     
    Started by Board game geek, Today, 02:20 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X