Menu
Brokers
MT4 Forex Brokers
MT5 Forex brokers
PayPal Brokers
Skrill Brokers
Oil Trading Brokers
Gold Trading Brokers
Web Browser Platform
Brokers with CFD Trading
ECN Brokers
Bitcoin FX Brokers
PAMM Forex Brokers
With Cent Accounts
With High Leverage
Cryptocurrency Brokers
Forums
All threads
New threads
New posts
Trending
Search forums
What's new
New threads
New posts
Latest activity
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Reply to thread
Forums
Trading Platforms
MetaTrader Indicators
Price Alert
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
[QUOTE="hayseed, post: 123126, member: 5898"] //------ hey maverick..... for PlaySound() to work effectively it must be short.... anything longer than 1 second is too long.....h //------ [code=mql4] extern double above1 = 0.0; extern string above1wav = "email.wav"; // keep sounds less than 2 seconds long extern double below1 = 0.0; extern string below1wav = "timeout.wav"; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //--- indicator buffers mapping //--- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { if((Ask > above1) && (above1 > 0.0)) {PlaySound(above1wav);} // keep your sounds short if((Ask < below1) && (below1 > 0.0)) {PlaySound(below1wav);} //----------- expand to as many lines as needed //----------- be sure to limit the number of times the PlaySound() works otherwise they never stop till untrue return(0); } //------ [/code] //----- [/QUOTE]
Insert quotes…
Verification
Post reply
Top
Bottom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…