"

Wavy Dash Indicator

by Dr.Hamdi Boukamcha
Name:
Wavy Dash Indicator
Author: forexavatar (2010.05.16 16:24)
Downloaded: 7714
Download:
Wavy Dash Indicator   WavyDash.mq4 (1.7 Kb) View

Author:

http://pipswanted.com

Description:

Green lines mean – buy, red signalize sell. Indicator is based on Gann method.

Image:

Wavy Dash Indicator

Here is the code:

for(int i=Bars-Back;i>=0;i--)
{
      if(Close[i]>iMA(Symbol(),0,Back,0,MODE_SMA,PRICE_HIGH,i))
      {
         one=1;
      }   
      else
      {
         if(Close[i]<iMA(Symbol(),0,Back,0,MODE_SMA,PRICE_LOW,i))
            one=-1;
         else
            one=0;
      }
      if(one!=0)
      {
         two=one;
      }   
      if(two==-1)
      {
         double a = iMA(Symbol(),0,Back,0,MODE_EMA,PRICE_HIGH,i+1) - iClose(Symbol(), 0 ,i+2);
         red[i] = (iClose(Symbol(), 0 ,i) - a); 
      }
      else
      {
         double b = iClose(Symbol(), 0 ,i+2) - iMA(Symbol(),0,Back,0,MODE_EMA,PRICE_LOW,i+1);
         green[i] = (iClose(Symbol(), 0 ,i) + b);
      }
}

For more ideas and informations visit:

Share this article

Leave a comment