EMA Shift Cross
-
Hi All
Trying to build a cross over EA but using the same MA Period for all Buy and Sell and Close Trade
But also trying to use the SHIFT function of one MA
For Example
EMA -9 Crosses above EMA 9 Buy
EMA -9 Crosses below EMA 9 CloseSL *3 ATR
TP -9 EMA cross above/below 9EMAYou get the drift for a Sell order.
This is what I've come up with so far.
Any insights?
Cheers Deadllee
-
@deadllee Initially your logic is correct. What is the problem exactly?
-
If all seams right with the EA but when I run it it doesn't open any trades? like not one over the course for 10000+ Bars
Have you had any luck running it? i think it might have something to do with the (-) Shit value
-
@deadllee Yes, It opens dozens of trades on my MT4. Are you trading non forex instruments, maybe?
-
I'll give it another go. It just didn't seam to open anything on my end.
I was testing it on the 1h Aussie dollar 2017.01.01 - now
Just seamed like it didn't do anything in my MT4
Will try again I'm the morning.
-
Ahh I linked a modified EA the one where the shift was + not - that's the issues i was having when i wanted a (-) shift for MA
Essentially i want to use the same MA Period Eg. 9 but I want the same MA to be 9 bars behind the normal MA
for EG
-9EMA crosses Below 9 EMA close trade.
or
-9 EMA crosses above 9 EMA open trade.Like plotting them on the chart manual it works.
But put them in an EA they dont..Any insights ?
Cheers
Deadllee -
@deadllee AFAIK, no negative numbers are accepted in the shift box, as you guessed. Only positive ones are. An alternative should be found for it. Can you show a screenshot of your manual charts with the indicator's values, please?
-
Chane the 9 EMA on the left operand.. Think the readings are too close
-
In my bit of experience, always build your robots to either buy or sell. Do not do it for both because it is very hard to say the same rules that work one way are going to work the other, just because its opposite. Also, when getting very detailed, it is easy to miss small things, especially when you are using rules that are opposite of each other trying to buy and sell in the same EA.