stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Help needed with Better Volume Climax Volume Alerts
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=210
Page 1 of 1
Author:  rebeljedi [ Tue Jan 03, 2012 4:33 pm ]
Post subject:  Help needed with Better Volume Climax Volume Alerts

Hi,

greatly appreciate if the experienced coders can help to place alerts (pop-up window, sound, email) for Better Volume climax volumes?

Customized alerts with date and time stamps (able to choose to use pop-up window, sound, email) when there is a (RED/WHITE) climax volume after the candle (with the climax volume) closes and alerts once.
I searched through FF and also googled but I have not seen a code that works.

I tried cutting and pasting these codes which I got from somewhere and modified:
if(Box_Alert) Alert(Symbol()," M",Period(),"\n TIME=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime())," ClimaxWHITE");
if(Sound_Alert) PlaySound(Sound_File);
if(Email_Alert) SendMail("Price Alert on "+Symbol()+" M"+Period(),Symbol()+" M"+Period()+" ClimaxWHITE");
but the pop-up window alerts flowed continuously. And the fact that I do not know coding.

Hope someone can help!
Thanks!
Author:  gaheitman [ Wed Jan 04, 2012 8:50 am ]
Post subject:  Re: Help needed with Better Volume Climax Volume Alerts

rebeljedi wrote:Hi,

greatly appreciate if the experienced coders can help to place alerts (pop-up window, sound, email) for Better Volume climax volumes?

Customized alerts with date and time stamps (able to choose to use pop-up window, sound, email) when there is a (RED/WHITE) climax volume after the candle (with the climax volume) closes and alerts once.
I searched through FF and also googled but I have not seen a code that works.
Try this out. You can edit the text the alerts send. I kept the two separate in case you want to have different sounds play. Also, the popup alert setting uses the built in Alert() function which plays a sound, so it probably doesn't make sense to use them both unless you customise the sound played.

Here are the added settings:

Code: Select all

extern bool    AlertEmail=false;
extern bool    AlertSound=true;
extern bool    AlertPopup=true;
I added one global variable to keep track of the last time an alert was sent:

Code: Select all

datetime       LastAlert;
And here is the alert code. It is inserted after the main indicator loop.

Code: Select all

//----Alert Code - gah

   if (AlertEmail || AlertSound || AlertPopup)
      if (Time[0] != LastAlert) {
         LastAlert = Time[0];

         if (red[1] > 0) {
            if (AlertSound)
               PlaySound("alert");
            if (AlertPopup)
               Alert("New Climax High!");
            if (AlertEmail)
               SendMail(WindowExpertName(),"New Climax High");
         }//if (red[1] > 0)          

         if (white[1] > 0) {
            if (AlertSound)
               PlaySound("alert");
            if (AlertPopup)
               Alert("New Climax Low!");
            if (AlertEmail)
               SendMail(WindowExpertName(),"New Climax Low");
         }//if (white[1] > 0) 
         
      }//if (Time[0] != LastAlert) 
   
Let me know if you have any questions.

George
Author:  rebeljedi [ Wed Jan 04, 2012 5:01 pm ]
Post subject:  Re: Help needed with Better Volume Climax Volume Alerts

hi George,

thanks a lot for your help on the coding, it's really a neat piece of work!

Could I trouble you to add the currency pair and the period into the popup window and mail alerts?
In that way, I can see which pair is having Climax Volume, rather than cycle through the different charts to check.
As for the mail alert, can I just see all the details on the header?
Something like "Better Volume 1.4 - EURUSD H1 - Climax High with timestamp" just on the mail header?

Thanks again!
Author:  gaheitman [ Wed Jan 04, 2012 6:42 pm ]
Post subject:  Re: Help needed with Better Volume Climax Volume Alerts

rebeljedi wrote:hi George,

thanks a lot for your help on the coding, it's really a neat piece of work!

Could I trouble you to add the currency pair and the period into the popup window and mail alerts?
In that way, I can see which pair is having Climax Volume, rather than cycle through the different charts to check.
As for the mail alert, can I just see all the details on the header?
Something like "Better Volume 1.4 - EURUSD H1 - Climax High with timestamp" just on the mail header?

Thanks again!
OK, here you go. I don't use the email feature within Empty4 since it doesn't work with gmail, but it should work. Let me know if it doesn't.

George
Author:  rebeljedi [ Thu Jan 05, 2012 3:28 am ]
Post subject:  Re: Help needed with Better Volume Climax Volume Alerts

gaheitman wrote:
OK, here you go. I don't use the email feature within Empty4 since it doesn't work with gmail, but it should work. Let me know if it doesn't.

George
Hi George,
thanks a lot for your help, the alerts are neat! They work very well and very nicely!
Enclosed is the gmail-Empty4 setting (thanks to Zen Leow who posted this document) which works for Empty4 v409 (I amended the document due to Empty4 v409 update).
Author:  gaheitman [ Thu Jan 05, 2012 11:52 am ]
Post subject:  Re: Help needed with Better Volume Climax Volume Alerts

rebeljedi wrote: Hi George,
thanks a lot for your help, the alerts are neat! They work very well and very nicely!
Enclosed is the gmail-Empty4 setting (thanks to Zen Leow who posted this document) which works for Empty4 v409 (I amended the document due to Empty4 v409 update).
Glad I could help.

I'd considered setting up a local SMTP server, but since I had it working with an external program (mailsend) I didn't bother. I'll certainly give this a go. Thanks!

George
Author:  gaheitman [ Thu Jan 05, 2012 1:18 pm ]
Post subject:  Re: Help needed with Better Volume Climax Volume Alerts

rebeljedi wrote:Hi George,
thanks a lot for your help, the alerts are neat! They work very well and very nicely!
Enclosed is the gmail-Empty4 setting (thanks to Zen Leow who posted this document) which works for Empty4 v409 (I amended the document due to Empty4 v409 update).
Worked like a champ. I made one change, instead of putting in my IP address for my PC in the Empty4 settings, I used my computer name. Since my IP is dynamically set I don't want to have problems should I get a different IP at some point.

Funny thing is, Empty4 sent me the Better Volume test emails from yesterday as well. Apparently, it queues them up for a while, waiting until it can send.

George
Author:  rebeljedi [ Thu Jan 05, 2012 6:01 pm ]
Post subject:  Re: Help needed with Better Volume Climax Volume Alerts

gaheitman wrote:
Worked like a champ. I made one change, instead of putting in my IP address for my PC in the Empty4 settings, I used my computer name. Since my IP is dynamically set I don't want to have problems should I get a different IP at some point.

Funny thing is, Empty4 sent me the Better Volume test emails from yesterday as well. Apparently, it queues them up for a while, waiting until it can send.

George
Thanks George for sharing this great piece of info! I just updated my Empty4 mail settings as well!

I didn't have this issue about Empty4 sending yesterday's alerts, so having the date and time stamps on the mail header come in handy. :D
Author:  brownturtle [ Sun Nov 11, 2012 9:24 am ]
Post subject:  Re: Help needed with Better Volume Climax Volume Alerts

Hello, i know its been several years since this thread was active. I was actually after someone who could add an audible and visual alert to my copy of the better volume 1.4. Unlike the previous versions in this thread, the copy i have changes the actual bar color. I just need an alert to signify when there is a change in Bar color. Thankyou
Author:  Mktscape [ Thu Nov 29, 2012 6:45 am ]
Post subject:  Re: Help needed with Better Volume Climax Volume Alerts

gaheitman wrote:
rebeljedi wrote:hi George,

thanks a lot for your help on the coding, it's really a neat piece of work!

Could I trouble you to add the currency pair and the period into the popup window and mail alerts?
In that way, I can see which pair is having Climax Volume, rather than cycle through the different charts to check.
As for the mail alert, can I just see all the details on the header?
Something like "Better Volume 1.4 - EURUSD H1 - Climax High with timestamp" just on the mail header?

Thanks again!
OK, here you go. I don't use the email feature within Empty4 since it doesn't work with gmail, but it should work. Let me know if it doesn't.

George
Just wanted to Thank you guys in getting this done .... I was looking for it for quite some time.
All times are UTC Page 1 of 1