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 helpwanted, Today, 03:06 AM
    1 response
    10 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    9 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X