baseage:
Hi All
Does anyone have an indicator or ea that will make a sound once the account balance reaches a user defined number
for example, if the user says 10,000 then an alarm would sound once the account balance reaches this point
I have looked for one but cant see on anywhere..
Any help would be appreaciated
Michael
extern double alarm_balance=10000; bool alarm_was; int OnCalculate(const int rates_total,const int prev_calculated,const datetime &time[],const double &open[],const double &high[], const double &low[],const double &close[],const long &tick_volume[],const long &volume[],const int &spread[]) { if(!alarm_was && AccountBalance()>=alarm_balance) { alarm_was=true; Alert("Balance reached!"); } return(rates_total); }
baseage:
thanks Vasyl Nosal
Can you create this for me as i dont know what to do with the code
Michael
create file mq4 and copy all code there.
have no idear how to do that as it is giving me all sorts of options and not sure where to stick the code
if you can do it for me, that would be fantastic
![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
Hi All
Does anyone have an indicator or ea that will make a sound once the account balance reaches a user defined number
for example, if the user says 10,000 then an alarm would sound once the account balance reaches this point
I have looked for one but cant see on anywhere..
Any help would be appreaciated
Michael