IF all trades profitable
-
Hello,
Having trouble figuring out how to add volume to a trade only if all of my trades within my loop are profitable. In other words, if ANY of them are not in profit, I dont want it to pass. I attached what I have below but its currently not working.
Any help appreciated,
Thanks
Danny

-
I think you need create two For each Trade loops (but not in one connection, firstly one loop and than second loop)
in first loop check if all trades are profitable if is one lossable - give info into variable (like lossableTrade=true) and break this loop
next can be or must not be controlled second loop (depends on variable lossableTrade) for adding to volume -
Thanks for your help as always Miro, I enjoy your work! I'll give it a go, and let you know how it works out.
Cheers