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
AudioPriceAlert
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="Maverick, post: 123872, member: 30549"] Not really sure why I referred to that OLD code above - supposed to have moved on from there :( The way I see it . . . I need to add - underneath [code=mql4]#property indicator_chart_window[/code] [code=mql4]extern double PriceAbove_5 = 0.0; extern double PriceAbove_4 = 0.0; extern double PriceAbove_3 = 0.0; extern double PriceAbove_2 = 0.0; extern double PriceAbove_1 = 0.0; extern double PriceExact_0 = 0.0; extern double PriceBelow_1 = 0.0; extern double PriceBelow_2 = 0.0; extern double PriceBelow_3 = 0.0; extern double PriceBelow_4 = 0.0; extern double PriceBelow_5 = 0.0; enum wavs { a=0, // alert.wav b=1, // alert2.wav c=2, // connect.wav d=3, // disconect.wav e=4, // ok.wav f=5, // stops.wav g=6, // news.wav }; //+------------------------------------+ // | input parameters | //+------------------------------------+ input wavs PriceAbove_5_wav1 = a; input wavs PriceAbove_4_wav1 = a; input wavs PriceAbove_3_wav1 = a; input wavs PriceAbove_2_wav1 = a; input wavs PriceAbove_1_wav1 = a; input wavs PriceExact_0_wav1 = a; input wavs PriceBelow_1_wav1 = a; input wavs PriceBelow_2_wav1 = a; input wavs PriceBelow_3_wav1 = a; input wavs PriceBelow_4_wav1 = a; input wavs PriceBelow_5_wav1 = a; string wavarray[7] = {"alert.wav","alert2.wav","connect.wav","disconnect.wav" }; // list your wav choices in an array like this[/code] Then change [code=mql4]PlaySound("alert.wav");[/code] For [code=mql4] PlaySound(wavarray[PriceAbove_1_wav1]);[/code] Not really sure what the letters a, b ,c, d, e, f, g ... are all about . [/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…