Csh-flow Posted November 23, 2009 Report Share Posted November 23, 2009 Is there someone who could have one alert sound system that when the ea open one trade it rings the sound? Thanks. Quote Link to comment Share on other sites More sharing options...
San4x Posted November 23, 2009 Report Share Posted November 23, 2009 Re: Alert sound for open trade I think it's as simple as adding a one-liner below the Ordersend() command: PlaySound("alert.wav"); That should do the trick. If you also want a pop-up window: Alert("text"); Quote Thanks for the kudos...much appreciated! Link to comment Share on other sites More sharing options...
Csh-flow Posted November 23, 2009 Author Report Share Posted November 23, 2009 Re: Alert sound for open trade But it is for megadroid ea. And the interest is to alert one Meagdroid open one new trade. Thanks. Quote Link to comment Share on other sites More sharing options...
scarface Posted November 24, 2009 Report Share Posted November 24, 2009 Re: Alert sound for open trade Is there someone who could have one alert sound system that when the ea open one trade it rings the sound? Thanks. Hi, Thanks for your post. well, do you want to know how to add a play sound alert in an indicator or EA?? is that what you are looking for?? Please let me know. Best wishes, Quote a New Year 2011 has come, and the challenge has just started 8-) Link to comment Share on other sites More sharing options...
Csh-flow Posted November 24, 2009 Author Report Share Posted November 24, 2009 Re: Alert sound for open trade I looking for some kind of alert sound. I mean it is not necessary to be in Megadroid EA. I only need one alert, when Megadroid open one trade, it will play one sound. Thanks. -- 28 Nov 2009, 00:51 -- Can anybody help me? Thanks. Quote Link to comment Share on other sites More sharing options...
scarface Posted December 12, 2009 Report Share Posted December 12, 2009 Re: Alert sound for open trade Hi C@sh-flow, Good day, I'm sorry for the late reply. well, let me tell you one thing. Each indicator or EA has a different way how to add an alert to it. Also, it is mainly based on the signals start and end. You need to be precise so we clear up the idea of how to add an alert. I can show you an example if you so you can understand something at least and see how it goes, what do you say?? please let me know as soon as possible. Best wishes, Quote a New Year 2011 has come, and the challenge has just started 8-) Link to comment Share on other sites More sharing options...
San4x Posted December 12, 2009 Report Share Posted December 12, 2009 Re: Alert sound for open trade C@sh-flow, It's really easy. See my post earlier. 1. Open the EA (if you have mq4) in MetaEditor and look for OrderSend function. For version 1.2.1, it's is on line 445. 2. Add a one-liner below the Ordersend() command: PlaySound("alert.wav"); Then click on "compile" in the MetaEditor. That should do the trick. Or if you want a pop-up window and sound: 3. Add this below the Ordersend() code line: Alert("Order Opened by MegaDroid"); Now when this is done, everytime an order is opened, you will get a Sound or an Alert box popping up. Quote Thanks for the kudos...much appreciated! Link to comment Share on other sites More sharing options...
scarface Posted December 12, 2009 Report Share Posted December 12, 2009 Re: Alert sound for open trade Hi San4x, Good day, Thanks for your great post. However, just one quick question, did you try the function play sounds " " one line below ordersend function?? I guess if you tried it, you would find something strange. And for the Alert comment, I'm not yet sure about it. I guess it is more than that. I would love to invite you to drop by the MQL programming sub-forum whenever you have time so we can discuss a lot of things. Maybe you have skills I don't have so we can exchange knowledge and info. I hope to hear from you again. Best wishes, Quote a New Year 2011 has come, and the challenge has just started 8-) Link to comment Share on other sites More sharing options...
San4x Posted December 13, 2009 Report Share Posted December 13, 2009 Re: Alert sound for open trade Hi San4x, Good day, Thanks for your great post. However, just one quick question, did you try the function play sounds " " one line below ordersend function?? I guess if you tried it, you would find something strange. And for the Alert comment, I'm not yet sure about it. I guess it is more than that. I would love to invite you to drop by the MQL programming sub-forum whenever you have time so we can discuss a lot of things. Maybe you have skills I don't have so we can exchange knowledge and info. I hope to hear from you again. Best wishes, Thanks Scarface. What are you referring to..."something strange"...? Quote Thanks for the kudos...much appreciated! Link to comment Share on other sites More sharing options...
scarface Posted December 14, 2009 Report Share Posted December 14, 2009 Re: Alert sound for open trade Hi, Good day, I meant did you use the function so that you can see it working this way or not?? The reason why I'm asking is that when you use alert or play sound functions you need to add some conditional coding otherwise, it would keep alerting for no reason. You can try it yourself and let me know how it goes. Take any EA as an example and add either the alert or play sound function and see how it goes. I guess it is clear now my friend ;) , isn't it?? Thanks for your reply. Best wishes, Quote a New Year 2011 has come, and the challenge has just started 8-) Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.