Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multipe Profit Targets

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

    Multipe Profit Targets

    Can you confirm my understanding &/or suggest a better approach.

    My Goal is to have :-
    1. One Trade active in the market at any time.
    2. Up to 3 Profit Targets, (permitting me to scale out of a position).
    I also desire the option to move the highest Profit Target away from the market if it moves quickly in my favour, then pull it back to price as the trend weakens.
    3. One Stop, which I move to exit the entire trade.

    From what I've read. I can't do something simple like :-
    EnterLong(6); // 6 lots @ $100
    ExitLongLimit(2, 102);
    ExitLongLimit(2, 104);
    ExitLongLimit(2, 106);
    SetStopLoss(CalculationMode.Price, 96); // I move it in code.

    Instead I need to :-
    A. create 3 trades, one for each Profit Target (correct?)
    B. Give each of the 3 trades a different name. (is this necessary?)
    EnterLong(2, "BuyA_1"); // NB: 1=CurrentBar on Trade entry
    EnterLong(2, "BuyB_1");
    EnterLong(2, "BuyC_1");
    Do same for Profit Targets. eg:
    ExitLongLimit(0, true, 2, 102, "Target_BuyA_1", "BuyA_1");
    ExitLongLimit(0, true, 2, 104, "Target_BuyB_1", "BuyB_1");
    ExitLongLimit(0, true, 2, 106, "Target_BuyC_1", "BuyC_1");

    C. change the Entry Handling parameters. eg:
    EntriesPerDirection = 3;
    EntryHandling = EntryHandling.AllEntries;

    But this causes a problem.
    Once a Profit Target is reached, then it is possible to enter another trade. I don't want that. I want the whole trade to complete prior to taking another.

    What am I missing?

    #2
    Your entry condition should not rely on solely EntriesPerDirection, but rather Position.MarketPosition == MarketPosition.Flat.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    657 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    373 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X