Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Averaging in

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

    Averaging in

    Hi,
    I've searched the forum a bit to figure out how to do this. I'm trying to add to my position throughout the trade. For instance, if a trade is open, and price is greater than last bar close, add to the position. When I use the enter long function, it looks like it is selling my previous position. I've seen where it is recommended to do it in the ninjascript code, but what method would you use to add to a position that you are currently in.

    Thanks,
    Matt

    #2
    Just submit another EnterLong() order if you are long or an EnterShort() if you are short. You will need to make sure you have EntriesPerDirection set greater than 1 though.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    110 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    59 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    37 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    41 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    78 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X