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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        60 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X