Questions from Beginners MQL5 MT5 MetaTrader 5 - page 825
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
Have you read the documentation? Instead of %G, the decimal point is used. That is, AccountInfoDouble(ACCOUNT_BALANCE) Accordingly, if this is removed, it will not be printed.
Good afternoon!
Help me solve this problem, or advise where it has already been solved: I open positions under different conditions - buy on conditions 1, 2, 3, sell on condition 4,5. How to write in code, so that BAY, open on condition 1 (buy1) is closed on condition 6, buy2 and buy3 on condition 7, sell4 on condition 8 and sell5 on condition 9? For some reason all baiys close at 7 and all sells at 9. I am struggling with this for the third day. I am in trouble for the third day. Thank you.
Good afternoon!
Help me solve this problem, or advise where it has already been solved: I open a position under different conditions - buy on conditions 1, 2, 3, sell on condition 4,5. How to write in code, so that BAY, open on condition 1 (buy1) is closed on condition 6, buy2 and buy3 on condition 7, sell4 on condition 8 and sell5 on condition 9? For some reason, all baiys close at 7 and all sells at 9. I am struggling with this for the third day. Thank you.
For magic number 1 set magic number +1, for magic number 2 +2 and so on. That way you can then see if this position has been opened by condition 1 or by condition 2...
Set magic number +1 for condition 1, magic number +2 for condition 2 and so on. That way you can then see if this position has been opened for condition 1 or for condition 2...
THANK YOU! So far everything is working out.
Miracles. Just had your answer, now it's gone.
Please repeat the second option.
Oh my! And who's going to answer me there if the last post was February 5? And #8284 is also kind of on MT4.