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

Re: [amibroker] optimization with tickers-> strings not accepted?



PureBytes Links

Trading Reference Links



The optimise is ok, It's the IIF statment thats wrong. 
It Could be that IIF only works with number arrays. 
Jam this in instead.
if(tick==1)
{ticker =
"^IXIC";}
else
{ticker =
"^DJI";}

At 12:31 PM 18/08/2003 +0000, you wrote:
Hi,
just want to know why this works
ticker="^DJI";
scSwingFibo(ticker,4);
and the optization does not work
tick= Optimize("tick", 1, 1, 2, 1 ); 
ticker=IIf(tick==1,"^IXIC","^DJI");
scSwingFibo(ticker,4);
Stephane
PS: scSwingFibo(ticker,4); is a dll of course but the optimization 
seems 
to do not accept strings??
stephane








Yahoo! Groups Sponsor


  ADVERTISEMENT 









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.