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

[amibroker] BUG with Varget and MFI



PureBytes Links

Trading Reference Links


Hello,Tomasz,

Watchlist 0 contains only 2 stocks
and sometimes the Rank returns 3 !!!
because Amibroker does take care of < when I compare the MFI with the 
result of Varget ( that is the same MFI)
must be a problem of integer or float...

stephane


list = GetCategorySymbols( categoryWatchlist, 0 );  
StockNb=0;
for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{
SetForeign(sym);
VarSet("MyInd"+i,MFI(14));// Indicator
StockNb++;
RestorePriceArrays();
}

Rank=1;
for( i = 0;i<stockNb;i++)
{
Rank=Rank + IIf(MFI(14)<VarGet("MyInd"+i),1,0);
}

Plot(rank,"rank",i+1,styleOwnScale);
GraphXSpace=10;





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/