Expert Advisor from EX4 only

To add comments, please log in or register
1221328
21
1221328  
How to make an expert advisor / use with the automated trading feature with ex4 file only and without mq4?
Keith Watford
Moderator
20375
Keith Watford  
1221328:
How to make an expert advisor / use with the automated trading feature with ex4 file only and without mq4?

If the indicator uses buffers, you can use an iCustom call in the EA to get the data.

I will move this to the MT4 MQL4 section later.

1221328
21
1221328  
How to configure iCustom? Where is it?
Ahmet Metin Yilmaz
4121
Ahmet Metin Yilmaz  
Do you wanna be an expert advisor with an ex4 file indicator?
Marco vd Heijden
Moderator
12689
Marco vd Heijden  
1221328:
How to configure iCustom? Where is it?

Here.

Print("Buffer 0: ",iCustom(Symbol(),PERIOD_CURRENT,"indicatorname",0,0));
Print("Buffer 1: ",iCustom(Symbol(),PERIOD_CURRENT,"indicatorname",1,0));
Print("Buffer 2: ",iCustom(Symbol(),PERIOD_CURRENT,"indicatorname",2,0));
Print("Buffer 3: ",iCustom(Symbol(),PERIOD_CURRENT,"indicatorname",3,0));
Print("Buffer 4: ",iCustom(Symbol(),PERIOD_CURRENT,"indicatorname",4,0));
Print("Buffer 5: ",iCustom(Symbol(),PERIOD_CURRENT,"indicatorname",5,0));
Print("Buffer 6: ",iCustom(Symbol(),PERIOD_CURRENT,"indicatorname",6,0));
Print("Buffer 7: ",iCustom(Symbol(),PERIOD_CURRENT,"indicatorname",7,0));
Else add it as a resource. 
1221328
21
1221328  
Ahmet Metin Yilmaz:
Do you wanna be an expert advisor with an ex4 file indicator?
Yes. Just add an indicator to the expert advisor or what it is called.
Chathusanka Yamasinghe
2694
Chathusanka Yamasinghe  
you can use software.
Ahmet Metin Yilmaz
4121
Ahmet Metin Yilmaz  
Marco vd Heijden:

Here.

Else add it as a resource. 

If you use his codes, you will see which buffer contains the value of the indicator you are using.

To add comments, please log in or register