One candle rule, No Nonsense Forex
-
Hello. I'm new to this but I want to create this simple EA:
It goes like this: If my confirmation indicator 1 (C1) gives a signal at ID candle = 1, I want it to proceed to confirmation indicator 2 (C2). If this meets the criteria on the same candle, then I would go into trade.
Alternatively, if C1 doesn't give a signal at candle = 1, I want it to look one day back (so, ID = 2), and then proceed confirming with C2.
In my head it all makes sense, but somehow the OR condition doesn't work. Can someone check, please? The IF part works well, but the OR part doesn't.
-
@philostam The logic is correct. Are you sure those custom indicators are properly identified by fxDReema?
-
@l-andorrà Yes, that's the frustrating part.
If I connect conditions with AND (instead of OR), it works perfectly. But then I have two trades: I need one OR another.
Just an annoying bug and I really cannot find the flaw...
-
Would there be another way to implement the same principle?
-
@philostam said in One candle rule, No Nonsense Forex:
Would there be another way to implement the same principle?
do you have a link to those indicators? I've never seen them before, but I would like to play with them.
-
@jsauter86 You can easily find them online, but that's not the point.
-
@philostam You can get that by adding a 'No trade' block immediately below the 'Once per bar' block. That way the first condition to be met will open a trade and there will not be a second one until it is closed.
-
@l-andorrà Thanks for the idea, that does seem to work!
But I fear it will create other problems: let me play with it for a bit.
-
Yes, now the issue is that I want to create a loop of interchanging signals. So whenever C1 flips the other way, I want to close the existing trade and immediately open a new one (since it's a new signal). How to achieve that?
-
https://fxdreema.com/shared/knKQoDpW
That's what I have now. Everything works well except that when I get a signal to close a trade (because C1 crossed the other way), it doesn't immediately open a new trade. I guess 'No trade' block creates this issue?
-
@philostam No, the problem is then the 'Once per bar' block. Because it will wait until a new bar to check if conditions are met. If you want an immediate new trade, just remove it, but I guess now problems will arise then. Not sure.
-
You need to set it to cross, and not equal or above @philostam