Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Scaling out

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

    Scaling out

    Hi there,

    I am familiar with the following tip: Strategy: Scaling out of a position (http://www.ninjatrader.com/support/f...ead.php?t=3751).

    I am now trying to do pretty much the same, but I want to use SetStopLoss( ... ) AND I want to specify the stop is *not* simulated ; as a result, the only SetStopLoss() function available to me is the most complete:

    SetStopLoss(string fromEntrySignal, CalculationMode mode, double value, bool simulated)

    which seems to require to be matched to the Entry signal ... hence I lose the benefit of a single SetStopLoss() call (and of a single STOP order, I suppose) - unless there is a magic value for "fromEntrySignal" to designate all entries ?


    Also ... on the entry side, I have to use 2 EnterLong/ShortLimit(...) with distinct SignalNames ... does this mean Ninja will send out 2 separate opening orders (or, assuming the entry price is the same for both signals, will there be only 1 opening order combining the quantities of the 2 function calls) ?




    Thanks in advance
    Dominique

    #2
    Hi Dominique, yes you would see 2 invididual orders being placed here for your entry when scaling in.

    For exit, just refer to "" / an empty string as signal name to tie to, this would exit your full position for the stop then, so you can work with a single SetStopLoss and still scale out at various targets referring to an individual entry signal.

    Thanks,

    Comment


      #3
      Thank you Bertrand

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      649 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 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
      573 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      576 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X