How to avoid sudden open position of ea?
-
Hello all,
How to avoid the ea will be open suddenly once it's attached to a chart? Any block to filter it? Because my ea was always open the position suddenly once it's attached the chart, as shown on below blocks filter
1 I tried to put the button block to filter it. But I think it's fail.
2 and are these my blocks correct to filter the sudden open position?Thank you all and best regards

-
@zedeai2 Firstly, you can remove that 'AND' block. it's doing nothing there but adding more useless code lines. My question is, when is supposed to open a trade your EA OTHR than when conditions are met? Are you maybe saying that those conditions are ALWAYS met every time you run teh EA on the chart no matter what?
-
@l-andorrà Hello, yes those conditions are ALWAYS met every time I run the EA on the chart no matter what...
And Is this because I put those blocks are on tab ON THICK? Should I remove it to tab ON TRADE?
And what's difference both tab ON THICK and ON TRADE?
Thank you very much for your explanation

-
@zedeai2 I cannot give you a more accurate answer without seeing the whole project. I find it very weird because I see several 'No trade' blocks in your screenshot that should stop opening more trades. If that is happening means that they are not properly positioned in the project.
All blocks on the 'on tick' tab will be executed EVERY TIME a new tick arrives to your platform. On the other hand, all blocks on the 'on trade' tab will be executed ONLY when something happens to a trade (it is open, closed or modified, basically) and NOT every single time a tick is in.
-
@l-andorrà Hello,
1 I put the block "no trade" is to avoid opening order than 1x
2 I don't want the ea will do new order once it"s attached to chart. Can we do filter with button in tab on tick and connect it to the blocks on trade?Here is the block https://fxdreema.com/shared/xS4QlIS1d
-
@zedeai2 How can blocks 506 and 513 be alway true every time you run the EA on the chart? The logic of the project says that no trade will be open until a crossing happens? No new trades should open until any of those conditions is true.
-
@l-andorrà That's why I am getting confuse

-
@zedeai2 Ok. I recommend you plit up the project into two different ones. In the first one just check if everything below block 1767 is working correctly. If so that half of the EA is correct. Then do the same for all blocks below 1750. You will need to create a amnual open trade to it, though.
That should ease the finding of the issue.
-
@l-andorrà Hello, Thank You very much for your reply. I will try it.
Regards