外汇EA
有关ECN平台不能开单时直接设止损止盈的问题
回复:0  浏览:81
  • 楼主admin 圈主
  • 2019-05-05 08:17
牛版的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