MetaTrader 5 Python User Group - how to use Python in Metatrader - page 56
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
Tried it, it all depends on the hardware it's running on.
One instance eats about 45-50Mb RAM + 2,5-4% CPU. (Yes, % CPU depends on CPU type, in my case Intel Xeon L5640 @ 2.27GHz).
The same, one instance of python.
If python runs with history, + 200-300Mb RAM. CPU is almost not used up.
Well, why, it depends on your ToR or idea.
Understood. Thanks for the information.
Developers, please make API-function copy_buffer(). Get indicator data via analog.
Isn't there an indicator package in Python? Or is it some kind of special indicator. This one seems to work https://github.com/twopirllc/pandas-ta
Isn't there an indicator package in Python? Or is it some kind of special indicator. This one seems to work https://github.com/twopirllc/pandas-ta
copy_buffer() implies getting an array of data for your calculations.
Andcopy_buffer() should work both ways.
What's missing is a bi-directional array transfer.
The symbols_total and symbol_name functions are missing
To get a list of symbols like this:
In 5.0.29 added symbols_total(), symbols_get([group="EURUSD, "USDGBP", *RU*"]), requires the latest beta version of the Terminal to work.
Also, in all functions orders_get(),positions_get(), history_orders_get(), history_deals_get() added possibility of filtering by group - group="EURUSD, "USDGBP", *RU*".
The order_check(), order_send() methods will return the initial request for execution in the request field.
Thecopy_buffer() implies getting an array of data for its own calculations.
Andcopy_buffer() should work in both directions.
What's missing is bidirectional passing of the array.
There are a lot of them on github, there are both b/gbin libs and paid packages...
Do not transfer the model of working with MQL5 to python. They are different and have different purposes.
In 5.0.29 added symbols_total(), symbols_get([group="EURUSD, "USDGBP", *RU*"]), requires the latest beta version of Terminal to work.
Also, in all functions orders_get(), positions_get(), history_orders_get(), history_deals_get() we added an option of filtering by group - group="EURUSD, "USDGBP", *RU*".
The order_check(), order_send() methods will return the initial request for execution in the request field.
And the list of _todict() is not yet able to return?
Can't they return a list of _todict() yet?
Yes, they can, see the example.
Result
They can, see example
Result
Thank you, I have seen this example, it works.
My question is a bit different.
positions_get - it returns to me a list of tradePosition. In principle, it's OK, we can throw it in pandas and work fine.
But it's not limited to pandas and if you want to get something like this:
we have to convert it somehow, pandas or for ... That's a lot of unnecessary gestures.
_asdict() has become much more convenient, if the developer is not an MQL5 programmer, but, say, a Pythonist ... or a data scientist, list/dict is
list/dict are the main elements of python. Many libs use list/dict to create data transfers.
Tuples are used a lot too, but only if you want to strictly control types of data in it.
and have an error handler for incorrect use or assignment. Somewhere ... :) I could be wrong.
There are plenty of them on github, there are both b/bp libs and paid packages...
Do not transfer the model of working with MQL5 to python. They are different and have different objectives.
What do you mean by that? Copying an array from mql5 to py and back?
You should at least carefully read what we're talking about.
You don't have to think only for yourself. If you don't need it, others do.