Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can I setup 2 different Take profit criteria in Strategy Builder.

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

    How can I setup 2 different Take profit criteria in Strategy Builder.

    My Stop loss is a simple tick based value that does not change but for my take profit I am wanting to use the lookback period of last 10 bars. If there are no viable bars within 10 bars I want to use a percentage of ATR. What condition combination would allow me to accomplish that?

    #2
    Hello habeebft,

    Thanks for your post and welcome to the NinjaTrader Forums!

    To clarify, are you wanting to place a profit target based on a certain condition?

    Are you using Set methods in the Stops and Targets screen of the Strategy Builder or are you using Exit methods in the Conditions and Actions screen of the Strategy Builder?

    You could likely use Exit methods such as ExitLongLimit() and ExitLongStopMarket() to accomplish your overall goals. Note that you cannot use Exit methods and Set methods in the script as this would go against the Managed Approach Internal Order Handling Rules linked below.

    Managed Approach Internal Order Handling Rules: https://ninjatrader.com/support/helpGuides/nt8/index.html?managed_approach.htm#InternalOrderHandl ingRulesThatReduceUnwantedPositions

    You could create your conditions in the Conditions and Actions screen and then create an action to call ExitLongLimit() to place the profit target order.

    If you want to place a certain profit target if a condition is true, else place a different profit target, this would require unlocking the code from the Strategy Builder and manually programming the logic in the strategy. It would not be possible to create an if-else condition in the Strategy Builder.

    Builder Screens: https://ninjatrader.com/support/help...er_screens.htm
    Conditions: https://ninjatrader.com/support/help...on_builder.htm
    Actions: https://ninjatrader.com/support/help...t8/actions.htm
    Last edited by NinjaTrader_BrandonH; 04-07-2024, 02:15 PM.
    <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
    57 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 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