TST





//+------------------------------------------------------------------+
//|                                                          TST.mq4 |
//|                                                     Yuriy Tokman |
//|                                            yuriytokman@gmail.com |
//+------------------------------------------------------------------+
#property copyright "Yuriy Tokman"
#property link      "yuriytokman@gmail.com"

extern int    StopLoss         = 500;           // Ðàçìåð ñòîïà â ïóíêòàõ
extern int    TakeProfit       = 100;           // Ðàçìåð òåéêà â ïóíêòàõ
extern double Lots             = 0.1;           // Ðàçìåð ëîòà

extern int timeframe           = 0;             // Âûáîð ÒÔ
extern int pips                = 500;           // Óñòàíîâëåííûé óðîâåíü îòêàòà
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
   double bid  = MarketInfo(Symbol(),MODE_BID);
   double open = iOpen(Symbol(),timeframe,0);
   double high = iHigh(Symbol(),timeframe,0);
   double low  = iLow(Symbol(),timeframe,0);
//----
   if(open-bid>0 && high-bid>pips*Point)
    {
     if(NevBar())
     OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-StopLoss*Point,Ask+TakeProfit*Point,"TST",0,0,Green);
    }
   if(bid-open>0 && bid-low>pips*Point)
    {
     if(NevBar())      
     OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Ask+StopLoss*Point,Bid-TakeProfit*Point,"TST",0,0,Red);
    }
//----
   return(0);
  }
//+----------------------------------------------------------------------------+
// Ôóíêöèÿ êîíòðîëÿ íîâîãî áàðà                                                |
//-----------------------------------------------------------------------------+
 bool NevBar()
  {
   static int PrevTime=0;
   if (PrevTime==Time[0]) return(false);
   PrevTime=Time[0];
   return(true);
  }



Sample





Analysis



Market Information Used:

Series array that contains open prices of each bar
Series array that contains the highest prices of each bar
Series array that contains the lowest prices of each bar
Series array that contains open time of each bar


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.67 Total Net Profit:-39.22

BackTest : EURUSD on H1

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

BackTest : USDCAD on H1

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

BackTest : EURUSD on H1

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

BackTest : GBPUSD on H1

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

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 TST


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

Pair: Period: