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 rhyminkevin, Today, 04:58 PM
        4 responses
        52 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by iceman2018, Today, 05:07 PM
        0 responses
        5 views
        0 likes
        Last Post iceman2018  
        Started by lightsun47, Today, 03:51 PM
        0 responses
        7 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        14 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        50 views
        0 likes
        Last Post futtrader  
        Working...
        X