create1





//+---------------------------------------------------------------------+
//|                              create1.mq4                            |
//|                                                                     |
//+---------------------------------------------------------------------+
//
//
//
extern double    lots=0.1;
//extern int       StopLoss=30 ;
//extern int       TrailingStop=15;
//extern int       Slippage=2;

extern int BB = 100;
extern int MM = 1;
extern int II = 0;
extern double KK = 1.0;
extern int NN = 1102;

double  maH0,maH1,maL0,maL1;
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
maH0=iMA(NULL,0,1,0,MODE_LWMA,PRICE_HIGH,0); //ìóâèíã ïî high
maH1=iMA(NULL,0,1,0,MODE_LWMA,PRICE_HIGH,1); //ìóâèíã ïî high
maL0=iMA(NULL,0,1,0,MODE_LWMA,PRICE_LOW,0);  //ìóâèíã ïî low
maL1=iMA(NULL,0,1,0,MODE_LWMA,PRICE_LOW,1);  //ìóâèíã ïî low

   int      B= BB;         // 
   int      M= MM;         // 
   int      I= II;         // 
   double   K= KK;         // 
   int      N= NN;         // 
   
   double cgh = iCustom(NULL,0,"Center of Gravity",B,M,I,K,N,3,0);
   double cgl = iCustom(NULL,0,"Center of Gravity",B,M,I,K,N,4,0);
   


if (cgl<maL0)  //åñëè ìóâèíã (low) ïåðåñåê ñàìóþ íèæíþþ ëèíèþ èíäèêàòîðà ñíèçó ââåðõ
   {
   OrderSend(NULL,OP_BUY,lots,Ask,2,Ask-10*Point,Ask+20*Point,"create1",123,0,Lime);
   }
/*
if (cgh>maH0)
   {
   OrderSend(NULL,OP_SELL,lots,Bid,2,Bid+10*Point,Bid-20*Point,"create1",123,0,Red);
   }  
*/   
   
    
    
 
//----
   return(0);
  }
//+------------------------------------------------------------------+

























Sample





Analysis



Market Information Used:



Indicator Curves created:


Indicators Used:

Moving average indicator



Custom Indicators Used:
Center of Gravity

Order Management characteristics:
It automatically opens orders when conditions are reached

Other Features:

BackTest : EURUSD on H1

From 2009-08-01 to 2009-10-01 Profit Factor:0.00 Total Net Profit:0.00

BackTest : EURUSD on H1

From 2009-12-01 to 2010-01-17 Profit Factor:0.00 Total Net Profit:0.00

BackTest : EURUSD on H1

From 2010-04-01 to 2010-04-30 Profit Factor:0.00 Total Net Profit:0.00

BackTest : EURUSD on H1

From 2010-05-01 to 2010-05-31 Profit Factor:0.00 Total Net Profit:0.00

BackTest : EURUSD on H1

From 2010-06-01 to 2010-06-30 Profit Factor:0.00 Total Net Profit:0.00

BackTest : USDCHF on H1

From 2009-12-01 to 2010-01-01 Profit Factor:0.00 Total Net Profit:0.00

BackTest : USDJPY on H1

From 2009-11-01 to 2009-11-30 Profit Factor:0.00 Total Net Profit:0.00

Request Backtest for create1


From : (yyyy/mm/dd) To: (yyyy/mm/dd)

Pair: Period: