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

Re: [amibroker] Resetting a Composite



PureBytes Links

Trading Reference Links




Herman,
 
Yes it is possible - using scripting:
 
EnableScript("jscript");
<%
function RemoveAllQuotes( name ){
AB = new ActiveXObject("Broker.Application");
iQty = AB.Stocks( name ).Quotations.Count;
for( i = iQty - 1; i >= 0; i-- )
{
  AB.Stocks( name ).Quotations.Remove( i );
}}
%>
 
if( name() == "MSFT" ) // reset composite when MSFT is 
scanned
{
 scr = GetScriptObject();
 scr.RemoveAllQuotes("~YOURCOMPOSITE");
}
 
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Herman vandenBergen 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">AmiBroker 
  Sent: Sunday, December 28, 2003 5:23 
  AM
  Subject: [amibroker] Resetting a 
  Composite
  
  <SPAN 
  class=750211504-28122003>Hello,
  <SPAN 
  class=750211504-28122003> 
  is it 
  possible to reset a composite to zero in the middle of a Scan or 
  Exploration?
  <SPAN 
  class=750211504-28122003> 
  <SPAN 
  class=750211504-28122003>thanks,
  <SPAN 
  class=750211504-28122003>herman
  <SPAN 
  class=750211504-28122003> 
  <SPAN 
  class=750211504-28122003> Send BUG 
  REPORTS to bugs@xxxxxxxxxxxxxSend 
  SUGGESTIONS to <A 
  href="">suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: <A 
  href="">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 
  
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  

    To unsubscribe from this group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  


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.