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

Is there an Economic Events Collection? MultiCharts has one:

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

    Is there an Economic Events Collection? MultiCharts has one:

    Is there something similar to this?
    The Economic Events Collection for MultiCharts - User Contributed Studies and Indicator Library Discussion Forum For Traders' Community



    #2
    Hello YakusaTrader,

    Thanks for your post.

    You might check this add-on indicator for NinjaTrader8: https://ninjatraderecosystem.com/use.../jteconnews2a/

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you, I did, however there is no public property I can use in my strategy to backtest / or use it in the Sim.
      I also tried to add a streamwriter to it, but it looks like it's locked.
      Is there a way I can use it for a strategy?

      Thank you!

      Comment


        #4
        Hello YakusaTrader,

        Thanks for your reply.

        The code is not locked.

        As I understand it the intent of the indicator is to retrieve the current events calendar and put them into a list which is then further sorted according to user settings and then ultimately used to display on the chart and provide alerts if selected. Perhaps you might look at adding a data series to the indicator to "signal" when an alert is issued. The data series can be made public allowing the strategy to read the data series.

        Here is a link to the help guide section on data series: https://ninjatrader.com/support/help.../?iseriest.htm

        If you prefer to use another type of data, here is a link to an example of exposing other data: https://ninjatrader.com/support/help...alues_that.htm
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Thank you very much Paul.
          Would it be possible to read from a file past events and backtest a strategy that avoids trading 30 minutes before after events?
          I created a .CSV file with all events dating back from 10 years ago.
          Let me know.
          Thanks again!

          Comment


            #6
            Hello YakusaTrader,

            Thanks for your reply.

            Yes, you would be able to read the file in using the C# StreamReader.

            While this is not a Ninjascript method we have provided an example of how to use it in the environment



            You can also do an internet search to find further info on the StreamReader.
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Thank you.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by TraderBCL, Today, 04:38 AM
              1 response
              5 views
              0 likes
              Last Post bltdavid  
              Started by martin70, 03-24-2023, 04:58 AM
              14 responses
              105 views
              0 likes
              Last Post martin70  
              Started by Radano, 06-10-2021, 01:40 AM
              19 responses
              606 views
              0 likes
              Last Post Radano
              by Radano
               
              Started by KenneGaray, Today, 03:48 AM
              0 responses
              4 views
              0 likes
              Last Post KenneGaray  
              Started by thanajo, 05-04-2021, 02:11 AM
              4 responses
              471 views
              0 likes
              Last Post tradingnasdaqprueba  
              Working...
              X