Create EA in modular conception

Hello :smiley:

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?

[/ol]

Thank you.

Hello Sonnig,

Why not try this online EA builder. No mql4 knowledge required:

sufx.core.t3-ism.net/ExpertAdvisorBuilder/

Regards,
JonDgls

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.

Hello CodeMeister

To 1: Do you know any more such modular builders?
To 2: Do you have any links to such scripts?

Thank you.

i think you need skills in programming before attempting to write an EA.

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.

well, if they have pre written code, then obviously it’s much easier, but i wasn’t aware of that.

  1. Modular programming is a technique or style of programming. Its something you develop as a habit.
  2. Renko Block Charts @ Forex Factory - this link as some very good info on Renko and Range Bars. The first posting contains the scripts and indicators.
    Improved multi-timeframe/offset/chart period converter, P4L PeriodCon.mq4 @ Forex Factory - this script will convert bars from one TF to another.

what about complicate code??

Some people make any code complicated.

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.

I dont mind helping you program your strategy. I have over 3000 EA’s in my collection, Im sure something must be there that can help you.