[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 193
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
If you do this, all the oddities should disappear.
To remove the "extra" condition, you can do this:
How so... Based on Igor Kim made something... Only one of your features... the rest are the same...
something like this, I guess:
And we call it:
to count Buy and count Sell on the current symbol, with Magic
To remove the "extra" condition, you can do the following
Igor, you're right. It's more readable that way...
Artyom, of course I come from Kim, removing unnecessary checks and adding the tasks I need. Not to reinvent a bicycle! Thank you for the correction, I will be bolder to remove unnecessary! And I do not need to check the magician and the symbol, as sometimes I intervene "manually" and not before the multicurrency for me yet!
You must check if (OrderMagicNumber()==0) ... This is a "manual" check.
If we want to interfere with other EAs working with another symbol, we can remove the check for OrderSymbol().
I've left the minimum necessary checks to work on a single character, with its own positions/orders. If you want to also touch what "handles", then you need to add a check for magic==0.
Then you should do a check if (OrderMagicNumber()==0) ... is a check for "manual".
If we want to interfere with other EAs working with another symbol, we can remove the check on OrderSymbol().
I've left the minimum required checks for working on one symbol, with its own positions/orders. If you also want to touch that "by hand", then you need to add a check for magik==0.
Thank you very much for your help.Everything is OK. But......
1. On some of the five minutes, more than 1 order opens.
2. Some orders are closed by stop orders whose price is different from the one prescribed in the code.
Well, it's easy to do the same check in the closed orders) And about the closing price - sorry, it is set correctly, and then it's up to the server at what price it can be closed.
And what about the closing price - sorry, it is set correctly, and then it is up to the server at what price it will really close.
Many thanks again for all your help. But.....
I opened only one order during the period of a year, i.e. the first order I came across.
And there are many more candlesticks with parameters to open an order in this period.
I will not be able to close it. Thank you.
Many thanks again for all your help. But.....
I opened only one order during the period of a year, i.e. the first order I saw.
And there are many more candlesticks with parameters to open an order in this period.
Thank you.
Correct my typo - the second time
I need
Correct my typo - the second time
It's supposed to.