CoinflipwithMM





//+------------------------------------------------------------------+
//|                                          CoinflipwithMM          |
//|                                                                  |
//+------------------------------------------------------------------+

//+------------------------------------------------------------------+
//|              External Variables                                  |
//+------------------------------------------------------------------+
   
extern int StopLoss             =   40;
extern int TakeProfit           =   43;
extern int    Slippage          =   3;
extern double Lots              =   0.1;





double MinLots, MaxLots, UseLots,BuyLots, SellLots;

int    NumBuys, NumSells;

int start()
{
  NumBuys  = 0;
  NumSells = 0;
  
  BuyLots  = 0.00;
  SellLots = 0.00;


  {
    OrderSelect(SELECT_BY_POS,MODE_TRADES);

    if (OrderSymbol() == Symbol()) 
    
    {
      if (OrderType() == OP_BUY)  NumBuys++;    
      if (OrderType() == OP_SELL) NumSells++;     
    }   
  }

   UseLots = Lots;
     
   if(MathMod(TimeCurrent()/60, 2)==0 && NumSells <1 && NumBuys <1) 
    {
      OrderSend(Symbol(),OP_BUY,UseLots,Ask,Slippage,Ask-StopLoss*Point,Ask+TakeProfit*Point,"CoinflipwithMM ",0,0,White);
      Print ("Errors opening BUY order = ",GetLastError());
      return(0);
    }
 
 
if ( NumBuys <1 && NumSells <1)
 
    {
      OrderSend(Symbol(),OP_SELL,UseLots,Bid,Slippage,Bid+StopLoss*Point,Bid-TakeProfit*Point,"CoinflipwithMM ",0,0,Red);
      Print ("Errors opening SELL order = ",GetLastError());
      return(0);
    }
   
 
//Screen comments         
  Comment("Balance: ", AccountBalance(), ", Equity: ", AccountEquity(), ", Lots: ",UseLots,
        
        "\nNum Buys: ", NumBuys, ", Num Sells: ", NumSells, ", BuyLots:", BuyLots, ", SellLots:", SellLots);
        

  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 : EURUSD on H1

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

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 : 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-12-01 to 2010-01-01 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 CoinflipwithMM


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

Pair: Period: