Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SampleCustomEvents_NT8.zip and SampleLevel2Book_NT8.zip not working in NT8

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

    SampleCustomEvents_NT8.zip and SampleLevel2Book_NT8.zip not working in NT8

    Hi,

    When I add SampleCustomEvents_NT8 or SampleLevel2Book_NT8 to my chart I don't see that it do anything. I have level 2 data so I don't really understand what is wrong. Would be glad if someone else can try it and see if it work on their charts.

    Kind regards
    Derik

    #2
    Hello derikb,

    Thanks for your post.

    When importing and testing the SampleCustomEvents_NT8 and SampleLevel2Book_NT8 indicators, I am seeing them work as expected.

    The SampleCustomEvents_NT8 and SampleLevel2Book_NT8 indicators will print information to a New > NinjaScript Output window once they are applied to a Chart. For example, please see the attached screenshot demonstrating SampleLevel2Book_NT8 printing information to a NinjaScript Output window.

    If you open a NinjaScript Output window and add the SampleCustomEvents_NT8 or SampleLevel2Book_NT8 indicator to a Chart, do you see information printed in the NinjaScript Output window?

    Let us know if we may assist further.
    Attached Files
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hi Brandon,

      Thank you for your response. I thought it must put it in the chart. How can I sum the ask at each level and the plot it in a window below my chart.

      Thank you for your help.
      Derik

      Comment


        #4
        Hello derikb,

        Thank you for your note.

        To sum the ask prices you could use the C# Sum method and save that value to a variable. Then, you could call AddPlot() to create a plot and assign the value of the summed ask prices to that plot. The code for the C# Sum method would look something like this.

        double sum = askRows.Sum(s => s.Price);

        See the attached script which is a modified version of SampleCustomEvents. This script demonstrates how you could accomplish the above.

        Also, see this help guide documentation for more information about AddPlot - https://ninjatrader.com/support/help...t8/addplot.htm

        Let us know if we may assist further.
        Attached Files
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Hi Brandon,

          Thank you. This helped me a lot.

          Kind regards
          Derik

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by max1ci6, Today, 02:02 AM
          2 responses
          11 views
          0 likes
          Last Post max1ci6
          by max1ci6
           
          Started by junkone, Yesterday, 08:06 PM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_EricB  
          Started by fscabrera03, Yesterday, 07:27 PM
          1 response
          5 views
          0 likes
          Last Post tradecombine  
          Started by Rad4633, Yesterday, 05:31 PM
          0 responses
          2 views
          0 likes
          Last Post Rad4633
          by Rad4633
           
          Started by litamm89, Yesterday, 03:51 PM
          0 responses
          6 views
          0 likes
          Last Post litamm89  
          Working...
          X