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

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 Kaledus, Today, 01:29 PM
          0 responses
          3 views
          0 likes
          Last Post Kaledus
          by Kaledus
           
          Started by PaulMohn, Today, 12:36 PM
          1 response
          16 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by yertle, Yesterday, 08:38 AM
          8 responses
          37 views
          0 likes
          Last Post ryjoga
          by ryjoga
           
          Started by rdtdale, Today, 01:02 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by alifarahani, Today, 09:40 AM
          3 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X