//+------------------------------------------------------------------+
//|
TrendMeLeaveMe.mq4 |
//|
Copyright ?2006, Eng. Waddah Attar |
//|
waddahattar@hotmail.com |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2007,Eng Waddah Attar"
#property link
"waddahattar@hotmail.com"
//----
extern string BuyStop_Trend_Info = "_______________________";
extern string BuyStop_TrendName = "buystop";
extern int
BuyStop_TakeProfit = 50;
extern int
BuyStop_StopLoss = 30;
extern double BuyStop_Lot = 0.01;
extern int
BuyStop_StepUpper = 10;
extern int
BuyStop_StepLower = 50;
extern string SellStop_Trend_Info = "_______________________";
extern string SellStop_TrendName = "sellstop";
extern int
SellStop_TakeProfit = 50;
extern int
SellStop_StopLoss = 30;
extern double SellStop_Lot = 0.01;
extern int
SellStop_StepUpper = 50;
extern int
SellStop_StepLower = 10;
//------
int MagicBuyStop = 1101;
int MagicSellStop = 1102;
int glbOrderType;
int glbOrderTicket;
//+------------------------------------------------------------------+
//|
|
//+------------------------------------------------------------------+
int init()
//+------------------------------------------------------------------+
//|
|
//+------------------------------------------------------------------+
int deinit()
//+------------------------------------------------------------------+
//|
|
//+------------------------------------------------------------------+
int start()
//逆势(通道)限买量
//+------------------------------------------------------------------+
//|
|
//+------------自定义函数OrderFind(int Magic)------------------------------------------------------+
bool OrderFind(int Magic)
//+------------------------------------------------------------------+
//|
|
//+------------------------------------------------------------------+
void SetObject(string name,datetime T1,double P1,datetime T2,double P2,color clr)
//+------------------------------------------------------------------+