fama2check





//+------------------------------------------------------------------+
//|                                                    famacheck.mq4 |
//|                                      |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, robmrj"
#property link      "http:"

//---- input parameters
extern int Range1 = 10;
extern int MaxBars = 1000;
extern int FastMA1 = 3;
extern int SlowMA1 = 30;
extern int filter1 = 20;
extern int n1 = 2;
extern int h1 = 10;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
double b1, b2, b3, b4, b5, b6, b7, b8;
// There are only 2 buffers in fama indicator
b1 = iCustom(Symbol(), 0, "fama2", Range1, MaxBars, FastMA1, SlowMA1, filter1, n1, h1, 0, 0);
b2 = iCustom(Symbol(), 0, "fama2", Range1, MaxBars, FastMA1, SlowMA1, filter1, n1, h1, 1, 0);
b3 = iCustom(Symbol(), 0, "fama2", Range1, MaxBars, FastMA1, SlowMA1, filter1, n1, h1, 2, 0);
b4 = iCustom(Symbol(), 0, "fama2", Range1, MaxBars, FastMA1, SlowMA1, filter1, n1, h1, 3, 0);
b5 = iCustom(Symbol(), 0, "fama2", Range1, MaxBars, FastMA1, SlowMA1, filter1, n1, h1, 4, 0);
b6 = iCustom(Symbol(), 0, "fama2", Range1, MaxBars, FastMA1, SlowMA1, filter1, n1, h1, 5, 0);
b7 = iCustom(Symbol(), 0, "fama2", Range1, MaxBars, FastMA1, SlowMA1, filter1, n1, h1, 6, 0);
b8 = iCustom(Symbol(), 0, "fama2", Range1, MaxBars, FastMA1, SlowMA1, filter1, n1, h1, 7, 0);

string scomment= "-----------------------------";
scomment = scomment + "\n" + "b1: " + b1;
scomment = scomment + "\n" + "b2: " + b2;
scomment = scomment + "\n" + "b3: " + b3;
scomment = scomment + "\n" + "b4: " + b4;
scomment = scomment + "\n" + "b5: " + b5;
scomment = scomment + "\n" + "b6: " + b6;
scomment = scomment + "\n" + "b7: " + b7;
scomment = scomment + "\n" + "b8: " + b8;

Comment (scomment);


//----
   return(0);
  }
//+------------------------------------------------------------------+



Sample





Analysis



Market Information Used:



Indicator Curves created:


Indicators Used:




Custom Indicators Used:
fama2

Order Management characteristics:

Other Features: