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

[amibroker] Re: Stock wich belong to a folder



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "aajurg" <aajurg@xxx> wrote:
>
> Hello ; I want to say in AFL code something like
> 
> "If   this stock belongs to this folder  (one industries ? folders)
> then ?."
> 
> For the instant I try to spy my variables in the "interpretation
> windows" . 
> In fact the information that I try to exploit are in 
the "Information
> windows" .
> I want to catch and use these information in a AFL code ?
> 
> For the instant I have done something like this
> 
> number  = CategoryFind ("CAC OIL & GAS PR.", categoryIndustry );
> number = CategoryFind("CAC CONSTR. & MAT." , categoryIndustry );
> number = CategoryFind("CAC AERO. & DEF." , categoryIndustry );
>    
> if (number = 0 OR number = 1 OR number = 2) 
> 
> {sectorname = CategoryGetName(categoryIndustry,number);
> stockname = Name();
> 
> "the stock's name is " + stockname + "the sector's name is  " +
> sectorname + "number's sector is "  + number ;  
> }
>  else
> 
> "nothing" ;
> 
> The stock's name is different each time I choose another Stock  with
> my mouse .
> But I want that if  I choose another folder with my mouse then the
> folder's name will change too . For the instant with this AFL code I
> see nothing in my "interpretation windows"
>
try Filter = IndustryID() == 7 OR IndustryID() == 9;
i would suggest try _trace statement insterad of interpretation 
windows.




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/