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

[amibroker] inconsistant explore results using addToComposite



PureBytes Links

Trading Reference Links

In the latest Beta version, the following code does not seem to do 
what I expect:

Buy=0;
Sell=0;
Filter=1;
AddColumn( RSI(14) ,"none",1);
RSIList=RSI(14);
AddToComposite(RSIList/5, "~rsi", "X",23 );

I have a filter with 5 stocks and a 1 day date range.
After the scan, my result column is as expected; 5 stocks wtih RSI 
values.

BUT, The composite "~rsi" plot has many more entries with the 5 values
"sprinkled-in" with no discernable pattern or frequency.
NOTE: I realized that the scan is run once for every stock, hence 
the "rsiList/5" to get the correct values in the composite.

If there is a better way, not using scripting (I'm forcing myself to 
learn Amibroker), please point me in the right direction...

Thanks in advance for any help!

                    Walt



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/CNxFAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/