Home Technical Indicator Post

Mastering the Wavy Dash Indicator for MT4: Your Trading Companion

Attachments
9674.zip (678 bytes, Download 0 times)

Author:

http://pipswanted.com

The Wavy Dash Indicator is a powerful tool for traders using MetaTrader 4. It employs the Gann method, providing clear signals for your trading strategy. When the indicator displays green lines, it's time to buy, while red lines signal a sell. It’s straightforward and effective!


Indicator 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 insights and information, check out:

Related Posts

Comments (0)