Stop Loss blocking
-
Hello friends.
My setup is to be able to stop several trades if there are a number of trades (2 pieces) that have a Stop Loss that is greater than a specified value (400 pips).
I have an EA which changes S.L. according to a system when several trades are made.
In this setup, the "Buy now" blocks have ID: gr1, gr2, gr3, gr4 and gr5. (so they don't get a new number when you run "Normalize IDs")
The block "Check trades count" writes: "This block calculates the number of trades matching the filter settings"
As a filter I use the block: "check stop-loss" (> 400 pips)"Check trades count" reacts to number of trades (>= 2), whether "check stop-loss" is connected or not, and it works.
I have also tried with: "check stop-loss / Function value".
It does not work.Can anyone see what is wrong and how to fix the problem.
Kim Wiboe.
shared/Ao3ikdfEc
-
How can I share my EA. It doesn't seem to work with the link that was created.
-
Prt.Scrn.

-
-
@kiwi789 said in Stop Loss blocking:
I have also tried with: "check stop-loss / Function value".
It does not work.
Can anyone see what is wrong and how to fix the problem.
Kim Wiboe.
shared/Ao3ikdfEc -
Not sure I fully understand. Are you trying to control come trades created by another bot to open then some more with this one?
-
I try to explain it simply.
Everything takes place in the same EA.
If all the ongoing trades have Stop Loss < 400 pips, then it must make more trades.
If there are 2 (or more) traders who have S.L. > 400 pips, then it must NOT make any more trades. -
@kiwi789 Ok. Just let me confirm I get it with some examples.
- If there is one only trade no matter where the SL is, there will be more trades.
- If there are 2 open trades and BOTH SL distances are beyond 400 pips, no more trades are open. However, if one of them has a SL shorter that 400 pips, more trades are open.
Is that correct?
-
Hi I'andorra.
Sorry for not replying sooner, but I've been away from it for a bit.
I think it is correctly understood, but I have added some changes (YOU CANNOT WRITE IN COLOR, SO MY CHANGES ARE WRITTEN IN CAPITAL LETTERS) that I think make it more accurate.
(My main language is Danish, not English, so perhaps these are redundant corrections)- If there is one only trade no matter where the SL is, there will be more trades.
- If there are 2 OR MORE open trades and 2 SL distances are beyond 400 pips, MUST IT NOT OPEN MORE TRADES. However, if ONLY one of them has a SL shorter that 400 pips, MUST more trades open.
Still I don't understand why it doesn't block further trades. Maybe you can see what's wrong with the setup.
-
Your current configuration is not counting the trades correctly. You should use a specific variable counting how many trades are having a SL right now with those distances. That would make it far easier.
-
I would think that the "check stop-loss" block should count how many trades meet the requirements (S.L. > 400) It doesn't seem to work.
Would you like to explain in a little more detail what you think I should do.
Maybe with a block example.