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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 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