Research Indicator





//+------------------------------------------------------------------+
//|                                           Research Indicator.mq4 |
//|                                       Copyright © 2006, Akuma99. |
//|                                    http://www.beginnertrader.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Akuma99."
#property link      "http://www.beginnertrader.com"

#property indicator_chart_window

//+------------------------------------------------------------------+
int init()
  {
   
   Print ("-- Research underway --");
   return(0);
  }

int deinit()
  {

   return(0);
  }

int start() {
   
   int counted_bars=IndicatorCounted();
   int shift,limit;
   int upDay,downDay,profit,loss;
   
   limit = Bars;
   

   for (shift=limit;shift>=0;shift--)   {
      
      if (Close[shift+1] < Open[shift+1]) {
      
         if (Close[shift] < Open[shift]) {
            profit++;
         } else {
            loss++;
         }
      } else if (Close[shift+1] > Open[shift+1]) {
         if (Close[shift] < Open[shift]) {
            profit++;
         } else {
            loss++;
         }
      }
      
   }
   
   Print (" -- START Akuma99 Research Report --");
   Print ("Total up days: ",profit," | Total down days: ",loss);
   Print (" -- END Akuma99 Research Report --");
   
   return(0);
   
}





Sample





Analysis



Market Information Used:

Series array that contains close prices for each bar
Series array that contains open prices of each bar


Indicator Curves created:


Indicators Used:



Custom Indicators Used:

Order Management characteristics:

Other Features: