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

    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?

        Comment


          #5

          Comment


            #6
            position

            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)

                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.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    630 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    364 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    105 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    566 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    568 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X