MetaTrader 5 Python User Group - the summary - page 4

 
Sergey Golubev:

Same error persists which I had already mentioned before in the same thread. Please let me know what to do.

C:\WINDOWS\system32>python -m pip install --upgrade MetaTrader5
Collecting MetaTrader5
  Downloading https://files.pythonhosted.org/packages/ee/3b/4424be9ca5772ddd7f249385785d6fcacceef90fc45bf5c4946514ca245a/MetaTrader5-5.0.9.tar.gz
Building wheels for collected packages: MetaTrader5
  Building wheel for MetaTrader5 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Python35\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\la\\AppData\\Local\\Temp\\pip-install-wgkrs6w0\\MetaTrader5\\setup.py'"'"'; __file__='"'"'C:\\Users\\la\\AppData\\Local\\Temp\\pip-install-wgkrs6w0\\MetaTrader5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\la\AppData\Local\Temp\pip-wheel-1bkph95d' --python-tag cp35
       cwd: C:\Users\la\AppData\Local\Temp\pip-install-wgkrs6w0\MetaTrader5\
  Complete output (10 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.5
  creating build\lib.win-amd64-3.5\MetaTrader5
  copying MetaTrader5\__init__.py -> build\lib.win-amd64-3.5\MetaTrader5
  running build_ext
  building 'MetaTrader5.C' extension
  error: [WinError 2] The system cannot find the file specified
  ----------------------------------------
  ERROR: Failed building wheel for MetaTrader5
  Running setup.py clean for MetaTrader5
Failed to build MetaTrader5
Installing collected packages: MetaTrader5
  Found existing installation: MetaTrader5 5.0.4
    Uninstalling MetaTrader5-5.0.4:
      Successfully uninstalled MetaTrader5-5.0.4
    Running setup.py install for MetaTrader5 ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Python35\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\la\\AppData\\Local\\Temp\\pip-install-wgkrs6w0\\MetaTrader5\\setup.py'"'"'; __file__='"'"'C:\\Users\\la\\AppData\\Local\\Temp\\pip-install-wgkrs6w0\\MetaTrader5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\la\AppData\Local\Temp\pip-record-vytr225h\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\la\AppData\Local\Temp\pip-install-wgkrs6w0\MetaTrader5\
    Complete output (10 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\MetaTrader5
    copying MetaTrader5\__init__.py -> build\lib.win-amd64-3.5\MetaTrader5
    running build_ext
    building 'MetaTrader5.C' extension
    error: [WinError 2] The system cannot find the file specified
    ----------------------------------------
  Rolling back uninstall of MetaTrader5
  Moving to c:\python35\lib\site-packages\metatrader5-5.0.4.dist-info\
   from c:\python35\lib\site-packages\~etatrader5-5.0.4.dist-info
  Moving to c:\python35\lib\site-packages\metatrader5\
   from c:\python35\lib\site-packages\~-tatrader5
ERROR: Command errored out with exit status 1: 'C:\Python35\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\la\\AppData\\Local\\Temp\\pip-install-wgkrs6w0\\MetaTrader5\\setup.py'"'"'; __file__='"'"'C:\\Users\\la\\AppData\\Local\\Temp\\pip-install-wgkrs6w0\\MetaTrader5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\la\AppData\Local\Temp\pip-record-vytr225h\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
 

@Sergey Golubev @Marco vd Heijden Apologize for explicitly referring you in the comment. But the above issue is never addressed by anyone and since a long time. I do not know what new things are there in the latest version as I am not able to install it. Even on the new machine I am not able to install it using the pip install Metatrader5 command. I am using Python 3.5.0

It is supported version I guess.

Please let me know something regarding it. Please.

 
jaffer wilson:

@Sergey Golubev @Marco vd Heijden Apologize for explicitly referring you in the comment. But the above issue is never addressed by anyone and since a long time. I do not know what new things are there in the latest version as I am not able to install it. Even on the new machine I am not able to install it using the pip install Metatrader5 command. I am using Python 3.5.0

It is supported version I guess.

Please let me know something regarding it. Please.

You can make a post on this thread (Russian forum thread) https://www.mql5.com/ru/forum/306688/page28 and I am sure - someone will help or advice.
MetaTrader 5 Python User Group - как использовать Python в Метатрейдере
MetaTrader 5 Python User Group - как использовать Python в Метатрейдере
  • 2019.12.12
  • www.mql5.com
Мы готовим модуль MetaTrader 5 для Python, аналогичную R...
 
Sergey Golubev:
You can make a post on this thread (Russian forum thread) https://www.mql5.com/ru/forum/306688/page28 and I am sure - someone will help or advice.

Is this not your maintained repository?

 
jaffer wilson:

Is this not your maintained repository?

I am not a coder so I suggested to you to make a post on the python thread where the admins from MQ are posting/replying to the questions.
or you can wait when someone will reply here ..

 
Sergey Golubev:

I am not a coder so I suggested to you to make a post on the python thread where the admins from MQ are posting/replying to the questions.
or you can wait when someone will reply here ..

Thank you.

 

It is not related to Python package but it is very interesting -

----------------
Statistical Distributions in MQL5 - taking the best of R and making it faster - the article

Contents
  1. Functions for calculating the statistical characteristics of array elements

  2. Functions for working with statistical distributions
    2.1. Normal distribution

    2.2. Log-normal distribution

    2.3. Beta distribution

    2.4. Noncentral beta distribution

    2.5. Gamma distribution

    2.6. Chi-squared distribution

    2.7. Noncentral chi-squared distribution

    2.8. Exponential distribution

    2.9. F-distribution

    2.10. Noncentral F-distribution

    2.11. t-distribution

    2.12 Noncentral t-distribution

    2.13. Logistic distribution

    2.14. Cauchy distribution

    2.15. Uniform distribution

    2.16. Weibull distribution

    2.17. Binomial distribution

    2.18. Negative binomial distribution

    2.19. Geometric distribution

    2.20. Hypergeometric distribution

    2.21. Poisson distribution

  3. Table of correspondence to the statistical functions in R

  4. An example of using the functions

  5. Comparison of calculation speed

  6. Detected calculation errors in R

  7. References
Statistical Distributions in MQL5 - taking the best of R and making it faster
Statistical Distributions in MQL5 - taking the best of R and making it faster
  • www.mql5.com
Those include the Cauchy, Weibull, normal, log-normal, logistic, exponential, uniform, gamma distributions, the central and noncentral beta, chi-squared, Fisher's F-distribution, Student's t-distribution, as well as the discrete binomial and negative binomial distributions, geometric, hypergeometric and Poisson distributions. In addition, there...
 
How I can download history of using the Python API similar to how the Strategy Tester Downloads?