Navigation:Home > Content >

#JJN-Big_CCI_vs_Levels_V1.mq4

Time: 2010-06-23 | Download file:#JJN-Big_CCI_vs_Levels_V1.mq4

//+------------------------------------------------------------------+
//|                                                 JJN-BigTrend.mq4 |
//|                                      Copyright © 2012, JJ Newark |
//|                                            http:/jjnewark.atw.hu |
//|                                             [email protected] |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2012, JJ Newark"
#property link      "http:/jjnewark.atw.hu"


#property indicator_chart_window


//+------------------------------------------------------------------------------------------------------------------+
// YOU CAN CHANGE THESE PARAMETERS ACCORDING TO YOUR TASTE:
//+------------------------------------------------------------------------------------------------------------------+
int     tfnumber      = 6; // Number of the timeframes
int     tframe[]      = {5,15,30,60,240,1440}; // Timeframes in minutes
double  IndVal[][6]; // Be the second array-index equal with tfnumber
int     NumberOfPairs = 8; // Number of the pairs
string  Pairs[]       = {"EURUSD","GBPUSD","AUDUSD","NZDUSD","USDJPY","GBPJPY","EURJPY","USDCHF"}; // Requested pairs
//+------------------------------------------------------------------------------------------------------------------+
//+------------------------------------------------------------------------------------------------------------------+




extern int        Period_CCI    = 24;
extern int   Level_Up =100;
//extern int Ma_Mode =3;
//extern int        Ma_Price                    = PRICE_CLOSE;
extern color      UpColor                     = Lime;
extern color      DownColor                   = Red;
extern color      NeutralUpColor                   = White;
extern color      NeutralDownColor = Blue ;
extern color      FontColor                   = Blue;
extern int        PosX                        = 800;
extern int        PosY                        = 20;

double val_0,val_1;


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- 
   for(int w=0;w Level_Up ) // UPTREND
        {
        IndVal[z][x]=1;
        }
         if (val_0 <-Level_Up) // DOWNTREND
        {
        IndVal[z][x]=-1;
        }
         if ((val_0 > 0)&& (val_0 < Level_Up)) //neutralup
        {
         IndVal[z][x]=2; // RANGING
         }
         if ((val_0 < 0) && (val_0 > -Level_Up))//neutraldown
         {
         IndVal[z][x]=-2; 
         }
      }
      //}
     
   
   for(int q=0;q        

Recommend