Crosses above & below
-
Hello everyone,
I made a simple test with cross above and below the pivot point but it doesn't seem to work. For example for the sells, the EA does enter an order but only (it seems) when the previous candle opened above the PP and closed below (while I was expecting the opposite). I thought reversing and changing the cross below in cross above would do the trick but it doesn't change a thing. The EA is still taking the same trades. Same for buys.
Here is the project https://fxdreema.com/shared/o9BLC34U
Could anyone indicate where my logic fails here?Thank you!
-
Blocks 1608 and 1623 are looking at the current bar (candle ID 0) whereas blocks 1638 and 1639 al looking at the previous bar (candle ID 1). You should choose which one should all of them look at. I guess it is the current bar. Is that correct?
-
@l-andorrà Indeed I want the 50ema to be over or under the 100ema for the current candle but I want the cross between the candle and the PP to happen for the previous candle. Do you think that could be part of the issue?
Thank you very much for your answer!
-
Yes, that is for sure part of the problem. You need to specify Candle ID 1 on both operands on each PP condition block. Try it and let me know.
-
You can also try Trace block, to print the same things (Candle Close and Pivot lines) while the EA is running, so you can visually see the values and possibly detect the problem... also any future problem that is similar to this one.
-
@l-andorrà That was it! Thank you very much (sorry for the late answer)
-
@fxdreema Sir you just solved a lot of my issues! Big thanks!