Re: Waddah Attar Indicators for MT4

372
BeatlemaniaSA wrote: Sun Mar 19, 2023 5:30 am I have been going thru the Waddah Attar thread and honestly, there are some real gems in there :-)
Waddah Attar Trend indicator - 2023 update with Averages Filters

Try!
These users thanked the author mrtools for the post (total 12):
Chickenspicy, Jimmy, moey_dw, josi, Skyold, BeatlemaniaSA, vvFish, kvak, sylvester21, Jedidiah, saishala, pipsquirrel

Re: Waddah Attar Indicators for MT4

373
mrtools wrote: Sun Mar 19, 2023 7:38 pm Waddah Attar Trend indicator - 2023 update with Averages Filters

Try!
Mrtoolz... this Waddah Attar Trend indicator is it just a MACD combined with Bollinger Bands in a Histogram forms? Because lookling at the original source code it seems to be just a MACD in Histogram form using a Bollinger Bands!! Or is there more to it?

I guess I would hope more detail about it....... because even the author would not bother to disclose what it's based on!!!

Code: Select all

//+------------------------------------------------------------------+
//|                                           Waddah_Attar_Trend.mq4 |
//|                              Copyright © 2007, Eng. Waddah Attar |
//|                                          waddahattar@hotmail.com |
//+------------------------------------------------------------------+
#property  copyright "Copyright © 2007, Eng. Waddah Attar"
#property  link      "waddahattar@hotmail.com"
//----
#property  indicator_separate_window
#property  indicator_buffers 2
#property  indicator_color1  Green
#property  indicator_color2  Red
//----
double   ind_buffer1[];
double   ind_buffer2[];
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int init()
  {
   SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 2);
   SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 2);
//----   
   SetIndexBuffer(0, ind_buffer1);
   SetIndexBuffer(1, ind_buffer2);
//----   
   IndicatorShortName("Waddah Attar Trend");
   Comment("copyright waddahwttar@hotmail.com");
   return(0);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int deinit()
  {
   Comment("");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int start()
  {
   double Trend,Explo,val;
   int    limit, i, counted_bars = IndicatorCounted();
//----
   if(counted_bars < 0) 
       return(-1);
//----
   if(counted_bars > 0) 
       counted_bars--;
   limit = Bars - counted_bars;
//----
   for(i = limit - 1; i >= 0; i--)
     {
       Trend = (iMACD(NULL, 0, 20, 40, 9, PRICE_CLOSE, MODE_MAIN, i) - 
                iMACD(NULL, 0, 20, 40, 9, PRICE_CLOSE, MODE_MAIN, i + 1)) / Point;
       Explo = (iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_UPPER, i) - 
                iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_LOWER, i)) / Point;
       ind_buffer1[i] = 0;
       ind_buffer2[i] = 0;
       val=Trend*Explo;
       if(val >= 0)
           ind_buffer1[i] = val;
       if(val < 0)
           ind_buffer2[i] = val;
     }
   return(0);
  }
//+------------------------------------------------------------------+

I notice this in the source code to the very bottom

i Trend = (iMACD(NULL, 0, 20, 40, 9, PRICE_CLOSE, MODE_MAIN, i) -
iMACD(NULL, 0, 20, 40, 9, PRICE_CLOSE, MODE_MAIN, i + 1)) / Point;
Explo = (iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_UPPER, i) -
iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_LOWER, i)) / Point;


☝️☝️☝️
These users thanked the author moey_dw for the post:
Jedidiah
Official Forex-station GIF animator at your service 👨‍⚖️
See a GIF with Forex-station.com on it? I probably made it
The best divergence indicator in the world.
Real news exists: Infowars.com 👈


Re: Waddah Attar Indicators for MT4

376
moey_dw wrote: Sun Mar 19, 2023 8:30 pm Mrtoolz... this Waddah Attar Trend indicator is it just a MACD combined with Bollinger Bands in a Histogram forms? Because lookling at the original source code it seems to be just a MACD in Histogram form using a Bollinger Bands!! Or is there more to it?

I guess I would hope more detail about it....... because even the author would not bother to disclose what it's based on!!!

Code: Select all

//+------------------------------------------------------------------+
//|                                           Waddah_Attar_Trend.mq4 |
//|                              Copyright © 2007, Eng. Waddah Attar |
//|                                          waddahattar@hotmail.com |
//+------------------------------------------------------------------+
#property  copyright "Copyright © 2007, Eng. Waddah Attar"
#property  link      "waddahattar@hotmail.com"
//----
#property  indicator_separate_window
#property  indicator_buffers 2
#property  indicator_color1  Green
#property  indicator_color2  Red
//----
double   ind_buffer1[];
double   ind_buffer2[];
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int init()
  {
   SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 2);
   SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 2);
