汇锦泰 智能交易 EA外汇 论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

Pulpit rock

查看: 70|回复: 0

叠箱体源码 - MT4、MT5外汇ea、外汇指标_外汇交易系统下载 - 外汇ea之家

[复制链接]

6万

主题

6万

帖子

19万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
190747
发表于 2022-1-9 17:01:02 | 显示全部楼层 |阅读模式
//+------------------------------------------------------------------+
//|                           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;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Pulpit rock

QQ|Archiver|手机版|小黑屋|汇锦泰 智能交易 EA外汇 论坛

GMT+8, 2025-9-14 01:05 , Processed in 0.043718 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表