167888
发表于 2020-1-10 03:43:13
{:1_186:}{:1_186:}
我就是我666
发表于 2020-1-10 08:25:49
很靠谱的帖子,想试试
77588625
发表于 2020-1-10 10:41:44
5612121232332
TaolishenEA
发表于 2020-1-11 01:05:42
真的假的呀,真是EA源码?
TaolishenEA
发表于 2020-1-11 01:10:11
绝对害人的EA程序,什么易经
//+------------------------------------------------------------------+
//| 开单机.mq4 |
//| www.shuidongyijing.cn |
//+------------------------------------------------------------------+
#property copyright "谁懂易经 www.shuidongyijing.cn Q614771879"
#property link "http://www.shuidongyijing.cn"
//---- 输入
extern int min_gapsize = 1;
extern double lotsize_gap = 0.1;
//----
datetime order_time = 0;
//+------------------------------------------------------------------+
//| 基本 |
//+------------------------------------------------------------------+
int init()
{
//----
return(0);
}
//+------------------------------------------------------------------+
//| 初始化 |
//+------------------------------------------------------------------+
int deinit()
{
//----
return(0);
}
//+------------------------------------------------------------------+
//| 开始功能 |
//+------------------------------------------------------------------+
int start()
{
/*
使之有效率的方式:
1. 利用交易数量的;
2. 抓住K线缺口.
波浪要注意事项:
1. 点差;
2. 执行时间要几秒内执行.
*/
// Defining the variables to decide.
Print("order time", order_time);
double current_openprice = iOpen(Symbol(), PERIOD_M15, 0);
double previous_highprice = iHigh(Symbol(), PERIOD_M15, 1);
double previous_lowprice = iLow(Symbol(), PERIOD_M15, 1);
double point_gap = MarketInfo(Symbol(), MODE_POINT);
int spread_gap = MarketInfo(Symbol(), MODE_SPREAD);
datetime current_time = iTime(Symbol(), PERIOD_M15, 0);
// catching the gap on sell upper gap
if(current_openprice > previous_highprice + (min_gapsize + spread_gap)*point_gap &&
current_time != order_time)
{
int ticket = OrderSend(Symbol(), OP_SELL, lotsize_gap, Bid, 0, 0,
previous_highprice + spread_gap*point_gap,
"", 4, 0, Red);
order_time = iTime(Symbol(), PERIOD_M15, 0);
Print("I am inside (sell) :-)", order_time);
//----
if(ticket < 0)
{
Print("OrderSend failed with error #", GetLastError());
}
}
//抓住缺口
if(current_openprice < previous_lowprice - (min_gapsize + spread_gap)*point_gap &&
current_time != order_time)
{
ticket = OrderSend(Symbol(), OP_BUY, lotsize_gap, Ask, 0, 0,
previous_lowprice - spread_gap*point_gap,
"", 5, 0, Green);
order_time = iTime(Symbol(), PERIOD_M15, 0);
Print("I am inside (buy) :-)", order_time);
if(ticket < 0)
{
Print("OrderSend failed with error #", GetLastError());
}
}
//----
return(0);
}
//+------------------------------------------------------------------+
thtryretdsa
发表于 2020-1-26 14:22:33
1111111111111111111111111111
sanso5
发表于 2020-1-28 16:08:48
不错,112345
colin.hong
发表于 2020-1-29 13:53:47
本帖隐藏内容请回复
V519989
发表于 2020-1-29 21:51:12
写得非常中肯,有110的跟单上去吗?
zzxxcc
发表于 2020-1-30 00:40:51
{:1_185:}{:1_184:}