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

How to built strategy to take partial profit on half position

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

    How to built strategy to take partial profit on half position

    I have a strategy to initiate a positiion with 2 contracts. I also have trailing stop loss and profit target. If price goes down, both contracts will be closed. If price goes up and hit profit target, only one contract will be closed, and the second one will run with trailing stop. Can you please suggest, how to create this conditions in strategy builder.

    If it is not possible in strategy builder, then I can unlock the code. Please suggest how to add conditions in the code and where.

    Thanks

    #2
    Hello nrtrader,

    Thanks for your post.

    In the strategy builder, you would need to create two duplicate entries and use a different "signal name" for each one.
    In the stop and profit window, create one profit target tied to one "from entry" signal name. Create two trailing stops, each tied to a different "from entry"signal name.


    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:10 AM
    0 responses
    6 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    11 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    5 views
    0 likes
    Last Post gentlebenthebear  
    Working...
    X