Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1310
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
the problem is not solved, opened order on one chart, on the second does not want, counts OrdersTotal apparently again on all (if that the magician has changed, even compiled a separate EA)
either rename or delete
Put the function from my post.
It finally worked, but I honestly don't understand what the difference is, can you explain?
you gave me code where you didn't change OrdersTotal() to OrderOfSymbol
I didn't notice it right away
you gave me code where you didn't change OrdersTotal() to OrderOfSymbol
I didn't notice it right away
i can see what the problem is, thanks. Another silly question, if there is such a thing in mql, that the price of bought Ask` by an order is permanently compared with the current Ask? So for example I want to write a function, if after a certain period of time there is no desired move, then after a period of time I would switch this function to break-even (I know about trawl), I'm interested in current Ask vs purchased Ask, I can not implement it either...
in yellow the price move you want
blue is your desired comparison with Ask
P.S. But why do you need an Ask when your purchases are closed at Bid ?
in yellow the price move you want
blue is your desired comparison with Ask
P.S. But why do you need an Ask when your purchases are closed at Bid?
Oh, great! All Right, I meant the current price (Bid) in general. I'll try to write it. Thanks for the help! Have a great day!
add
if(OrderType()==OP_BUY)
Greetings. Can you give me a hint?
OrdersHistoryTotal() returns the number of closed and deleted orders in the current account history loaded in the client terminal,
those are right here .
Question 1: is it possible to get the date "from" or the selected period?
Question 2: can I get more history than what is loaded in the terminal, or can I load it programmatically?
Greetings. Can you give me a hint?
OrdersHistoryTotal() returns the number of closed and deleted orders in the current account history loaded in the client terminal,
you can see it here .
Question 1: is it possible to get the date "from" or the selected period?
Question 2: can I get more history than what is loaded in the terminal or can I load it programmatically?
Question 1: I don't understand the question(
Question 2: no, you can't