fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Read from csv

    Questions & Answers
    2
    6
    991
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      edwardseer last edited by

      hi, is there a method to read values from csv?
      i got a indicator which do not output its value in buffer but instead write the values to a csv and i wish to use directly from the csv file to input the buy limit,etc into the ea.

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        There is no such block yet 🙂 I never tried to build one actually. How does your data look in this file?

        1 Reply Last reply Reply Quote 0
        • E
          edwardseer last edited by

          Attached is an example of the csv it wrote. The indicator writes the pattern formed along with its price to sell,etc to a csv i want to be able to extract the name from the csv file like bearish AB=CD from the file below and price level etc and put it onto a dashboard which i will create.

          Also, how do i directly extract the price level at the edge of the rectangle as shown in http://snag.gy/2xXGR.jpg

          the indicator is able to export 2 kinds 1 csv and the other xml. the xml also shows what are the headings for the values in csv.
          if it can also import from either an xml or csv file too will be good.

          ......
          AB=CD_AUDJPY_M5_Bullish.csv
          AB=CD_AUDJPY_M5_Bullish.xml

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            Using some of the functions here http://docs.mql4.com/files, but as I said, I never tried to do this thing and there is no block that uses these functions right now. I will do this eventually, but it will probably take some time to figure out how what block inputs to be used, because you know that csv tables can have multiple rows and columns.

            But I think it will be much better if the indicator can send data to the EA the normal way with buffers, or with it's objects at most. Now you are going to read the file again and again, which is not very intelligent. These files are basically used as a log files, some data to be written there so you can then read it or do some calculations over it with Excel. But to get information from there...

            Rectangles are built from 2 points - 2 price value and 2 time value.

            Point 1 => Time 1 and Price 1
            Point 2 => Time 2 and Price 2

            You can see 4 points, but the other two have the same Time/Price of the other two. If you know how to get "Price level 1" and "Price level 2", then you have all the data of the other two points, it is the same "Price level 1" and "Price level 2" 🙂
            It is similar with time values.

            1 Reply Last reply Reply Quote 0
            • E
              edwardseer last edited by

              alright hope you can figure it out :). i prefer to use buffer too but the indicators already have 8 buffers inside to do its calculation i think thus it does not have any buffer allocated to output of its value. It only output its value through the rectangle object. im only using it for >15min charts so its fine and i saw the output file gives me everything i need directly.

              ok thanks hopefully i can figure this out :).

              anyway, great job with your software. i am loving it so far and thank you for your reply 🙂

              ......
              ZUPp_148.mq4

              1 Reply Last reply Reply Quote 0
              • fxDreema
                fxDreema last edited by

                Damn, this indicator has some big code 😕 But if you want to get values from this rectangle, you can do it 🙂

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                Online Users

                M
                M
                E
                M
                A
                H
                E
                E
                M
                S

                18
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors