|
//+------------------------------------------------------------------+
//| 20191008_19895_EA.mq4 |
//| Copyright 2019, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright Copyright 2019, MetaQuotes Software Corp.
#property link https://www.mql5.com
#property version 1.00
#property strict
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
//2箱体联动
enum XZ
{
X=0,//单箱体止盈
Y=1,//两箱体止盈
};
extern double Lots=0.01;//下单手数
extern double Grid=100;//网格点数
extern int N=5;//箱体层数
extern double addN1=1.5;//首单突破单倍数
extern double addN2=2;//以后突破单倍数
extern XZ TPMethod=0;//止盈选择
extern double Earn=4;//止盈金额
extern bool UseMoveSL=true;//开启移动止盈
extern double Earn_N=25;//止盈点数
extern double BackDot=10;//回调点数
extern bool UseTwo=true;//启动第二箱体
extern double MaxLot=8;//变更突破倍率最大手数
extern double addN3=1;//最终固定突破倍率
extern double Percent=50;//清仓亏损百分比
string comA= 箱体A
string comB= 箱体B
int magA=17653,magB=86524;;
double MoveEarn_total=0,MoveEarn_a=0,MoveEarn_b=0; |
|