@john-doe
this is the big bug.even i built EAS with AI sites but those do not trade at all.and compilation has not any errors.i think the sites all of them have big bugs intentionally and they do not want you to make some money maker machines freely or even when you paid them.finally you must be a programmer or at least know one . free and paid wont work anyway.i got tired.!!!!!!
If a trade has been placed, you will need to prevent one from happening again, like, for example, a once per bar block. There are many options to choose from, your reason for preventing a new trade is your setup specific.
Alternatively, you could also store the SL value into a variable and have an if condition when SL != 0, then execute orders. This way, SL will always be something other than 0 in order to execute orders.
Interesting. I was many blocks into a project but luckily had just saved a copy of the source so that I could revert. It took me a while to isolate the problem; what an annoyance!