MQL4 - automated forex trading   /  

Forum

Guide me in creating an EA based on an Indicator

Back to topics list To post a new topic, please log in or register

avatar
33
checkmail 2010.08.11 11:58 

Hello friends this is checkmail and am a bit less experienced in the mql4 language, so want help in form of an EA.

Am having some awesome indicators that works well for me till now, so now want to create an EA based on it.

Though there are many complex indicators, I want to try an simple indicator to create an EA.

The indicator draws an curve line according to the market movements in green and red color.

Green color indicates an upmove and Red color indicates an downmove.

I want to build an EA that could execute buy-sell and close based on the change of color on the curve.

Means buy if the curve is Green and close when it turns Red and vice-versa.

The idea seems to be simple to me, but as am less experience in EA coding and its language require some help.

If anybody interested here in Guiding me in building such EA based on the above mentioned Indicator.

Please come forward,

Attached is the screenshot of the chart and its indicator curve movements.

Meta COT Project - New Horizons for CFTC Report Analysis in MetaTrader 4

Meta COT Project - New Horizons for CFTC Report Analysis in MetaTrader 4

The article is about the use of CFTC report data (Open Interest) in MetaTrader. The article describes the proposed META COT project in details, shows how to load and process the necessary information. The Expert Advisor included into the project will help us analyze the effectiveness of the concept presented in the article. Finally, we'll draw some conclusions and offer useful suggestions.


avatar
109
LBranjord 2010.08.12 18:21 

Are you talking about some kind of linear regression or "slope" indicator? Many EA's based on this exist. I don't know how to use the color value but I do know how to see if it is moving up or down based on using the shift. If it was lower on the last bar (1) than it is on the current bar (0), then you know it's moving up. Vice versa for down. It's going to fire off at almost all the same times as the color changes. You'll likely need a few slope lines or another filter involved to be successful at this.

Slope does seem like a holy grail when you look at the indicator but as you code it, you'll find its flaws. Not that profitability with it is impossible.

Ignore my assumptions if this is something entirely different than slope directional line...

Back to topics list  

To add comments, please log in or register