PureBytes Links
Trading Reference Links
|
Dear members!
I have a question on a following code.
There is a desire to do check - whether quotations on the computer
and if they are not present arrive - to send a signal on e-mail.
As it can be made - if current time of the computer (Now (4)) differs
from bar time (TimeNum ()) for 20 minutes - the signal comes.
Code:
CurTime = int (Now (4)/100);//current time without seconds
RabVremya=CurTime> = 1030 AND CurTime <= 2355;//working hours
DataAlert=IIf (RabVremya AND (CurTime - int (TimeNum ())/100> 20),
1,0);
AlertIf (DataAlert, "EMAIL", "Alarm! Check up" +Name () + "! Data are
not present!", type=0);
In the theory like should work :)
But in practice when quotations are I all the same each 20 minutes I
receive the message, that data are not present!
Prompt, as it can be corrected!
Thanks!
P.S. Excuse, if if errors - transfer is executed by mechanical system.
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
*********************************
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|