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 Tim-c, Today, 03:54 AM
    0 responses
    1 view
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by FrancisMorro, Today, 03:24 AM
    0 responses
    2 views
    0 likes
    Last Post FrancisMorro  
    Started by Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,770 views
    0 likes
    Last Post Leafcutter  
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    31 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    945 views
    0 likes
    Last Post spwizard  
    Working...
    X