Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

First independent community of traders

First independent community of traders Logo First independent community of traders Logo

First independent community of traders Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme
  • Home
  • About Us
  • Blog
  • Contact Us
Home/ Questions/Q 5522
Next
In Process
miron_like
miron_like

miron_like

  • 2 Questions
  • 2 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
miron_like
Asked: December 29, 20202020-12-29T09:51:58+00:00 2020-12-29T09:51:58+00:00In: Forex Expert Advisors

Save and read CSV from anywhere

  • 0

Tell me, how can I implement saving and reading a CSV file to the location I specified, and not to the Files folder of MT5 itself, or when using the FILE_COMMON flag to a shared folder?

  • 12 12 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    12 Answers

    • Voted
    • Oldest
    • Recent
    1. marketeer

      marketeer

      • 1 Question
      • 33 Answers
      • 0 Best Answers
      • 92 Points
      View Profile
      marketeer
      2020-12-29T09:53:12+00:00Added an answer on December 29, 2020 at 9:53 am

      miron_like:

      can I have more details please?

      For example, so:

      Forum on trading, automated trading systems and testing of trading strategies

      Mounting volumes to subfolders of MetaTrader 5

      yu-sha, 2011.08.12 13:18

      The problem is solved by means of Windows 7. It seems that in Vista you can do the same.

      No solution found for Windows XP.

      1) By the commandConnect a network drive from the context menu of the iconNetwork connect a network resource (shared folder, ftp,…) and assign it a drive letter, for example, Y:

      2) In the command line with Administrator rights:

      – go to the terminal folder from which you want to access the remote storage

      – run the command mklink /d. localfolder Y:, where localfolder is the name of the local folder, Y is the connected network drive

      This creates a symbolic link to a network resource and makes its contents available to the terminal and the editor.

      P.S.

      You can do without network drives by directly connecting a network folder

      mklink  /d  .localfolder “computersharedfolder” 

       

      In general, the search will still give a lot of things.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. progman

      progman

      • 3 Questions
      • 3 Answers
      • 0 Best Answers
      • 22 Points
      View Profile
      progman
      2020-12-29T09:53:04+00:00Added an answer on December 29, 2020 at 9:53 am

      Avatar )))

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. integer

      integer

      • 0 Questions
      • 18 Answers
      • 0 Best Answers
      • 58 Points
      View Profile
      integer
      2020-12-29T09:52:58+00:00Added an answer on December 29, 2020 at 9:52 am

      Alexey Volchanskiy:

      TS asked about working outside the sandbox – “how can I implement saving and reading a CSV file to the location I specified, and not to the Files folder of MT5 itself“

      added: I read the comments and am amazed, people seem to be blind. I know that most people are not able to understand the meaning of a phrase longer than 5 words, but here…

      That absolutely necessary just there to mess about in the file where it is? An exception may be the rarest unique case when the file cannot be moved for some reason. But what this case is, I can’t even think of. All the same, while working with the file, access to it by other programs should be blocked. With copying even better, the blocking period is reduced to the scanty time required to copy the file.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. miron_like

      miron_like

      • 2 Questions
      • 2 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      miron_like
      2020-12-29T09:52:53+00:00Added an answer on December 29, 2020 at 9:52 am

      Stanislav Korotky:
      This question was already understood. It is enough to make a link to an external folder inside the Files folder. Look for mklink (windows command).

      can I have more details please?

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    5. marketeer

      marketeer

      • 1 Question
      • 33 Answers
      • 0 Best Answers
      • 92 Points
      View Profile
      marketeer
      2020-12-29T09:52:46+00:00Added an answer on December 29, 2020 at 9:52 am

      This question was already understood. It is enough to make a link to an external folder inside the Files folder. Look for mklink (windows command).

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    6. vdev

      vdev

      • 1 Question
      • 42 Answers
      • 0 Best Answers
      • 100 Points
      View Profile
      vdev
      2020-12-29T09:52:39+00:00Added an answer on December 29, 2020 at 9:52 am

      Dmitry Fedoseev:

      Well I do not know… I asked about working outside the sandbox – “how can I implement saving and reading a CSV file to the location I specified, and not to the Files folder of MT5 itself“

      added: I read the comments and am amazed, people seem to be blind. I know that most people are not able to understand the meaning of a phrase longer than 5 words, but here…

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    7. trader781

      trader781

      • 0 Questions
      • 10 Answers
      • 0 Best Answers
      • 40 Points
      View Profile
      trader781
      2020-12-29T09:52:33+00:00Added an answer on December 29, 2020 at 9:52 am

      Why csv?  It is terribly inconvenient to read

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    8. barabashkakvn

      barabashkakvn

      • 7 Questions
      • 162 Answers
      • 0 Best Answers
      • 314 Points
      View Profile
      barabashkakvn
      2020-12-29T09:52:27+00:00Added an answer on December 29, 2020 at 9:52 am

      To copy to the MQL5 sandbox, you can use the WinAPI copyfilew function. And then use the standard MQL5 file functions to work with the file. After processing, apply copyfilew again.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    9. integer

      integer

      • 0 Questions
      • 18 Answers
      • 0 Best Answers
      • 58 Points
      View Profile
      integer
      2020-12-29T09:52:21+00:00Added an answer on December 29, 2020 at 9:52 am

      Alexey Volchanskiy:

      You can create it via the win api, and copy it too. But how then to work with it by means of MQL, I do not know something?

      Copy it to your terminal folder, where you can use mql functions

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    10. miron_like

      miron_like

      • 2 Questions
      • 2 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      miron_like
      2020-12-29T09:52:15+00:00Added an answer on December 29, 2020 at 9:52 am

      MQL can only work with the files or common folder. 

      There are two directories (with subdirectories) where working files can be located:

      • data_terminal_foldermql5files (select the menu item “File”-“Open data directory” to view in the terminal”);
      • the shared folder of all terminals installed on the computer-usually located in the C:Documents and settingsall usersapplication datametaquotesterminalcommonfiles directory.

      Programmatically, you can get the names of these directories using the terminalinfostring () function, using the ENUM_TERMINAL_INFO_STRING enumeration:

      // - - - Folder where terminal data is stored
      string terminal_data_path=terminalinfostring(TERMINAL_DATA_PATH);
      / / - - - Shared folder of all client terminals
      string common_data_path=terminalinfostring(TERMINAL_COMMONDATA_PATH);

      Work with files from other directories is stopped.

      Therefore, standard methods cannot be used.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    11. vdev

      vdev

      • 1 Question
      • 42 Answers
      • 0 Best Answers
      • 100 Points
      View Profile
      vdev
      2020-12-29T09:52:08+00:00Added an answer on December 29, 2020 at 9:52 am

      Dmitry Fedoseev:

      search

      You can simply use the Win API function to copy the file, and then use MQL to work with it. 

      You can create it via the win api, and copy it too. But how then to work with it by means of MQL, I do not know something?

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    12. integer

      integer

      • 0 Questions
      • 18 Answers
      • 0 Best Answers
      • 58 Points
      View Profile
      integer
      2020-12-29T09:52:02+00:00Added an answer on December 29, 2020 at 9:52 am

      search

      You can simply use the Win API function to copy the file, and then use MQL to work with it.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    Stats

    • Questions 504
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 681
    • Popular
    • Comments
    • Tags
    • forexcommunity

      Highlighting what’s important about questions & Answers on Discy Community!

      • 0 Comments
    • forexcommunity

      Introducing Keyboard Shortcuts, our first Labs feature

      • 0 Comments
    • forexcommunity

      Defining quality on Discy Engine — what a helpful answer ...

      • 0 Comments
    • forexcommunity

      Organizational and company accounts on Discy Engine the next step

      • 0 Comments
    • forexcommunity

      Hello world!

      • 0 Comments

    Related Questions

    • Brus Agell

      Правельный выбор

      • 0 Answers
    • pinupcasinoo

      Pin Up Casino

      • 0 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 2 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 0 Answers
    • c00l777

      Optimization results differ on different accounts

      • 3 Answers

    Users

    Leonardcig

    Leonardcig

    • 0 Questions
    • 0 Answers
    DennisByday

    DennisByday

    • 0 Questions
    • 0 Answers
    Haroldmeary

    Haroldmeary

    • 0 Questions
    • 0 Answers

    Footer

    First independent community of traders

    About

    An independent community of forex traders. This is where traders communicate. You can ask your questions and you will receive an answer to your question.
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Knowledge Base
    • Support

    © 2021 Forexcommunity.net. All Rights Reserved