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

[amibroker] test



PureBytes Links

Trading Reference Links




Hi,
 
I have written a simple Peak , Trough Alert. What I 
want to do is to know by way of Alert whenever the values of Trough & Peak 
Change. I am having 5 minute feed and have put the following code in AA. But the 
alert is not activating for Today but only giving Yesterdays though I have 
changed the From & To Date to Todays date. 
 
Could any one show me where the fault 
lies;
 

a=Peak<FONT 
face="Courier New" size=1>(C,<FONT face="Courier New" 
color=#ff00ff size=1>1,<FONT 
face="Courier New" color=#ff00ff size=1>1<FONT face="Courier New" 
size=1>);
b=Trough<FONT 
face="Courier New" size=1>(C,<FONT face="Courier New" 
color=#ff00ff size=1>1,<FONT 
face="Courier New" color=#ff00ff size=1>1<FONT face="Courier New" 
size=1>);
Y=Ref<FONT 
face="Courier New" size=1>(a,-<FONT face="Courier New" color=#ff00ff 
size=1>1);
Z=Ref<FONT 
face="Courier New" size=1>(b,-<FONT face="Courier New" color=#ff00ff 
size=1>1);
 
Buy=(a>Y);
Sell=(b<Z);
AlertIf(Buy,<FONT 
face="Courier New" color=#ff00ff size=1>"EXEC C:\Sell.exe"<FONT 
face="Courier New" size=1>,<FONT face="Courier New" color=#ff00ff 
size=1>"Peak Alert",<FONT 
face="Courier New" color=#ff00ff size=1>4<FONT face="Courier New" 
size=1>);
AlertIf(Sell,<FONT 
face="Courier New" color=#ff00ff size=1>"EXEC C:\Buy.exe"<FONT 
face="Courier New" size=1>,<FONT face="Courier New" color=#ff00ff 
size=1>"Trough Alert",<FONT 
face="Courier New" color=#ff00ff size=1>4<FONT face="Courier New" 
size=1>);
 
Thank 
You
<FONT face=Arial 
size=2>Prashanth
<FONT face=Arial 
size=2> 


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.