mladen wrote: Wed Feb 15, 2017 7:20 pm
As simple as it gets simple moving averages cross expert advisor : simple ma cross ea.mq4 __________________It opens an order on a cross of two averages. If an order of opposite direction exists, it is first closes that order. If it fails to close the opposite order it will attempt the same thing (if the signal still exists) on the next tick (new order opening is prevented if the opposite direction order close fails). Some extra built in (like current profit for opened order display - just for the sake of simpler usage and providing a bit more information - that will probably be extended in the future versions of any of the experts posted here).It is an easy to use frame that can be used for similar tasks and, as all can see, the code is as simple as it gets. There is no need for anything more complicated for this kind of tests
hello mladen,
thanks very much for sharing the ea. could u please kindly do some additional changes whenever u get a time?
when the crossing happens and a trade opened, let the ea close the same trade once the same candle closes. what I mean is when buy opened on 15 mins candle and once the same candle closes after 15 mins then trade to be closed too regardless of the outcome.
also, can u please add the option to execute trades whenever two MAs touch each other? what I mean is the ea doesnt have to wait till candle close so it will execute trades in mid candle formation as well. in some cases MAs just touch each other and move away. even in this situation the ea must open the trade.
what am I aiming here is, there is single candle trade strategy based on MAs only and have been trading for a while so I think it should work on EA too.
it is 6 & 14 SMA cross strategy. it is better to stay away in choppy market.
thanks very much again!