//----   
   SetIndexBuffer(0, ind_buffer1);
   SetIndexBuffer(1, ind_buffer2);
//----   
   IndicatorShortName("Waddah Attar Trend");
   Comment("copyright waddahwttar@hotmail.com");
   return(0);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int deinit()
  {
   Comment("");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int start()
  {
   double Trend,Explo,val;
   int    limit, i, counted_bars = IndicatorCounted();
//----
   if(counted_bars < 0) 
       return(-1);
//----
   if(counted_bars > 0) 
       counted_bars--;
   limit = Bars - counted_bars;
//----
   for(i = limit - 1; i >= 0; i--)
     {
       Trend = (iMACD(NULL, 0, 20, 40, 9, PRICE_CLOSE, MODE_MAIN, i) - 
                iMACD(NULL, 0, 20, 40, 9, PRICE_CLOSE, MODE_MAIN, i + 1)) / Point;
       Explo = (iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_UPPER, i) - 
                iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_LOWER, i)) / Point;
       ind_buffer1[i] = 0;
       ind_buffer2[i] = 0;
       val=Trend*Explo;
       if(val >= 0)
           ind_buffer1[i] = val;
       if(val < 0)
           ind_buffer2[i] = val;
     }
   return(0);
  }
//+------------------------------------------------------------------+

I notice this in the source code to the very bottom

i Trend = (iMACD(NULL, 0, 20, 40, 9, PRICE_CLOSE, MODE_MAIN, i) -
iMACD(NULL, 0, 20, 40, 9, PRICE_CLOSE, MODE_MAIN, i + 1)) / Point;
Explo = (iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_UPPER, i) -
iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_LOWER, i)) / Point;


☝️☝️☝️
Yes it's a macd slope multiplied by the slope of the difference between the upper and lower Bollinger bands.
With this version added the averages,prices,and the extra stuff. The code is very similiar to the WAE just the histogram is different and without the extra lines. It's a very simple idea from
Mr Waddah Attar that seems like it could be profitable.
These users thanked the author mrtools for the post (total 4):
BeatlemaniaSA, sylvester21, moey_dw, Jedidiah

Re: Waddah Attar Indicators for MT4

378
mrtools wrote: Mon Mar 20, 2023 1:32 am Yes it's a macd slope multiplied by the slope of the difference between the upper and lower Bollinger bands.
With this version added the averages,prices,and the extra stuff. The code is very similiar to the WAE just the histogram is different and without the extra lines. It's a very simple idea from
Mr Waddah Attar that seems like it could be profitable.
Thank you so much for the tips & explaination I just really love to know things from your eyes & perspective at times........ and this is a good alternative to waddah attar explosion

You have made this a much useable indicator now 🙌🙌🙌
These users thanked the author moey_dw for the post:
Chickenspicy
Official Forex-station GIF animator at your service 👨‍⚖️
See a GIF with Forex-station.com on it? I probably made it
The best divergence indicator in the world.
Real news exists: Infowars.com 👈

Re: Waddah Attar Indicators for MT4

379
kvak wrote: Tue Feb 21, 2023 5:05 am Here is version with this ability....adjustable fixed minimum
Image
Dear Kvak! Is it possible to add a signal arrow when the green or red line cross the yellow line. I think the indicator will be more effective and really give a sign when the price moving significantly. Would be a good development. Thanks in advance
These users thanked the author AteszBatesz for the post (total 2):
moey_dw, kvak

Moving AveragesRe: Waddah Attar Indicators for MT4

380
AteszBatesz wrote: Fri Mar 31, 2023 9:37 pm Dear Kvak! Is it possible to add a signal arrow when the green or red line cross the yellow line. I think the indicator will be more effective and really give a sign when the price moving significantly. Would be a good development. Thanks in advance
This is good idea man let us see if kvak can help!!
These users thanked the author moey_dw for the post (total 2):
Jedidiah, AteszBatesz
Official Forex-station GIF animator at your service 👨‍⚖️
See a GIF with Forex-station.com on it? I probably made it
The best divergence indicator in the world.
Real news exists: Infowars.com 👈


Who is online

Users browsing this forum: JohnnyRy, ken0324ken, TransparentTrader and 136 guests