//+------------------------------------------------------------------+
//| Grid1.1.mq4 |
//| Copy* 顺势加码 2006 |
//| |
//+------------------------------------------------------------------+
#property copy* "Copy* 顺势加码 2006"
#property link "bonnyshi@gmail.com"
#include
extern double GridStep=50; //格幅
extern double GridLength=100; //格长
double PivotPr, Multiple, i, Lots=0.1, STOPLEVEL, TP, ST;
string Text="Grid";
int Magic, j, BuyCount, SellCount, DTS, Ticket;
//+------------------------------------------------------------------+
int init() //初始化部分将定义参数赋值: 每次在start里面都可能被赋值一次,消耗时间
if (DTS==4) DTS=2;
else DTS=0;
Magic =105;
GridStep =GridStep*Point;
GridLength =GridLength*Point;
STOPLEVEL =MarketInfo(Symbol(),MODE_STOPLEVEL)*Po