Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChartToCSV reversion > CSVtoChart to plot stored data in Excel file into a NT8 chart

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

    #16
    Hello Monares,

    The script must be added to a live chart, and then once everything is loaded, the button can be pressed which will read the objects on the chart and write the CSV file.

    There would not be a way to automatically create a chart and automatically apply the indicator on weekly intervals.

    However, if you wanted to leave the script running on a chart and automatically export data to a CSV file on a timed interval, this would be possible if you modified the script so it triggers the CSV writing functionality off of a timer, or when using a time check in OnBarUpdate. Paul's script implements a ReadWrite() function to read the data on the chart and export to CSV.

    To make Time and Day checks easier, you could consider using ToTime() and ToDay()

    ToTime - https://ninjatrader.com/support/help...nt8/totime.htm

    ToDay - https://ninjatrader.com/support/help...html?today.htm

    We look forward to assisting.

    Comment


      #17
      Hello, does anyone know of an indicator or package that can pull the chart contents(like from the databox) to a CSV file or program in real time and not just for the historical bars?

      Comment


        #18
        Hello greatestNothing,

        Thanks for your message.



        Unfortunately, we are not aware of any add-on that would convert the chart contents to CSV file, for realtime and historical.

        The following add-on converts your chart data to CSV only when a button is hit and only for historical.

        This indicator will write all of the chart’s historical bar data and indicator data to a CSV type file that can then be imported into a spreadsheet. To use this indicator, add it to a chart and (critical) wait until all indicators have finished reloading (no longer shows (Calculating…)). Click the green button in the […]


        Since you stated that you want to record in real-time, a solution to this problem, as Jim mentioned above, is to keep the script running on a chart and automatically export data to a CSV file at regular intervals. You can achieve that by modifying the script to trigger CSV writing based on a timer or by adding time checks within OnBarUpdate(). The script uses a ReadWrite() function to read chart data and export it to a CSV file.

        To simplify checking time and day, consider using the built-in ToTime() and ToDay() methods.

        ToTime()

        ToDay()

        You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request, or provide one-on-one educational services.





        This thread will remain open for any community members to share any scripts that may already have the desired functionality.

        Comment


          #19
          hello, that indicator is very useful, but as it says on it's page, can only export a live chart (price is moving) so only current contract, there's any work around so I can export previous contracts?

          Comment


            #20
            Originally posted by NinjaTrader_Helom View Post
            Hello greatestNothing,

            Thanks for your message.



            Unfortunately, we are not aware of any add-on that would convert the chart contents to CSV file, for realtime and historical.

            The following add-on converts your chart data to CSV only when a button is hit and only for historical.

            This indicator will write all of the chart’s historical bar data and indicator data to a CSV type file that can then be imported into a spreadsheet. To use this indicator, add it to a chart and (critical) wait until all indicators have finished reloading (no longer shows (Calculating…)). Click the green button in the […]


            Since you stated that you want to record in real-time, a solution to this problem, as Jim mentioned above, is to keep the script running on a chart and automatically export data to a CSV file at regular intervals. You can achieve that by modifying the script to trigger CSV writing based on a timer or by adding time checks within OnBarUpdate(). The script uses a ReadWrite() function to read chart data and export it to a CSV file.

            To simplify checking time and day, consider using the built-in ToTime() and ToDay() methods.

            ToTime()

            ToDay()

            You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services.
            It's a pain waiting days for a deposit to reflect when you're trying to move quickly in the markets. Even small payment delays can ruin timing, and opportunities. These delays are not always in the broker's control, it's just how fragmented payment infrastructure still is. I've seen some fintech platforms www.corefy.com solving this with services like corefy.com that serves as a payment orchestration layer. It connects banks and PSPs so payments can get routed more quickly and intelligently - a potential huge differentiator for platforms servicing active traders.​ Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request, or provide one-on-one educational services.





            This thread will remain open for any community members to share any scripts that may already have the desired functionality.
            Yes, you definitely have to try it!
            Last edited by Redders; 06-16-2025, 06:06 AM.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by mlarocco, 06-20-2025, 11:12 AM
            1 response
            52 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by futurenow, 12-06-2021, 05:49 PM
            19 responses
            1,028 views
            0 likes
            Last Post Redders
            by Redders
             
            Started by mathfrick2023, 05-08-2025, 12:51 PM
            8 responses
            141 views
            0 likes
            Last Post Yogaman
            by Yogaman
             
            Started by several, 04-22-2025, 05:21 AM
            1 response
            299 views
            0 likes
            Last Post Lukasxgtx  
            Started by NTEducationTeam, 06-12-2025, 02:30 PM
            0 responses
            54 views
            0 likes
            Last Post NTEducationTeam  
            Working...
            X