Navigation:Home > Content >

TS.mq4

Time: 2011-01-18 | Download file:TS.mq4

//+------------------------------------------------------------------+
//|                                                     Scalping.mq4 |
//|                      Copyright © 2005, MetaQuotes Software Corp. |
//|                                        http://www.scalping.nm.ru |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, MetaQuotes Software Corp."
#property link      "http://www.scalping.nm.ru"

//---- input parameters
extern int       TS=25;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//---- 
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//---- 
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
   int cnt;
//---- 
if (TS<5)
   {
   Print("Маленький трейлинг");
   return(0);
   } 
for(cnt=0;cntTS*Point)
            {
               if (OrderStopLoss()TS*Point)
            {
               if (OrderStopLoss()        

Recommend