ControlPoints





//+------------------------------------------------------------------+
//|                                                ControlPoints.mq4 |
//|                                                                  |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Joke by primajaya"
#property link      "Control Points is a Joke"

extern int TP = 100;
extern int SL = 50; 

#define magic 8888 // very lucky right?
#define risk 10 // 10% enough

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
double op = iOpen(Symbol(),1440,0);
double lot = NormalizeDouble(AccountEquity()*risk/100000,1);

if(OrdersTotal()<1)
{
   if(Ask<op) OrderSend(Symbol(),OP_BUY,lot,Ask,2,Ask-SL*Point,Ask+TP*Point,"Control Points",magic,0,Red);
   if(Bid>op) OrderSend(Symbol(),OP_SELL,lot,Bid,2,Bid+SL*Point,Bid-TP*Point,"Control Points",magic,0,Blue); 
}

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



Sample





Analysis



Market Information Used:

Series array that contains open prices of each bar


Indicator Curves created:


Indicators Used:



Custom Indicators Used:

Order Management characteristics:
Checks for the total of open orders
It automatically opens orders when conditions are reached

Other Features:


BackTest : EURUSD on H1

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

BackTest : USDJPY on H1

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

BackTest : USDCHF on H1

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

BackTest : USDCAD on H1

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

BackTest : EURUSD on H1

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

BackTest : GBPUSD on H1

From 2010-01-01 to 2010-02-27 Profit Factor:0.00 Total Net Profit:0.00

BackTest : USDCAD on H1

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

BackTest : EURUSD on H1

From 2010-03-01 to 2010-03-27 Profit Factor:0.87 Total Net Profit:-6205.42

BackTest : GBPUSD on H1

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

BackTest : EURUSD on H1

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

BackTest : EURUSD on H1

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

BackTest : EURUSD on H1

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

Request Backtest for ControlPoints


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

Pair: Period: