Less than "n" trades are running block
-
Does this mean all trades globally (for all charts) or only for the chart the expert advisor is running on?
-
Depends on the settings inside, there are some filters. You MUST know what is Magic number: http://fxdreema.com/documentation/getti ... c%20number
-
assuming this one is the only expert adviser running but there are several charts open for different symbols. If I set "less than "n" trades running" to 2 on the ea applied to EURUSD chart but I already have an order open on a EURGBP chart, will that EURGBP order be included in the running trades count? I guess I will try to experiment with it... Thanks

-
Again, there are options inside this block to filter trades, so it depends. Trades can be filtered by Group number (this is basically the magic number), market (aka symbol) and type (buy, sell). The "Market mode" option is set to "Any market" by default, and that means the market does not matter, but still, the Group # (magic number) matters.
I will recommend to use "Check trades count" block, because it looks more intuitive.
-
great, thank you
-
Please can some one help me! Happy Trading
-
Help you with what?
-
I used the "check trades count" and set it to "if lower than or equal to 2" orders. In addition, I assigned group # to buy now order and entered it into check trades count block. However, it opened 3 orders. Any suggestions?
-
If trades are 0, 1 or 2, then continue and open another one. After that trades will be 1, 2 or 3 respectively.
-
If trades are 0, 1 or 2, then continue and open another one.
if number of open trades are 0, 1 or 2 (less than or equal to two)?then continue and open another one.
until trade count (number of open trades) reaches 2?After that trades will be 1, 2 or 3 respectively.
won't the ea stop opening trades once the number of open trades reaches 2? If not, how do I set it to allow only 2 open trades at one time (sell trades with group #5)?Thanks
-
The block is named "Check trades count" and if trades count is 2 (so that <= 2 is true) then the block passes and goes to Buy now to create trade #3.
Try with < instead of <=. If trades are less than 2 (they are 0 or 1), then go to create another one (#1 or #2).
-
that's how I thought the logic worked but it seemed to open 3 orders even though no orders were open. Anyway, I'll try again and let you know if it doesn't work. Thanks
