HOW CAN ONE SOLVE THIS TYPE OF ERROR WHICH KEEPS POPING ON MT4 STRATEGY TESTER
-
New trade error: Amount of open and pending orders has reached the limit (148)
OrderSend error 148 -
@od Nothing to solve, is the broker that imposes the maximum limit of open orders simultaneously. You have to put a limit not to be exceeded
-
@ambrogio Is it the same as volume limit exceeded...and if so
, could the results of an expert advisor which self terminated or took very less time in completing a backtest for like a one year period in 30 seconds be relied upon? Since most trades are closed prematurely even though in profit. -
@ambrogio How does one put a limit to the no of orders
-
@od please, can you share the project in order to take a look on it?
-
@ambrogio Haha I still haven't known how to share projects or screenshots. But I've managed to limit the number of trades by using the CHECK TRADE COUNT block just b4 the buy/sell option it has solved the issue for now . In the process another issue could arise in a live account whereby the EA might be waiting for funds to carry on trading . I was thinking of using a % of my equity instead of balance as risk , from your point of view would it be wise?
-
-
@od Blocks 4 and 5 need to be separated from all the other and create its own block tree.
-
@od Your project opened countless trade because you did not put for example "no trade" block. This is the right way:
https://fxdreema.com/shared/C6lzl9YC
and always put candle ID1 in "more setting", otherwise you will have several problems working with indicators

-
@ambrogio The NO TRADE BLOCK restricts to only one SELL trade at a time .For the trade to be effective it must allow more SELL orders. The check trades count block can restrict only a certain number of times but allows other allowing other SELL trades to open until the **EXIT **
-
@od ok, you can remove the "no trade" and replace it with a block "once per bar", this way you will have a sell order whenever the condition is met
-
@ambrogio One of the ONCE PER BAR block properties is (MAX .time to pass___ )
Does this block set the condition to pass a certain number of times per bar in order for a trade to be opened instead of opening new trades whenever the condition is met everytime for a certain number of time maybe 10 open trades with the same parent trade waiting for the same exit ? -
@od I seem to remember yes, you could do a visual backtest and see