日志中是否有任何错误?
记录本上没有错误...
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++| extern string ____0___ = "+++++Время SELL-а+++++++++++++"; //| extern int sH=8; //| extern int sM=35; //| extern int sH2=11; //| extern int sM2=5; extern int sH3=11; //| extern int sM3=5; //| extern string ____1___ = "+++++Время BUY-а++++++++++++++"; //| extern int bH=17; //| extern int bM=55; //| extern int bH2=16; //| extern int bM2=5; extern int bH3=16; //| extern int bM3=5; //| extern string ____4___ = "+++++Все остальное++++++++++++"; //| extern int Tp=34; //| extern int Sl=55; //| extern double Prosadka=22; //| extern string ____5___ = "йоу!)"; //| extern color Cvet=Red; //| int ticket; //| //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++| int start() { if((OrdersTotal()==0 && Hour()==sH && Minute()==sM)||(OrdersTotal()==0 && Hour()==sH2 && Minute()==sM2)|| (OrdersTotal()==0 && Hour()==sH3 && Minute()==sM3)) { OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,0,Ask+Sl*Point,Ask-Tp*Point,"DLSexp",123,0,Cvet);//открываем сделку } else if((OrdersTotal()==0 && Hour()==bH && Minute()==bM)||(OrdersTotal()==0 && Hour()==bH2 && Minute()==bM2) || (OrdersTotal()==0 && Hour()==bH3 && Minute()==bM3)) { OrderSend(Symbol(),OP_BUY,LotsOptimized(),Ask,0,Bid-Sl*Point,Bid+Tp*Point,"DLSexp",124,0,Cvet);//открываем сделку } } //++++++++++++ОПТИМИЗАЦИЯ ЛОТА+++++++++++++++ double LotsOptimized() { double lot; lot=NormalizeDouble(AccountFreeMargin()/100.0/Prosadka,2); if(lot<0.01) return(0.01); else return(lot); } //++++++++++++++++++++++++++++++++++++++++++ int init() { Comment("TP=",Tp,"\n","SL=",Sl);//Коментим в левом верхнем углу }
帮帮我吧...
DanLett:
你设定的条件太严格了。它们可能无法得到满足
DanLett:
最大,但你必须意识到,按时间开单太容易拉长市场。
日安!
我最近试着写了一个EA,结果一切都很正常,按时间打开交易。
现在的问题是时间,例如,需要在8月34日开启交易,而酒吧不看分钟是先8月33日,然后立即8月35日,分析了另一个图表,我注意到,一些分钟,以及有。
请告知如何重新开启交易,例如一分钟后等,直到开启交易。