Download MetaTrader 5
To add comments, please log in or register
Publish your article and thousands of people all over the world will read it!
MetaQuotes Software Corp.
Moderator
177313
MetaQuotes Software Corp. 2006.08.08 14:24 

ADXcrosses:

ADXcrosses Indicator.

Author: Collector

MQL4 Comments
16309
MQL4 Comments 2008.10.14 23:32  
Nice work...keep it up. Great coder too.
MQL4 Comments
16309
MQL4 Comments 2009.11.08 20:50  

This is the best indicator I have come across.Well done.

Is it possible to set the alarm when the bullish arrow forms under the bull candle and when the bearish arrow forms above the bear candle?

If possible,please let me know.My E-mail is solanki643@gmail.com

Thanks again.

MQL4 Comments
16309
MQL4 Comments 2010.01.18 04:03  

I like the indicator, but do the arrows disappear if the price moves in the opposite direction?

stewge409
3
stewge409 2010.03.13 00:01  

Great indicater! Would it be possible to get an EA for this where the buy & sell are executed on every arrow?
Thanks in advance....

MQL4 Comments
16309
MQL4 Comments 2010.11.01 09:51  
MQL4 Comments
16309
MQL4 Comments 2011.01.03 16:54  
Is it works for all pair and timeframe.?
MQL4 Comments
16309
MQL4 Comments 2011.03.28 03:40  

Hi Collector

I'm trying to integrate this strategy to an EA, but i get a lot of signals (Buy or Sell).

this a simple implementation in a simple EA, because i think i didn't understood your system, I' v changed the shift values to 1 for the 'previous' and 2 'actual'

//+------------------------------------------------------------------+
//|                                               ADX crosses EA.mq4 |
//|                                                    Khalifa rmili |
//|                                                                  |
//+------------------------------------------------------------------+
double b4plusdi, b4minusdi, nowplusdi, nowminusdi;
double   price = 0;
double t_tp = 0;
double t_sl = 0;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
         b4plusdi = iADX(NULL, 240, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
         b4minusdi = iADX(NULL, 240, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
        
        
        nowplusdi = iADX(NULL, 240, 14, PRICE_CLOSE, MODE_PLUSDI, 1);
        nowminusdi = iADX(NULL, 240, 14, PRICE_CLOSE, MODE_MINUSDI, 1); 
         
        //----
        if(b4plusdi > b4minusdi && nowplusdi < nowminusdi)
        { //BUY
            price = NormalizeDouble(Ask,Digits);
            t_tp = price+(15*Point);         
            t_sl = price-(40*Point);
            OrderSend(Symbol(),OP_BUY,0.1,price,3,t_sl,t_tp);
        }
        //----
        if(b4plusdi < b4minusdi && nowplusdi > nowminusdi)
        {
            price = NormalizeDouble(Bid,Digits);        
            t_tp = price-(15*Point);         
            t_sl = price+(40*Point);
            OrderSend(Symbol(),OP_BUY,0.1,price,3,t_sl,t_tp);
         }
//----
   return(0);
  }
//+------------------------------------------------------------------+

But this is the result:

02:29:35 ADX crosses EA EURUSD,M5: loaded successfully
02:29:35 ADX crosses EA started for testing
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #1 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #2 buy 0.10 EURUSD at 1.3939 sl: 1.3899 tp: 1.3954 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #3 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #4 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #5 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #6 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #7 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #8 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #9 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #10 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #11 buy 0.10 EURUSD at 1.3942 sl: 1.3902 tp: 1.3957 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #12 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #13 buy 0.10 EURUSD at 1.3942 sl: 1.3902 tp: 1.3957 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #14 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok

makzer
3
makzer 2011.09.14 11:18  

hii..... i loved this indicator !!!!!

could you please code it to make an excellent EA ?

Any effort would be much appreciated !

Thanks again for the indicator :)
Point Zero
857
Point Zero 2012.02.17 16:47  
razor_cell:

Hi Collector

I'm trying to integrate this strategy to an EA, but i get a lot of signals (Buy or Sell).

this a simple implementation in a simple EA, because i think i didn't understood your system, I' v changed the shift values to 1 for the 'previous' and 2 'actual'

//+------------------------------------------------------------------+
//|                                               ADX crosses EA.mq4 |
//|                                                    Khalifa rmili |
//|                                                                  |
//+------------------------------------------------------------------+
double b4plusdi, b4minusdi, nowplusdi, nowminusdi;
double   price = 0;
double t_tp = 0;
double t_sl = 0;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
         b4plusdi = iADX(NULL, 240, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
         b4minusdi = iADX(NULL, 240, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
        
        
        nowplusdi = iADX(NULL, 240, 14, PRICE_CLOSE, MODE_PLUSDI, 1);
        nowminusdi = iADX(NULL, 240, 14, PRICE_CLOSE, MODE_MINUSDI, 1); 
         
        //----
        if(b4plusdi > b4minusdi && nowplusdi < nowminusdi)
        { //BUY
            price = NormalizeDouble(Ask,Digits);
            t_tp = price+(15*Point);         
            t_sl = price-(40*Point);
            OrderSend(Symbol(),OP_BUY,0.1,price,3,t_sl,t_tp);
        }
        //----
        if(b4plusdi < b4minusdi && nowplusdi > nowminusdi)
        {
            price = NormalizeDouble(Bid,Digits);        
            t_tp = price-(15*Point);         
            t_sl = price+(40*Point);
            OrderSend(Symbol(),OP_BUY,0.1,price,3,t_sl,t_tp);
         }
//----
   return(0);
  }
//+------------------------------------------------------------------+

But this is the result:

02:29:35 ADX crosses EA EURUSD,M5: loaded successfully
02:29:35 ADX crosses EA started for testing
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #1 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #2 buy 0.10 EURUSD at 1.3939 sl: 1.3899 tp: 1.3954 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #3 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #4 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #5 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #6 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #7 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #8 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #9 buy 0.10 EURUSD at 1.3940 sl: 1.3900 tp: 1.3955 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #10 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #11 buy 0.10 EURUSD at 1.3942 sl: 1.3902 tp: 1.3957 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #12 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #13 buy 0.10 EURUSD at 1.3942 sl: 1.3902 tp: 1.3957 ok
02:29:52 2010.11.02 07:20 ADX crosses EA EURUSD,M5: open #14 buy 0.10 EURUSD at 1.3941 sl: 1.3901 tp: 1.3956 ok


The only thing ADXCrosses does is evaluating the two components of ADX: +DI and -DI.

If +DI > -DI is a bull trend.

If -DI > +DI is a bear trend.

The indicator simply places an arrow where the two of them have shifted. You should filter those signals.

08023105152
12
08023105152 2013.07.02 13:48  

razor_cell

how far with the EA is it working now,can you help me with it

my email is udochionline@yahoo.com


thanks

/
To add comments, please log in or register