Jump to content

Alert sound for open trade


Csh-flow

Recommended Posts

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,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

  • 3 weeks later...

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,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

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.

Thanks for the kudos...much appreciated!
Link to comment
Share on other sites

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,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

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"...?

Thanks for the kudos...much appreciated!
Link to comment
Share on other sites

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,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...