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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    55 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X