PureBytes Links
Trading Reference Links
|
Graham,
You probably missed my post. The code was mine. The symbol selection
part was identical between 2 different versions and both
versions work on 10 other user's machines including mine, so it was not
the code. The mysterious part was Patrick's screen shot showing the old
version working and the new one not working.
There is selection code in the AFL to determine what symbol the user
has on their system since some people have eSignal ($COMPQ) and some
have Yahoo (^IXIC). I used a list of indexes to search, thus the need
for checking the ticker as an index.
The code took several iterations to perfect. You may be interested in
that code shown below.
So, problem solved, mystery still a mystery. Thanks for volunteering to
help.
Terry
/* BEGIN CODE */
EnableTextOutput(False); //Don't print the
following to the Interpretation window
list = CategoryGetSymbols( categoryIndex,0); //Get a list of
Symbols marked as INDEX
COMP = "N/A";
NDX = "N/A";
for(i
= 0; i < 30; i++) //Search up to 30 Index symbols. NOTE: *COMP* has
priority over *IXIC and $NDX* priority over ^NDX
{
tempName = StrExtract(list,i);
if(StrFind(tempName,"COMP") OR StrFind(tempName,"comp")) COMP = tempName;
if((StrFind(tempName,"IXIC") OR StrFind(tempName,"ixic")) AND COMP == "N/A") COMP = tempName;
if(StrFind(tempName,"$NDX") OR StrFind(tempName,"$ndx")) NDX = tempName;
if((StrFind(tempName,"^NDX") OR StrFind(tempName,"^ndx")) AND NDX == "N/A") NDX = tempName;
}
AlertIf(COMP
== "N/A","SOUND EXPLODE.WAV","COMP symbol not found",5,1+8);
AlertIf( NDX
== "N/A","SOUND EXPLODE.WAV","NDX symbol not found",5,1+8);
EnableTextOutput(True);
"Symbols active: ";
COMP + " for Nasdaq Composite";
NDX + " for Nasdaq100";
Graham wrote:
But what indicator, where did you get it from?
Without seeing the respective codes for versions cannot tell what is wrong.
On Thu, 17 Feb 2005 10:05:19 -0800 (PST), Patrick Rask
<PRaskal@xxxxxxxxx> wrote:
Hello,
I am having a problem and AB has not responded, so I
figured I would try the group.
I am using an indicator which has new versions. version 168
works just fine, but the newest version (170 and 171) are
not capturing the NDX and IXIC values. Therefore, the whole
signal generation is thrown completely off.
The top indicator chart is version 168. The middle and
lower are 170 and 171 respectively. You can see that NDX
Close is {Empty}. Does anyone know what the heck is going
on?
Thanks,
Patrick
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
|
|