徐雯 发表于 2011-11-24 01:39:47

有关ECN平台不能开单时直接设止损止盈的问题--引用牛版的EA

牛版的EA :http://bbs.520fx.com/viewthread.php?tid=165&highlight=chimoku    此EA在ECN平台不能运行,是因为此类平台不能开单进直接设止损止盈,我改了下,能开单,第一单可以高止损止盈,第二单就不行了,请高手帮助看下。下划线是我改动为0;红色是我加的(就是选择定单,加止损止盈,)哪里出错了???谢谢

//+------------------------------------------------------------------+
//|                           Copyright 2005,bobammax            |
//|                                                                  |
//+------------------------------------------------------------------+

#property copyright \"Copyright 2005, bobammax aka foreverold\"
#property link      \"\"




#define MAGIC 85718

extern double lStopLoss = 370;
extern double sStopLoss = 350;
extern double lTakeProfit = 800;
extern double sTakeProfit = 750;
extern double lTrailingStop = 200;
extern double sTrailingStop = 200;
extern color clOpenBuy = Blue;
extern color clCloseBuy = Aqua;
extern color clOpenSell = Red;
extern color clCloseSell = Violet;
extern color clModiBuy = Blue;
extern color clModiSell = Red;
extern string Name_Expert = \"Ichimoku\";
extern int Slippage = 4;
extern bool UseSound = True;
extern string NameFileSound = \"alert.wav\";
extern double Lots = 1.00;


void deinit() {
   Comment(\"\");
}
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int start(){
   if(Bars

yiyang 发表于 2012-11-22 00:12:46

应该加分

樱桃小猪猪 发表于 2012-11-22 00:12:46

太棒了!

果果 发表于 2012-11-22 00:12:46

回帖是种美德.

加Q2219910020 发表于 2012-11-22 00:12:46

不看白不看,看也不白看

闲暇时光在这里 发表于 2012-11-22 00:12:46

你好!我想编写一平仓条件,可一直不成功。当下单成功后赢利超过7点之后赢利又小于6点平仓。就这个平仓条件能辛苦帮我写一下吗?这样能保住赢利不会变亏损。先行谢谢了!!!~~~

卢苏 发表于 2012-11-22 00:12:46

EA见识的多了,没见过能有一个稳定盈利的

fuxiaowei00 发表于 2014-11-7 15:55:19

感谢分享

tesfhhia 发表于 2014-11-26 18:59:06

想学EA,拜师,谁收了我吧

ak47fx 发表于 2014-11-30 13:20:07

回复看看
页: [1] 2 3
查看完整版本: 有关ECN平台不能开单时直接设止损止盈的问题--引用牛版的EA