MetaTrader 5 Python User Group - how to use Python in Metatrader - page 73
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If the python program internally does logging, multithreading, socket connection to the terminal, will it all work correctly if you run it on a chart?
The terminal runs its own interpreter and redirects the standard output to the terminal's expert tab and internal logging. The interpreter process terminates when you close the diagram, so you will not be able to register any "atexit" callback functions. Also, you will not be able to access the log text immediately as the terminal does not record the log file as log events arrive. You can try my shell package which will log immediately.
I assume you are using linux containers for the docker, so it will not work with the MetaTrader5 package. You can use python virtualenv. It won't work if you put the script on the chart, but it will work if you activate the environment and run it from the command line.
What about extended authorisation when not only username/password but also ssl certificate password is required?
The password of the certificate is set by the user at the time of generation. The public key is then extracted from the certificate and given to the broker for registration. Read the instructions on the broker's website.
The password of the certificate is set by the user at the time of generation. The public key is then extracted from the certificate and given to the broker for registration. Read the instructions on the broker's website.
I'm on the subject of this one.
There is no password field for the certificate. How will the connection from python behave if extended authorisation is used in the terminal?
I'm talking about this one.
There is no password field for the certificate. How will the connection from python behave if advanced authentication is used in the terminal?
You should have written the full question right away. I don't know that and would have kept silent.
I'm talking about this one.
There is no password field for the certificate. How will the connection from python behave if the terminal uses extended authentication?
You should have written the full question straight away. I don't know that and I would have kept quiet.
I apologise for that. I thought it would be clear from the context of this thread, I should have been clearer.
A certificate already activated and saved in the terminal will be used.
Thank you.