Moving Average EA buying instead of selling

 

The moving average EA is buying when its suppose to be selling, isnt the code suppose to diferentiate between buy and sell, how do i correct it?

 
edwinodus:

The moving average EA is buying when its suppose to be selling, isnt the code suppose to diferentiate between buy and sell, how do i correct it?

I think you should review the code for the entry condition.

I think that something like,


if (FastMA > SlowMA)

go buy


if (FastMA < SlowMA)

go sell


is enough to describe the entry in the simple way.

You may wrote wrong comparison signs !