MetaTrader 5 Python User Group - how to use Python in Metatrader - page 77

 
MrBrooklin:

Hello Maxim!

I promised you earlier that I would check the option of adding a delay code at the weekend. Checked it, but the delay didn't affect anything. No problems with the left tab, because I simply do not pay attention to it.

Once again, thank you very much for your assistance. I will not ask any more questions in this thread.

Regards, Vladimir.

Please, good luck ;)

 
MrBrooklin :

Hello, Maxim!

Earlier I promised you that on the weekend I will check the option with the addition of a delay code. I checked it, but the delay didn't affect anything. There are no problems with the left tab, tk. I just don't pay attention to it.

Once again, thank you very much for your assistance. I will not ask more questions in this thread.

Sincerely, Vladimir.

https://stackoverflow.com/questions/50411346/update-an-excel-sheet-in-real-time-using-python
Update an Excel sheet in real time using Python
Update an Excel sheet in real time using Python
  • 2018.05.18
  • West
  • stackoverflow.com
Is there a way to update a spreadsheet in real time while it is open in Excel? I have a workbook called Example.xlsx which is open in Excel and I have the following python code which tries to update cell B1 with the...
 
Алексей Тарабанов:

Reading the Chinese pager. Doing a lot of thinking...

That's my point about integrating Python and MQL. Both languages are close, but MQL is simple and Python is primitive, like BASIC. Everyone who programs in MQL can easily create something in Python and vice versa. What is the interest in this subject? Firstly, it is for very lazy people. Well, write something in a very similar language... The interest could be in two components: libraries, of which there are many in Python, and interfaces, for which MQL is famous. So why not make access from Python to MQL interfaces and access from MQL to Python libraries? That's it.

Python doesn't know how to do tracks. It has a global stack for the whole process.
 
Maxim Kuznetsov:
Python doesn't know how to do tracks. It has a global stack for the whole process.

Python knows how to do it.

 

Renat Fatkhullin:

...

Later on, we will expand the library to allow access to built-in and custom indicators from the terminal.


Later, when is that, even approximately?

 
Maxim Kuznetsov:
Python doesn't know how to thread. It has a global state for the whole process.

Maxim, 30 years ago I was a ktn in cybernetics and a specialist in developing special mathematics for ACS. Today I grow cabbage like Nero and don't know what a trudge and a state is.

 

How do I use this Tick () function ?

I am getting an error message:

>>> mt5.Tick ()
Traceback (most recent call last):
  File " < stdin > ", line 1, in < module > 
TypeError: structseq () missing required argument 'sequence' (pos 1)

Please let me know.

Where can I find documentation on this function?
 

Moscow Exchange, OpenBroker, Si-12.20. A few questions:

1. I get 0 as a reply to the request opders_total and positions_total, although I have a position in the market. Is it supposed to be like this?

2. I do not get current values on request during the session account_info.balance/equity/profit .

3. The tab "Trade" tracks the value "Funds" - how can I get it using MetaTrader5 library command?

 
Vladimir Perervenko:

Moscow Exchange, OpenBroker, Si-12.20. A few questions:

1. I get 0 as a reply to the request opders_total and positions_total, although I have a position in the market. Is it planned?

2. I do not get current values on request during the session account_info.balance/equity/profit .

3. The "Equity" value is tracked in the "Trade" tab - how can I get it using the MetaTrader5 library command?

The question is solved. Figured it out.

 
Renat Fatkhullin:

Has anyone already used Python integration in MetaEditor in builds 2302 and above (better beta 2304)?


The first version of integration into the editor is working now, and the next will be:

  • running scripts (not experts) and services as Python *.py programs
  • a completely rewritten python library metatrader5 with access to charts, symbols, ability to trade, trading history
  • illumination in the editor

Already running *.py and *.ipynb programs in the editor works.

Please give it a try.


After the machine learning via python scripts is complete, we will move on to implementing WinML with ONNX natively in MQL5 itself.

Renat, is there any update on ONNX support?

Reason: