MetaTrader 5 Python User Group - how to use Python in Metatrader - page 53
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
Check whether your account type is netting or hedging. For netting, the ticket of an already existing position will not change, and there is no point in looking for a position after the share by order number.
Yep, all clear, looked at yes, in case of opening a position on a netting ticket, corresponds to the position being opened. The point is clear.
error code 1, this is success mt5.RES_S_OK, the next build will write [1, 'Success']. Codes with negative values are errors mt5.RES_E_xxx.
Yes, thank you - the point is clear as to why the blank line was there.
Hi, is there any update on post #517 about getting an update from the terminal about newbar?
So far I've had to cycle with the time check:
Not very convenient. But as a temporary option it's fine.
So far I've had to cycle with the time check:
Not very convenient. But as a temporary option it's fine.
Not planned. Check for new bars on a timer or in a loop.
Not planned. Check for new bars on a timer or in a loop.
If you use according to Vladimir, we will not get the exact volume then, but only the volume of that tick at polling?
And if you then use the new bars in EA to call the Python script, and the script points to more than one symbol, are all new bars for all symbols in the terminal executed at the same time, or should I create a Python script and advisor for each symbol?
Thanks
ps: sorry had to go to english as the translator messed up the wordsUsinghistory_orders_get().
In the documentation, explicitly copy-paste :)(https://www.mql5.com/ru/docs/integration/python_metatrader5/mt5historyordersget_py)
And there's an oddity in the usage:
Result:
Total, data is displayed, but where, what - one can only guess.
Folks, pls - add something like _fields or as_dict() or __dict__ to TradeOrder (and similar).
Really, it's not convenient now.
Usinghistory_orders_get().
In the documentation, explicitly copy-paste :)(https://www.mql5.com/ru/docs/integration/python_metatrader5/mt5historyordersget_py)
Update the help or go to the link
There are no plans. Check new bars on a timer or in a loop.
Can you be more specific about the timer?
Folks, pls - add something like _fields or as_dict() or __dict__ to TradeOrder (and similar).
Really, it's not convenient now.
In 5.0.27 it already is, all structure sequence (analog of named tuple for C API) added method _asdict()