I’m getting used to Metatrader, and i want to write my own EA. But this is not easy.
[ol][li]Do you know if it is possible to build an EA like modular conception? I mean: Take the code from an already existing MACD EA + code from a Stochastic EA + code etc, and put it together. Why learning the whole script language, when i just need the code from some already written indicators, and put them together. Do you have any knowledge about this?[*]
[/li]Is it possible in Metatrader to show different time periods like 50 ticks or 10 seconds?
Question 1 - YES, in fact using modular coding helps improve reliability and extendability just like any other programming language. But when reusing other’s code, you must understand in order to be able to integrate it properly.
Question 2 - I’m not sure what you mean, but I think you are talking about arbitrarily changing the time frame of the bar on the chart. There are scripts available to do this as well as scripts to create range bars for n pips. Don’t try to code these yourself as it is quite difficult.
I could be wrong, but I believe that probably everyone who writes an EA starts with an already-written code sample to build from. It’s like just about anything else in life (including trading) – you start with a foundation that is working and then build from it.
Here is a good place to find MQL4 code to build from.
I assume you mean complex program, not complicated program. I can’t imagine how a complex program could be written unless it is broken down into a series of very simple small pieces and then assembled to work as planned.