Problem with Check Last closed type block
-
Hi fxdreema,
Can you check my current project and see why this block is not executing properly. It's very simple:
- If No Trade/order exists (from a certain group.. lets say 1)
- Check last closed type (from group 1)
- Execute a buy/sell order depending what type it was
Please. Any help would be really appreciated!! fyi I also tried to use check last winner type block as well.. but with no luck.
-
I will skip your project, it has indicators that I don't have and you also use custom input parameters. Also "not executing properly" means nothing to me, it's the same as "I have a problem" without actually explaining the problem.
The block is working otherwise, here is an example: https://fxdreema.com/shared/jxpoSVVze
and the result it this:
http://img.prntscr.com/img?url=http://i.imgur.com/KgHE7CF.pngSo I don't know, maybe something with Group numbers. If possible, don't use multiple groups. Everything that makes things more complex is not a good idea

-
I found a problem in the block (when using group numbers > 0) and I fixed it
But there are some other things as well...Here is an example that I think it works the way you want it to work, but without your indicators: https://fxdreema.com/shared/ObCwcbazb
Note that I used two "Check..." blocks. It seems that I make this block so the yellow output is "otherwise" to the orange output and works every time when the orange output is not active, including the times when the orange output is inactive because of the "Pass once per trade" parameter. Maybe I should make is work like the EA that I'm showing now, like 2 blocks in 1, I don't know.
In block 3 I used two group numbers, you will see this value - 0,1
It's important that block 2 has lower ID number than block 3 here, because I want block 3 to run after block 2.