Download MetaTrader 5

Indicators: Slope Direction Line

To add comments, please log in or register
Automated-Trading
Admin
104207
Automated-Trading  

Slope Direction Line:

The Slope Direction Line trend indicator, used by the Hammering EA from the Market section.

Author: IURII TOKMAN

ROGERIO BORGES
25
ROGERIO BORGES  

Hi

Nice job.

I'm new in MQL programming.

How can I use this indicator in an EA?


The code below is correct?

extern int period=32;
extern int method=3; // MODE_SMA
extern int price=0; // PRICE_CLOSE

double Up = iCustom( NULL, 0, "Slope Direction Line", period, method, price, 0, 0 ); // BUFFER 0 - Blue

double Dn = iCustom( NULL, 0, "Slope Direction Line", period, method, price, 1, 0 ); // BUFFER 1 - Red


if(Up<Dn) return(1);      // Slope Direction Blue

 if(Up>Dn) return(2);      // Slope Direction Red


Thak you.

Rogério

49ers80
207
49ers80  

Can anyone please add an alert to this indicator? I would really appreciate it! :)

Thanks!! 

Iurii Tokman
48251
Iurii Tokman  
49ers80:

Can anyone please add an alert to this indicator? I would really appreciate it! :)

Thanks!! 

Hi

ok! 

49ers80
207
49ers80  
Thanks Iurii! 
Iurii Tokman
48251
Iurii Tokman  
49ers80:
Thanks Iurii! 

you are welcome !

I need time.....

49ers80
207
49ers80  
Iurii Tokman:

you are welcome !

I need time.....


Still looking for an alert on this indicator, would really help me out. thanks
To add comments, please log in or register