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

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

            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 sidlercom80, 10-28-2023, 08:49 AM
                    166 responses
                    2,234 views
                    0 likes
                    Last Post sidlercom80  
                    Started by thread, Yesterday, 11:58 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post thread
                    by thread
                     
                    Started by jclose, Yesterday, 09:37 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post jclose
                    by jclose
                     
                    Started by WeyldFalcon, 08-07-2020, 06:13 AM
                    10 responses
                    1,414 views
                    0 likes
                    Last Post Traderontheroad  
                    Started by firefoxforum12, Yesterday, 08:53 PM
                    0 responses
                    11 views
                    0 likes
                    Last Post firefoxforum12  
                    Working...
                    X