No Close Trades Nearby
-
Hello Pros!!
Can you advise which block to use if I don't want to enter a buy trade if a previous buy trade closed just recently like 30 mins ago.
Appreciate your advise as always.
-
@marvinm You can do this:

-
HI @l-andorrà , thanks. Is it going to be a separate block like this one?
https://fxdreema.com/shared/F5DEtVYIb
Appreciate it.
-
@marvinm No, no. You should connect both blocks 1 and 2 on top of my structure. That way they will act as the age condition you need.
-
Thanks @l-andorrà .
Really appreciate your help
-
@l-andorrà Hope all is good. Once I incorporate it in the code, it will not execute any trade.
https://fxdreema.com/shared/b9Gb35Lid
Can you advise where i went wrong?
Thank you.
Cheers
-
@marvinm Ma20 will never be above ma20:

-
@jstap sorry i thought i changed that. Still not making any trades.
-
@marvinm Try putting both pink in a separate tree, that changes a flag true/false, check in buy/sell tree before placing trade and setting back to false.
-
@jstap sorry I'm lost. I am so dumb in that.
My apologies as this is the best i can do.
-
@jstap is it easier to make the strategy, that maximum trade with 1 hour should be only 2 trades?
-
@marvinm Is same, strip pink out amdmake 2 treed using a flag. Best ting to do is set up a test project, test change test change, this way you will see what needs to be done.