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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        368 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X