Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 332

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
Why count pending orders? And who is BU();?
It's a strange method to "separate" own positions from others, isn't it better to
BU(); is a Breakeven function.
What's wrong with my variant?
сюда пересчёт рыночных позиций и отложек
What would it look like in my case?What would it look like in my case?
The same as it looked, just a couple more curly braces added:
The same as it looked, just a couple more curly brackets will be added:
I corrected, compiled, tested - the problem remains - When a certain condition is reached, the Expert Advisor opens a trade and closes it at Take or Stop Loss. At this point, the Expert Advisor does not open deals anymore, despite the fact that the conditions for opening deals are fulfilled.
Here is the code in full.
About good - that's a pitchfork in the water. If it's fast, it's also a bit of a stretch... And if it's cheap, see point 1.
Then it goes like this:
1. Good is a bit of a stick in the mud. 2.About fast, it's also a two-edged sword... 3. And if it's cheap - see point 1.
Now I see!
Fixed, compiled, tested - the problem remains - When a certain condition occurs, the Expert Advisor opens a trade and closes it at Take or Stop Loss. At this point, the Expert Advisor does not open deals anymore, despite the fact that the conditions for opening deals are fulfilled.
Here is the code in full.
Where does it count?
They're global. And they don't seem to reset until they're checked. And their calculation before the check - where?Fixed, compiled, tested - the problem remains - When a certain condition occurs, the Expert Advisor opens a trade and closes it at Take or Stop Loss. At this point, the Expert Advisor does not open deals anymore, despite the fact that the conditions for opening deals are fulfilled.
Here is the code in full.
Fixed, compiled, tested - the problem remains - When a certain condition occurs, the Expert Advisor opens a trade and closes it at Take or Stop Loss. At this point, the Expert Advisor does not open deals anymore, despite the fact that the conditions for opening deals are fulfilled.
Here is the code in full.
BU redo it, you can't delete market positions, and because of a hanging stop there won't be any more positions )))
Let the gurus comment on whether the BU() function needs break (commented out) or not, and let alexey1979621 think, whether this function is called there?
Also, if CountTrades(); function is used like this, it's equal to OrdersTotal(), simpler and faster.
Let the gurus comment whether a break is needed here or not, and let alexey1979621 think, is this function called there?
Also, if we use CountTrades(); so, it's equal to OrdersTotal(), easier and faster.