btrack77 Posted March 5, 2012 Report Share Posted March 5, 2012 Hi there, I have favour to ask from my fellow friends in II. How to code a simple indicator involving 2 ema to an expert advisor? The layout would be as follow if MA1>MA2 then buy the high and buy the low if MA1<MA2 then sell the low and sell the high The buying or selling will be done by the ea... any helpers...thanks in advance... Quote Link to comment Share on other sites More sharing options...
Jay007 Posted March 5, 2012 Report Share Posted March 5, 2012 I dont know much about mql coding, but if your system involves just MA's then you can use the following code http://forum.mql4.com/30966 Hi there, I have favour to ask from my fellow friends in II. How to code a simple indicator involving 2 ema to an expert advisor? The layout would be as follow if MA1>MA2 then buy the high and buy the low if MA1<MA2 then sell the low and sell the high The buying or selling will be done by the ea... any helpers...thanks in advance... Quote Link to comment Share on other sites More sharing options...
FxNewbie Posted March 6, 2012 Report Share Posted March 6, 2012 btrack77 - do a google search for EA's based on MA - there are many already out there for free - maybe even here. Frankly, I'd stay clear of an EA based on that criteria alone Quote Link to comment Share on other sites More sharing options...
btrack77 Posted March 7, 2012 Author Report Share Posted March 7, 2012 Thanks guys...I've already solved the indicator involving the [email protected] you are right..its just for a confimation whether the price is on a uptrend or downtrend only...although I might have a problem about how to distinguish price that is trending or ranging...any good indicator for range market?...thanks Quote Link to comment Share on other sites More sharing options...
Jay007 Posted March 7, 2012 Report Share Posted March 7, 2012 MACD can help you to detect range, it will depend on the time frame, i will post some examples soon, wait..thx))) Thanks guys...I've already solved the indicator involving the [email protected] you are right..its just for a confimation whether the price is on a uptrend or downtrend only...although I might have a problem about how to distinguish price that is trending or ranging...any good indicator for range market?...thanks Quote Link to comment Share on other sites More sharing options...
Jay007 Posted March 7, 2012 Report Share Posted March 7, 2012 http://imageshack.us/photo/my-images/822/rangevf.jpg/Something like this, u can google this, i also saw this suggestion somewhere on the net. http://imageshack.us/f/822/rangevf.jpg/ http://imageshack.us/photo/my-images/822/rangevf.jpg/ Quote Link to comment Share on other sites More sharing options...
btrack77 Posted March 8, 2012 Author Report Share Posted March 8, 2012 Something like this, u can google this, i also saw this suggestion somewhere on the net. http://imageshack.us/f/822/rangevf.jpg/ http://imageshack.us/photo/my-images/822/rangevf.jpg/ Yes Something like that...Jay my man where or how to get that type of indicator? Is it really just MACD? Quote Link to comment Share on other sites More sharing options...
Jay007 Posted March 10, 2012 Report Share Posted March 10, 2012 It is really just MACD, the same thing that comes with MT4, you just have to put the settings when you attach it to the chart! Yes Something like that...Jay my man where or how to get that type of indicator? Is it really just MACD? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.