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

Re: [amibroker] Auto scanning of alerts in explore. Can this be done?



PureBytes Links

Trading Reference Links




Hello,
 
Currently only scans can be auto-run from the AA 
window.
If you desperately need exploration, you can use Windows 
scheduler to run this JScript:
 
AB = WScript.CreateObject("Broker.Application");
AA = AB.Analysis;
AA.Explore();
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Gary 
  A. Serkhoshian 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Wednesday, October 15, 2003 12:32 
  AM
  Subject: [amibroker] Auto scanning of 
  alerts in explore. Can this be done?
  
  Hi all,
   
  I'm looking to move to AmiBroker RT, and had a question about auto scan 
  for alerts.
   
  Based on the code below, I'd like to run a RT exploration every 5 minutes 
  in order to generate alerts.  No problem as I can run it as a scan by 
  checking the box in AA window.  However, I'd like to have the custom 
  addcolumns to track various info for the latest exploration which I can't do 
  via Scan.  Any ideas?
   
  Thanks,
  Gary
   
  CODE BELOW:
  
  //MACD CROSSOVER
  MALEN1 = Param<FONT 
  size=2>("FAST MA"<FONT 
  size=2>,12,<FONT 
  color=#ff00ff size=2>1,<FONT color=#ff00ff 
  size=2>50,1<FONT 
  size=2>);
  MALEN2 = Param<FONT 
  size=2>("SLOW MA"<FONT 
  size=2>,26,<FONT 
  color=#ff00ff size=2>10,<FONT color=#ff00ff 
  size=2>100,1<FONT 
  size=2>);
  MA1 = MA<FONT 
  size=2>(C,MALEN1);
  MA2 = MA<FONT 
  size=2>(C,MALEN2);
  MADIFF = MA1 - MA2;
  MAALERT = Cross<FONT 
  size=2>(MADIFF, 0);
  MABUY = MADIFF > 0<FONT 
  size=2>;
  AlertIf(MAALERT,<FONT 
  color=#ff00ff size=2>"C:\<FONT face=Arial color=#ff00ff 
  size=2>\WINDOWS<FONT face=Arial 
  color=#ff00ff size=2>\\Media\<FONT 
  face=Arial color=#ff00ff size=2>\<FONT color=#ff00ff 
  size=2>ringin.wav",<FONT 
  color=#ff00ff size=2>"MACD X-ABOVE"<FONT 
  color=#000000>);
  Filter = MAALERT;
  AddColumn(MA1,<FONT 
  face=Arial color=#ff00ff size=2>"MA FAST"<FONT face=Arial color=#000000 
  size=2>, 5.2<FONT 
  face=Arial size=2>);<FONT face=Arial 
  color=#0000ff size=2>
  AddColumn(MA2,<FONT 
  face=Arial color=#ff00ff size=2>"MA SLOW"<FONT face=Arial color=#000000 
  size=2>, 5.2<FONT 
  face=Arial size=2>);<FONT face=Arial 
  color=#0000ff size=2>
  AddColumn(MADIFF, <FONT 
  face=Arial color=#ff00ff size=2>"MA DIFF"<FONT face=Arial color=#000000 
  size=2>, 5.2<FONT 
  face=Arial size=2>);
  
  
  Do you Yahoo!?<A 
  href="">The 
  New Yahoo! Shopping - with improved product search Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.