• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Write Position in file.csv

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

    Write Position in file.csv

    I want write open position in file.csv,
    Help me please , I am new on Ninja.

    #2
    Hello Gio64,

    Thanks for your post and welcome to the NinjaTrader forums!

    We have a working reference example of how to write data to a txt file that can be read into a spreadsheet. Please see: http://ninjatrader.com/support/forum...ead.php?t=3475
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thanks,
      How I get order open?

      Comment


        #4
        Hello Gio64,

        Thanks for your reply.

        Can you clarify what specifically you are looking to output?
        Paul H.NinjaTrader Customer Service

        Comment


          #5

          Comment


            #6
            position

            https://docs.google.com/drawings/d/1...it?usp=sharing

            Comment


              #7
              Order Instrument,Order Side,Order Qty, Order ID, etc

              Comment


                #8
                Hello Gio64,

                Thanks for clarifying.

                In your strategy, you can access the instrument name from http://ninjatrader.com/support/helpG...instrument.htm

                You can access the position information from: http://ninjatrader.com/support/helpG...m?position.htm

                Note: If you want to export the contents of the positions tab, you can right mouse click and select Grid then export to excel. (This works on any tab with a grid like structure)
                Paul H.NinjaTrader Customer Service

                Comment


                  #9
                  Dear Sir,
                  thanks for your help.
                  I want output
                  GetAtmStrategyUniqueId() , GetAtmStrategyPositionQuantity() , GetAtmStrategyUnrealizedProfitLoss()

                  for all order filled and not close.

                  Send me sample please.
                  Thanks

                  Comment


                    #10
                    Hello Gio64,

                    Thanks for your reply.

                    As you are using the ATM strategy methods, you already have the information you need from those methods. Here are the helpguide references: http://ninjatrader.com/support/helpG...gy_methods.htm

                    We have no sample/example code to send you other than what is in the helpguide for those methods and what is in the strategy SampleATMstrategy that is in your platform.
                    Paul H.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by rainbow47, Today, 06:10 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post rainbow47  
                    Started by stenberg98, Today, 04:53 AM
                    2 responses
                    7 views
                    0 likes
                    Last Post NinjaTrader_Marco  
                    Started by wukefuha, Today, 03:20 AM
                    1 response
                    6 views
                    0 likes
                    Last Post NinjaTrader_Marco  
                    Started by mbcmbc, Yesterday, 10:12 PM
                    1 response
                    9 views
                    0 likes
                    Last Post NinjaTrader_ChrisSch  
                    Started by fx.practic, Today, 03:44 AM
                    1 response
                    14 views
                    0 likes
                    Last Post NinjaTrader_Marco  
                    Working...
                    X