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

ChartToCSV Incorrect prices with renko

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

    ChartToCSV Incorrect prices with renko

    Hello
    I found thos famous indicator to save all i see on my chart https://ninjatraderecosystem.com/use...ad/charttocsv/
    I can't send message to the author so i post here.
    The pb is that prices saved with renko are not correct. The date and volume and indicators values are good..
    I coded and indicator to see in separate window the open price ( only to test to get correct value Value[0] = Open[0] ) but value are not correct too.
    So is there a solution to have good value in my separate indicator or directly in the saved file ?
    Thx​

    #2
    Hello sp41110,

    Thank you for your post.

    Renko bars can be challenging to work with because they have a function to remove the previous bar in the series and replace it with a new Open price. I suspect that this has to do with the prices you are seeing; what about the prices seems to be incorrect? Do you see a difference if you set your indicator's value to the Open of a prior bar rather than the Open of the current bar?

    I look forward to your reply.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply.
      But as an image is more expressive look at this one.
      In the green rectangles, the data is correct while in the red ones not.
      I would like to be able to save the data as the chart displays it​
      thx

      EDIT : Data values in data box are correct. the problem is only in the saved file with Open High Low and Close.

      image : https://prnt.sc/hkEIiqD5eo7u

      Last edited by sp41110; 02-24-2023, 11:17 AM.

      Comment


        #4
        Hello sp41110,

        I think you are getting confused with the fractional notation.

        Check the exchange website for the tick fraction per point.
        If 32, divide the fraction by 320.

        For example for 124'240 this would convert to 124.75 as 240/320=.75,

        With 10 fractions per point 1.1411'4 would convert to 1.14114



        For the ZN, this would have a tick fraction per point of 32.
        https://www.cmegroup.com/markets/int...cs.html​

        With a value of 111'095 , 095 would be divided by 320, which equals .296875, which is what I am seeing as the last value and second to last value in the output file, so i'm guessing these are the open and close values.

        With a value of 111'195, 195 / 320 is .609375, which I am also seeing in your output as the first two values.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you for your reply.
          I am absolutely sorry, I thought the price was displayed in the file as it appeared on the chart.​

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Jonafare, 12-06-2012, 03:48 PM
          5 responses
          3,986 views
          0 likes
          Last Post rene69851  
          Started by Fitspressorest, Today, 01:38 PM
          0 responses
          2 views
          0 likes
          Last Post Fitspressorest  
          Started by Jonker, Today, 01:19 PM
          0 responses
          2 views
          0 likes
          Last Post Jonker
          by Jonker
           
          Started by futtrader, Today, 01:16 PM
          0 responses
          8 views
          0 likes
          Last Post futtrader  
          Started by Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,792 views
          0 likes
          Last Post aligator  
          Working...
          X