Questions from Beginners MQL5 MT5 MetaTrader 5 - page 431

 
pr0gre5:

What is the easiest way to build an Expert Advisor that receives a signal from its indicator and places an order?

I tried to do it through include file - it complains of two OnInit during compilation

Please suggest an easier article on the subject.

At a minimum, you have to remove one of the OnInits. The second step is to learn the programming.
 
pr0gre5:

What is the easiest way to build an Expert Advisor that receives a signal from its indicator and places an order?

I tried to do it via include file - it complains about two OnInit when compiling

Please suggest an easier article on the subject.

Create a trading signals module based on the indicator. Then you only need to use MQL5 Wizard to generate an Expert Advisor.
 

The preprocessor replaces the line

#include <file_name> with the contents of the WinUser32.mqh file. Angle brackets indicate that WinUser32.mqh file will be taken from the standard directory (usuallyterminal_directory\MQL5\Include).

here is all the documentation

 
pr0gre5:

What is the easiest way to build an Expert Advisor that receives a signal from its indicator and places an order?

I tried to do it via include file - it complains about two OnInit when compiling

Please suggest an easier article on this subject.

You need to do two things:

1. indicator

2. the espert.

These are two different files.

Request data from the indicator by the expert and use it as a signal.

Depending on the signal perform trade operations.

 

how? a standard array can go out of bounds?

 
Leanid Aladzyeu:

how? the standard array can go out of bounds?

it says press F1)))

This is nonsense. Press "compile" again, maybe it will change the line number...

or at least use iClose(Symbol(),Period(),1).

 
new-rena:

it says press F1)))

This is nonsense. Press "compile" again, maybe it will change the line number...

At least use iClose(Symbol(),Period(),1).

That's it for me in the xapperp tab the error dates after some time
 
Leanid Aladzyeu:
He was the one who gave me the error in the xperps tab after a while.
I got it, did you do what I asked?
 
new-rena:
I got it, did you do what I asked?
I don't remember what it was about?
 
Leanid Aladzyeu:
I don't remember what you were talking about?
I replied to your post "how is that? a standard array can go out of bounds?", look it up.
Reason: