@eng_diego
The function is straightforward and does not seem to be the problem.
Maybe you can add some codes to avoid the error.
@eng_diego
The function is straightforward and does not seem to be the problem.
Maybe you can add some codes to avoid the error.
Of course backtesting can alway get a good result.
Why the backtest have all 300 long trades without any short trades ?
Simply because the period is in bull trend.
Check for 3 consecutive trades: that includes those in past days.
Everyday you started a new checking, and the number wouldn't reset to 0.
Moreover, there were no blocks with the numbers (26,27) as stated in the on/off block
@MMBInvest
I am afraid it is just a fake video
@alhammeed1990
Do you mean the fxdreema display in the browser ?
Are you sure your custom indicator setup is right ?
@Labutters
The solution may be simplier.
In your original design, just move the blocks of deleting lines to the false ouput of no trade blocks.
That means, no trade -> create, or delete otherwise
@Labutters
Is it possible the timing problem?
Maybe you have deleted the line but it is then created again?
Try lowering the block numbers of the buy / sell branch
If it still doesn't work you can try adding variables and comments to debug the exact problem
The Trailing Stop block indeed has the option of trailing profit. Don't know if it is what you want
If there is no trade, how come there is an open order ?
Maby the (on Trade) condition can be used on the On Trade tag instead
@hamidreza11
Variable naming in indicators has nothing to do with that in fxdreema
@nasserminaei
Block 44. Your selection means if there is no closed trade after EA startup, no new trade
Does your logic mean skip trades after some seconds of closing after EA starting up ? If that is the case, the algo would be simply 2 steps:
This would probably save you a lot of your work. I misread your last reply to me that your problem had been solved. When I read again, your algo seemed to be more complicated than what you thought
@aminhassani7
Instead of If trade, try using For each Trade
@nasserminaei
Block 45. Try >= instead of ==
@l-andorrà
Exact reason not known. I had made a bot in MT5 with a simple custom indicator (composed of 2 MAs only) with clear buy / sell signals. But the situation was similar to yours.
The optimizaion/backtesting was very very slow. I thought it was impossible but had no way to fix it.
Maybe a shorter period can help.
@BLXCK-WIDOW-FX
Start from scratch with your logic of entry and exit.
There is no direct transformation from Python to fxdreema. Just re-implementing with your trading algo
It is like comparing a toy and a tool