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
Make it like this.
It's this line that's confusing. I don't think it's needed here at all. Or am I wrong?
It's this line that's confusing. I don't think it's needed here at all. Or am I wrong?
It's to cut off the magic symbol
When searching it first searches for orders simply by the symbol without a magik, if there are no such orders the function stops working........., if it finds orders with such a symbol, then it searches among them to find a magik, and closes those that match the magik, if the trading flow is free.
It's this line that's confusing. I don't think it's needed here at all. Or am I wrong?
Needed to cut off that particular character's majic
When searching it first searches for orders simply by the symbol without a majic, if there are no such, stops the function, if there are orders with such a symbol, goes through them, and finds those that match the majic, and closes them if the trade flow is free.
OrderSymbol() == Symbol()
is duplicated.
Also this line
If there is no such a majik, the function stops working and searches them if there is such a majik.
If we are talking about deleting all orders, then this line is unnecessary, as for normalisation, what makes you think that the built-in scripts are such that they should be taken as an example?
well, marx, after all.
Needed to cut off the magik of this particular symbol
when searching for an order it first searches for an order without a magic number; if there are no such orders the function will stop working......... if it finds an order with such a number then it goes through all of them to find a magic number and closes all of them which match a magic number if the trade flow is free.
I see, I am just talking about closing all orders, that's why I did not understand it at first.
I took the liberty of rearranging your example like this:
but to close all the orders
Well, Marx, after all.
If you mean this
then there is an extra variable here for code transparency.
Or maybe you're talking about something else?
In this case it is this.
The "common standard" for C/C++ is :
The difference in the number of operations. If it does not affect much in this case, the difference in styles for the tester, for instance, will have a noticeable effect on the optimization time. For the real world, it affects the speed, which is sometimes critical.
Especially braking is such a design (I haven't seen it on your site, but for some reason most people prefer it ? ) :
Here a function is called on every pass of the loop. It is the most "expensive" operation in terms of computing costs.
Good luck.
I see you've fixed the codes in that sense.
The result is this script
Question - Why doesn't it always close all orders? For example, I open three Sell orders in a row, then try to close them with the script, it may close one or two or all of them. What is the reason?Man, that's a hell of a way to pick the wrong one out of all the options. You're not supposed to be coding, kid.
It's not closing because of the re-quotes.