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