Roffild's Library - page 2

To add comments, please log in or register
Roffild
1338
Roffild  

Added MLPDataFile class for Python to the library.

buildall_and_tests.py - The script builds all components of the library and run tests.

MQL5 (MetaTrader): Machine Learning, Random Forest, Java, Apache Spark, AWS for Forex, CFD and Futures
  • roffild.com
I am known to the MQL5 community by the name of Roffild and this is my open source library for MQL5. An attempt to implement the features on MQL5, which have long become the standard for popular programming languages. Each file has one idea. The library is replenished as needed for new capabilities. Few people tried to put the project in...
Roffild
1338
Roffild  
MetaTrader 5 (MQL5) + Python 3 DLL
  • roffild.com
The main idea and the difference of this wrapper: a data exchange between the MQL and Python via pre-created function. This is the fastest and most reliable data exchange method. There is no time spent on parsing and compiling Python code that appears when using eval(). The class name does not matter, because the reflection of the functions is...
Roffild
1338
Roffild  
Fixed crash tester on build 2025 due to PythonDLL.
849238
265
849238  
Please check private messages @Roffild Thanks!
Roffild
1338
Roffild  

Now run status PythonDLL checked:

if globals().get('__PythonDLL__'):
    print('run in MetaTrader')
elif __name__ == '__main__':
    print('run as script')
lo.zed
16
lo.zed  

Hi, first of all thanks for your awesome libraries.

I have a problem when importing a module in python. I tried with a basic example (where getDouble only returns [1.], for example) and it works perfectly. When adding

import pandas as pd
 at the top of the python file, it stops working. It gets stuck at 
python.eval(_PyCode_, true)

Is this normal? Could you help me overcome this problem?

Thank you very much.

Roffild
1338
Roffild  
@lo.zed, download the update.
Roffild
1338
Roffild  

Switching to simple GIL, because many popular Python libraries are not compatible with the sub-interpreter.

If necessary, you can build with PYTHONDLL_SUBINTERPRETERS.
MetaTrader 5 (MQL5) + Python 3 DLL for Forex, CFD and Futures
  • roffild.com
Use MetaTrader with Python 3 on financial stock exchanges, Forex, CFD and Futures. From MetaTrader, you can get quotes in Python, but no complete connection between them. This post is one of the developers (RU). The main idea and the difference of this wrapper: a data exchange between the MQL and Python via pre-created function. This is the...
lo.zed
16
lo.zed  
Roffild:
@lo.zed, download the update.

all good now!

Thanks

Roffild
1338
Roffild  
Again PythonDLL update

Some use sys.stderr.write(), but if there is no console, sys.stderr = None. I had to make a stub.
To add comments, please log in or register