PureBytes Links
Trading Reference Links
|
Stephane,
The pre-4.52.0 problem *IS* corrected now.
If XXX has some holes in a row, then the 4.52.0 Plot(Foreign
("XXX","C",0),"XXX",1,1); is {EMPTY} for these bars.[correct]
The peculiar behavior {EMPTY},CLOSE, {EMPTY},CLOSE, {EMPTY}...
belongs to the past.
The rest is a matter of definition.
Tomasz, according to his last response on the subject, accepts two
different definitions for the average of a WL[different definitions
give different results...].
AddToComposite() method, as you know, will not count XXX for its
missing bars.The CategoryGetSymbols() method fills the holes with the
last existing value and will give different result.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset"
<s.carrasset@xxxx> wrote:
>
> >>fixed problem with fixup=0 and handling multiple data holes in a
row
>
> Dear Tomasz,
>
> I am sorry, but it seems that the problem that Dimitri describes
with data holes is not fixed...
> the function CountTickersInWatchList( Listnum ) does not match the
addto composite count.
>
> stephane
> //Count tickers in watchlist function
>
> //For Indicator Builder
>
> WatchlistNumber=3 ;//enter watchlist number
>
> function CountTickersInWatchList( Listnum )
>
> {
>
> // retrive comma-separated list of symbols in watch list
>
> list = GetCategorySymbols( categoryWatchlist, listnum );
>
> Counter=0; // INITIALIZE COUNTER
>
> for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
>
> {
>
> // TO COUNT BAR BY BAR YOU HAVE TO USE ARRAYS NOT SCALAR AND USE
FOREIGN TO FIND OUT HOLES
>
> Counter=Counter + ( NOT IsNull( Foreign( sym, "C", False ) ) );
>
> }
>
> return Counter;
>
> }
>
> Title="Watchlist # "+WriteVal(watchlistnumber,1)+" has "+
>
> CountTickersInWatchList( WatchlistNumber) + " Tickers";
>
> Plot(CountTickersInWatchList( WatchlistNumber) ,"",1,1);
>
> //AddToComposite( 1, "~Count", "x");
>
> Plot(Foreign("~count","X"),"",4,1);
>
> GraphXSpace=10;
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:
http://docs.yahoo.com/info/terms/
|