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

Get Time and Sales Info to Output Window

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

    Get Time and Sales Info to Output Window

    Hello,

    I have a simple request. Using code how do we get time and sales info to print out to the console like say if we want to filter only certain block sizes?

    #2
    Hello ttrader23,

    Thank you for your post.

    Below is a forum post which has a sample script replicating the Times and Sales window behavior and printing out the info:



    You can also use the BlockVolume indicator which detects block trades and displays how many occurred per bar.



    Please let us know if you have any further questions.
    Gaby V.NinjaTrader Customer Service

    Comment


      #3

      For some reason I'm not getting this coming through. Please see below. As you can see not matching.


      Click image for larger version  Name:	image.png Views:	0 Size:	143.5 KB ID:	1302904
      Attached Files
      Last edited by ttrader23; 05-08-2024, 08:24 PM.

      Comment


        #4
        Hello ttrader23,

        Is this your own version of the script, or are you testing out the TnSPrintsExample from the forum post?

        When I test out that script, I'm not seeing any discrepancy.
        Gaby V.NinjaTrader Customer Service

        Comment


          #5
          It is the same script. Try it and wait for those large orders. They don't come in.

          Comment


            #6
            Hello ttrader23,

            I'm not able to replicate this behavior when testing out the script on my end. Below is a short video of me testing out the script:

            World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


            I would also like to note that the output from your screenshot doesn't match any of the timestamps shown in the Time and Sales. The Times and Sales window has timestamps at 2:59PM but your output is only showing timestamps that stop at 2:26PM. Was the script disabled or was this portion of the output cut off?

            I look forward to your response.
            Gaby V.NinjaTrader Customer Service

            Comment


              #7
              Click image for larger version

Name:	image.png
Views:	15
Size:	4.5 KB
ID:	1302983

              Did you get this large order on your output?

              Comment


                #8
                Or any of these?Click image for larger version

Name:	image.png
Views:	16
Size:	10.7 KB
ID:	1302989

                Comment


                  #9
                  Hello ttrader23,

                  What instrument are you testing? I am receiving updates for large orders and you can see I did get one in the video on the ES 06-24.

                  Below is a recent screenshot showing it is still working.

                  Does your TnS window have Last updates checked in the Properties?

                  Are you testing the script on the same instrument that is being used in the TnS window?
                  Attached Files
                  Gaby V.NinjaTrader Customer Service

                  Comment


                    #10
                    It's ES same as yours. Try multiple times and large orders. They don't always come in.

                    Comment


                      #11
                      Hello ttrader23,

                      I'm not able to replicate this behavior using this sample script.

                      Does your TnS window have Last updates checked in the Properties?

                      Can you share a video showing what steps you are taking that lead to this behavior?
                      Gaby V.NinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Uregon, Today, 03:44 AM
                      0 responses
                      2 views
                      0 likes
                      Last Post Uregon
                      by Uregon
                       
                      Started by CyberNate, 11-17-2020, 08:15 PM
                      2 responses
                      426 views
                      0 likes
                      Last Post nurpalgo  
                      Started by sdauteuil, 09-23-2021, 10:16 AM
                      7 responses
                      1,247 views
                      0 likes
                      Last Post marcus2300  
                      Started by sofortune, 05-18-2024, 11:48 AM
                      2 responses
                      34 views
                      0 likes
                      Last Post NinjaTrader_BrandonH  
                      Started by Zach55, 02-19-2024, 07:22 PM
                      2 responses
                      67 views
                      0 likes
                      Last Post lbadisa1  
                      Working...
                      X