DoubleSpread





//+------------------------------------------------------------------+
//|                                                 Double Spred.mq4 |
//|                                    Copyright © 2006,  GallantFX  |
//|                                         http://www.gallantfx.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006,  GallantFX "
#property link      "http://www.gallantfx.com"


//---- input parameters
extern double    Lots_all=2.0;
extern double    slippage_all=2.0;
extern double    stoploss_all=0;
extern double    takeprofit_all=6.0;

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
//----
  int ticket_buy;
  ticket_buy=OrderSend(Symbol(),OP_BUY,Lots_all,Ask,slippage_all,0,Ask+takeprofit_all*Point,"BUY & Take Profit",10000,0,Blue);
  if(ticket_buy<0)
    {
     Print("OrderSend failed with error #",GetLastError());
     return(0);
    }

  int ticket_sell;
  ticket_sell=OrderSend(Symbol(),OP_SELL,Lots_all,Bid,slippage_all,0,Bid-takeprofit_all*Point,"SELL & Take Profit",10001,0,Red);
  if(ticket_sell<0)
    {
     Print("OrderSend failed with error #",GetLastError());
     return(0);
    }



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



Sample





Analysis



Market Information Used:



Indicator Curves created:


Indicators Used:



Custom Indicators Used:

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

Other Features:

BackTest : USDJPY on H1

From 2009-11-01 to 2009-11-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 : EURUSD on H1

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

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:0.05 Total Net Profit:-10692.00

BackTest : GBPUSD on H1

From 2010-01-01 to 2010-02-27 Profit Factor:0.06 Total Net Profit:-8984.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

Request Backtest for DoubleSpread


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

Pair: Period: