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

Re: [amibroker] 3.65b



PureBytes Links

Trading Reference Links


Dear Dimitris,
 
Here comes a sample code for composite scans that 
makes use of
new status() function. Using this one youcan 
forget about deleting composite
symbols before scans and refreshing ticker list 
after that as it is handled now with this script:
 
/* Multiple-security indicator example *//* 
Language: AFL + VBScript *//* Use in "Scan" only *//* (C)2001 Tomasz 
Janeczko
 
/* the criterion to check */values = rsi() 
< 30;
 
EnableScript("vbscript");
 
days = day();months = month();years = 
year();
 
initialize = status("stocknum") == 0;
 
<%name = "_composite"
 
days = AFL("days")months = 
AFL("months")years = AFL("years")values = AFL("values")initialize = 
AFL("initialize")
 
' get the access to AmiBroker's application 
objectSet oAB = CreateObject("Broker.Application")
 
If initialize Then  oAB.Stocks.Remove( 
name )End If
 
' we add artificial "_composite" stock that we 
will use to store' the cross-market statistics informationSet comp = 
oAB.Stocks.Add( name )
 
For i = 0 To UBound( days )
 
   Set qt = comp.Quotations.Add(  
years( i )  & "-" & months( i ) & "-" & days( i ) 
)   If values( i ) = 1 Then  qt.Volume = qt.Volume + 
1
 
Next
 
If initialize Then  
oAB.RefreshAll()End If
 
%>
 
buy = 0;
 
Best regards,Tomasz Janeczko===============AmiBroker - the 
comprehensive share manager.<A 
href="">http://www.amibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Dimitris 
Tsokakis 
To: <A title=amibroker@xxxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, August 04, 20018:30 
PM
Subject: [amibroker] 3.65b


Dear Tomasz,
I suppose you are happy now with 3.65b 
arleady released.
The delete option simplifies a lot of 
things. 
Are there any hints for your new function 
"what"or you will release something later ?
 
Best Regards
Dimitris TsokakisYour 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 




  • Follow-Ups:
  • References:
    • 3.65b
      • From: Dimitris Tsokakis