Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to scale in to a position??

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

    How to scale in to a position??

    All,

    I'm looking for some pointers on how to scale into a position (i.e. in 2-3 trades) based on a percentage of account value....

    Any help would be greatly appreciated!

    Thank you,

    John

    #2
    John, you can check this reference sample for scaling in / out of a position - http://www.ninjatrader-support2.com/...ead.php?t=3751

    Unfortunately accessing your live account info from NinjaScript is not supported.

    You can however set a virtual account size from which order sizes can be calculated - http://www.ninjatrader-support.com/H...countSize.html

    Comment


      #3
      Bertrand,

      In my current logic I do an:

      EnterLong(signalname);
      SetProfitTarget(signalname, CalculationMode.Percent, targetBP/10000.0);

      If I "leg" into the long with another EnterLong(signalname), what is the behavior of the profit target? Does the additional size get added to the profit target at the same price (signalname is the same))?

      John

      Comment


        #4
        To get it amended at the same price you would need to use 'ByStrategyPosition' under Tools > Options > Strategies > NinjaScript > Order handling.

        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