Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Position Day to Day.

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

    Position Day to Day.

    Is there a way to programmatically pull and display the current position in a contract that is accurate over several days and several sessions.

    With my trading back end I need to restart NT every day, and all positions are reset at that time. So if I buy 5 one day, restart NT it would show a daily position of 0 and then I sell 5 to liquidate the position. Then I would see -5 for the daily position even though I am flat.

    I am looking if there is a way to pull the actual position in a contract and a strategy at any time. So when I restart NT in the example above, I want to see the long 5 position and when I sell the 5 lots I want to see a net position of 0.

    Thanks

    #2
    elkinm,

    Unfortunately there is no currently supported way of doing this. I could suggest to development on your behalf if you would like.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Please make the request.


      I was thinking that it may be possible to use the strategy analyzer scripts to come to the value.
      Ninja can analyze and give reports on previous trading. I was hoping that that engine could be used to give me the true current position.

      Comment


        #4
        elkinm,

        I will suggest to development and get you a tracking ID. Please note there may be unsupported ways of getting this information. I would check out more of our forum and/or BigMikesTrading.

        I will respond with the tracking ID.
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by carnitron, Today, 08:42 PM
        0 responses
        6 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Today, 07:51 PM
        0 responses
        8 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,974 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Today, 06:48 PM
        0 responses
        9 views
        0 likes
        Last Post rbeckmann05  
        Started by rhyminkevin, Today, 04:58 PM
        4 responses
        58 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Working...
        X