Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to use SetStopLoss with pecentage?

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

    How to use SetStopLoss with pecentage?

    I used SetStopLoss with the ticks mode in my strategy and it worked in backtesting e-mini future contracts.

    However, when I change to either price or percentage mode, the stop loss order did not seem to be placed.

    Does the price or percentage mode work for future contracts? I must add that I enter at the same timeframe but exit at a longer timeframe:

    From 1 min:
    EnterShort(0, firstHalf, "FirstHalf");

    From 15 min:
    ExitShort(0, firstHalf, "ExitFirstHalf", "FirstHalf");

    Seperately, if I enter two orders for scaling out, should I call SetStopLoss once without specifying the signal name or call it twice:

    SetStopLoss(CalculationMode.Price, 1321);

    or

    SetStopLoss("FirstHalf", CalculationMode.Price, 1321, false);
    SetStopLoss("SecondHalf", CalculationMode.Price, 1321, false);

    Thanks!
    Last edited by ooppie; 06-24-2008, 10:26 PM.

    #2
    For scaling out this reference sample may be of use: http://www.ninjatrader-support.com/v...ead.php?t=3751

    In terms of CalculationModes they should all work. Please see the Control Center logs for any messages. Also please use TraceOrders = true to debug the orders. I suspect maybe they are getting cancelled via invalid stop price? TraceOrders will tell you in the Output Window if this is the case.
    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
    581 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    338 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X