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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X