Help with random noise from MT4
there is nothing in the code to cause this.
//+------------------------------------------------------------------+ //| MA Cross.mq4 .mq4 | //| c_323_h@hotmail.com | //| | //+------------------------------------------------------------------+ #property copyright "c_323_h@hotmail.com " #property link "" //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ extern double Lots=0.5; extern double StopLoss=20; extern double TakeProfit=30; int start() { double MA1, MA2,MA3,MA4; int total,ticket,cnt; //to simplify coding MA1=iMA(NULL,0,3,0,1,0,0); MA2=iMA(NULL,0,3,0,1,0,1); MA3=iMA(NULL,0,10,0,1,0,0); MA4=iMA(NULL,0,10,0,1,0,1); //check for long possibility if(MA1 < MA3 && MA2 > MA4) { { ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,NULL,Ask+TakeProfit*Point,0,0,Green); Alert(GetLastError()) ; } return(0); } //check for short position if(MA1 > MA3 && MA2 < MA4) { { ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,NULL,Bid-TakeProfit*Point,0,0,Red); } return(0); } //for control of open orders for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES); if(OrderType()<=OP_SELL && OrderSymbol()==Symbol()) { if(OrderType()==OP_BUY) { //long positions if(MA1 > MA3 && MA2 < MA4) { OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue); return(0); } else //short positions { if(MA1 < MA3 && MA2 < MA4) { OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet); return(0); } } } } } return(0); }
something has changed in MT4 for me
with any EA attached, it makes a noise every pip which sounds a little like a telephone ring.
there is nothing in the code to cause this.
Can someone help me stop it ?
tools -> options -> events The sounds are independent of the EA
tools -> options -> events The sounds are independent of the EA
thankyou very much
To come back to this....
I am sure there is a problem. The noise is only made with each pip when the EA is attached to the chart. When I turn off the EA, the noise stops.
I will try reinstalling the program....
something has changed in MT4 for me
with any EA attached, it makes a noise every pip which sounds a little like a telephone ring.
there is nothing in the code to cause this.
Can someone help me stop it ?