Hi, 

I've encountered a problem in external parameters setting, in case I want 
to set parameters for more indicators which posses same argument names 
(e.g. setting length of multiple different Moving Averages - same name 
parameter 'n').

I can demonstrate this issue using quantstrat demo maCross (strategy uses 
"short" and "long" moving average, and my aim is to set length of both 
averages through 'parameters' argument in applyStrategy):

Input:

applyStrategy(strategy=stratMACROSS , portfolios=portfolio.st, 
parameters=list(n=50, n=200))

Output:

mktdata[45:55]

AAPL.Open AAPL.High AAPL.Low AAPL.Close AAPL.Volume AAPL.Adjusted    ma50  
ma200 ma50.gt.ma200 ma50.lt.ma200
2000-03-06  31.49749  32.27993 31.24751      31.42     7520000 31.42 NA  
NA            NA            NA
2000-03-07  31.61257  31.86259 30.28246      30.72     9767600 30.72 NA  
NA            NA            NA
2000-03-08  30.71750  30.98500 29.64000      30.50     9690800 30.50 NA  
NA            NA            NA
2000-03-09  30.21503  31.24744 29.56008      30.56     9884400 30.56 NA  
NA            NA            NA
2000-03-10  30.42492  31.98754 30.25241      31.44     8900800 31.44 NA  
NA            NA            NA
2000-03-13  30.53252  31.62761 29.87746      30.33    10864400 30.33  
27.6152 27.6152            NA            NA
2000-03-14  30.30235  31.05978 28.49751      28.56    15321200 28.56     
27.6724 27.6724            NA            NA
2000-03-15  28.90251  30.05991 28.52755      29.06    15845200 29.06  
27.6938 27.6938            NA            NA
2000-03-16  29.32750  30.50000 28.62500      30.39    13516800 30.39  
27.7892 27.7892            NA            NA
2000-03-17  30.03000  31.25000 29.90500      31.25    10902400 31.25     
27.8942 27.8942            NA            NA
2000-03-20  30.87500  31.56250 30.59250      30.75     7316400 30.75     
28.0342 28.0342            NA            NA


Using this input, strategy uses only "50day" Moving Average, for both MA50 
and MA200 in 'mktdata'.

Is there any way how to implement length of both different moving averages 
(or other indicators e.g. ROC, BBands,... with same arguments) into 
'parameters'?


Thanks,

Igor







____________________________________________________________________
Informacie obsiahnute v tomto  dokumente su urcene vylucne pre
potreby jeho adresata. Dokument moze obsahovat informacie chranene
ako bankove alebo obchodne tajomstvo, pripadne informacie
podliehajuce ochrane podla inych pravnych predpisov. Preto Vas v
pripade, ak Vam bol  mylne doruceny, vyzyvame, aby ste sa zdrzali
jeho odtajnenia ci jeho pouzitia pre vlastne potreby. Zaroven si Vas
dovolujeme poziadat, aby ste nas o takomto pripade bez zbytocneho
odkladu informovali a dokument nasledne zlikvidovali.

Information stated in this document is intended only for needs of proper
addressees of this document. This document can contain information
protected as a bank or business secret, or information protected by 
other legal regulations. Thus in case of receiving the document by error,  
we kindly ask you not to disclose, or use the document for your own 
needs. Likewise we kindly ask you to notify us immediately upon such 
a case by sending an email message to the sender's address, and 
subsequently delete the document.

Tatra banka, a.s.
http://www.tatrabanka.sk
Hodzovo namestie 3,  811 06 Bratislava 1 
ICO: 00 686 930
Zapisana v obchodnom registri Okresneho sudu Bratislava I
Oddiel: Sa, vlozka cislo: 71/B
	[[alternative HTML version deleted]]

