
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
Ask them! It has nothing to do with this website.
hello,
as far as I know python order_send() method is using MT5 equivalent of OrderSend()
I am building an async adapter for the mt5 library and I would like my python order_send to use the MT5 - OrderSendAsync() instead of OrderSend ()
Is this possible with the current functionality available ?
stackoverflow: https://stackoverflow.com/questions/72081988/how-do-i-get-the-result-of-a-trade-in-mt5-with-python-using-the-ticket-number
I have the same issue here, even though the function "history_deals_get" accepts the argument "ticket=", it keeps return error (-2, 'Terminal: Invalid params'). I guess this function is buggy with argument "ticket", so the developer team denies it.
Hope developer team can see the discussion. Still no workaround after 1 year.
Thx
Dear developers,
There is a bug with function history_deals_get(ticket=order_ticket). Providing order ticket would not work, but providing deal ticket would work. This behaviour is different from the documentation, and in practice getting historical deals by providing order ticket would be more practical.
Can you please fix it?
Thank you,
Hi everyone,
Im trying to pull H1 candle info into the db,
same code is working for H4 and D1,, so that basically means, db is up and fine, login/creds working , all the basic.
when I try to pull any candle info H1 and below I get the error below,
INFO:root:Inserted 7137 candles into d1_candles table
INFO:root:Attempting to fetch h1 data for @YM from 1993-01-01 00:00:00+00:00 to 2024-10-21 19:46:47.781389+00:00
ERROR:root:Failed to retrieve H1_CANDLES data for @YM. Error: (-2, 'Terminal: Invalid params')
ERROR:root:Retries left: 2
INFO:root:Attempting to fetch h1 data for @YM from 1993-01-01 00:00:00+00:00 to 2024-10-21 19:46:47.781389+00:00
ERROR:root:Failed to retrieve H1_CANDLES data for @YM. Error: (-2, 'Terminal: Invalid params')
ERROR:root:Retries left: 1
INFO:root:Attempting to fetch h1 data for @YM from 1993-01-01 00:00:00+00:00 to 2024-10-21 19:46:47.781389+00:00
ERROR:root:Failed to retrieve H1_CANDLES data for @YM. Error: (-2, 'Terminal: Invalid params')
has anyone ran into this? " (-2, 'Terminal: Invalid params')"
thanks
I think I will have to download 3.11?
I tried with jupyter the 3.12 version; I installed metatrader5 with pip, but the problems I had with numpy, because mt5 wants a version of numpy < 2; in the end I installed but inside a venv and, I must say, I'm not sure I solved 100%.
Now I'm seeing videos for using python directly on the mt5 IDE.
THADA!!! A mess.
In the IDE compiler I added the path for python 3.12 but first I had to integrate pip install metatrader5 into the python 3.12 path, but it doesn't want to install a version of numpy < 2 at all.
So I come to the question.
I was also thinking of downloading a numpy-1.24.3+cp312-cp312-win_amd64.whl (which I don't think exists) to solve; before I do that could someone kindly tell me how he solved it?
Thank you very much