Malkyboyo:
How do you know that ?
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); }
Malkyboyo:
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
WHRoeder:
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....
I think you Alert is going off repeatedly . . . disable it, re-compile and try again.
mine is doing the same! turned all the events and alerts off, its very irritating
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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 ?