[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] autoanalysis intraday



PureBytes Links

Trading Reference Links

Dear group members, I tried to program an autoanalysis scan that
checks every  5 minutes. In case of buysignal or sellsignal it should
alert by sound. I tried this :
 
tn = TimeNum();
tm = Now(4);
Tmin = (tm/100)%100;
Tsec = frac(tm/100)*100;
Endper = (Tmin==4 AND Tsec>=55)  OR (Tmin==9 AND Tsec>=55) OR
(Tmin==14 AND Tsec>=55) OR (Tmin==19 AND Tsec>=55) OR (Tmin==24 AND
Tsec>=55)
			OR	(Tmin==29 AND Tsec>=55) OR (Tmin==34 AND Tsec>=55) OR (Tmin==39
AND Tsec>=55) OR (Tmin==44 AND Tsec>=55) OR 
			    (Tmin==49 AND Tsec>=55) OR (Tmin==54 AND Tsec>=55) OR (Tmin==59
AND Tsec>=55); // signal only in last 5 seconds of each 5 minute period

Buy = BuySig AND Endper;
Sell = SellSig AND Endper;

Short=Sell;
Cover=Buy;
        
AlertIf(Buy, "Sound D:\\WINNT\\Media\\ringin.wav", "Audio Alert", 1);
AlertIf(Sell, "Sound D:\\WINNT\\Media\\ringout.wav", "Audio Alert", 2);

Has anyone an idea how to put it right?



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Transfer from your equities account.  
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get 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 - Join or create groups, clubs, forums & communities. 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 - Join or create groups, clubs, forums &amp; communities. is subject to:
    http://docs.yahoo.com/info/terms/