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

Re: [amibroker] Re: Need help with ALF



PureBytes Links

Trading Reference Links

Hello,

This:

> L1="!ID00"+IndustryID(0);
> L2="!ID0"+IndustryID(0);
> L3="!ID"+IndustryID(0);
> industry=WriteIf(IndustryID(0) <10,l1,WriteIf(IndustryID(0)>9 AND
> IndustryID(0)<100,l2,L3));

could be written simpler as:

Industry = StrFormat( "!ID%03.0f", IndustryID(0) );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "grmulhall" <geoffmulhall@xxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, April 01, 2004 12:38 PM
Subject: [amibroker] Re: Quotes Plus


> Thanks Jayson ! Appreciated.
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> > Geoff,
> > The code below will plot the correct Industry group index for each 
> stock.
> > select CSCO and its industry group index plots. Keep in mind that 
> QP updates
> > industry groups weekly so I have used timeframe to show the index 
> in weekly.
> > This should provide a frame work for what you are after...
> > 
> > Regards,
> > Jayson
> > 
> > L1="!ID00"+IndustryID(0);
> > L2="!ID0"+IndustryID(0);
> > L3="!ID"+IndustryID(0);
> > industry=WriteIf(IndustryID(0) <10,l1,WriteIf(IndustryID(0)>9 AND
> > IndustryID(0)<100,l2,L3));
> > SetForeign(industry);
> > TimeFrameSet(inWeekly);
> > Plot(C,IndustryID(1),colorWhite,64);
> > Plot(MA(C,20),"",colorBlue,1);
> > Plot(MA(C,50),"",colorYellow,1);
> > Title="Industry Group = "+IndustryID(1)+ " ("+industry+")"+"\n Today
> > "+WriteVal(ROC(C,1),1.2)+"%";
> > GraphXSpace=3;
> > 
> > -----Original Message-----
> > From: grmulhall [mailto:geoffmulhall@x...]
> > Sent: Wednesday, March 31, 2004 7:07 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Quotes Plus
> > 
> > 
> > Hi,
> > 
> > Is there an easy way to assign the correct index to the industry
> > groups so that relative strengths are correctly 
> calculated/displayed ?
> > 
> > Thanks,
> > 
> > Geoff
> > 
> > 
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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 Sponsor
> >             ADVERTISEMENT
> > 
> > 
> > 
> > 
> > 
> > --------------------------------------------------------------------
> --------
> > ----
> > Yahoo! Groups Links
> > 
> >   a.. To visit your group on the web, go to:
> >   http://groups.yahoo.com/group/amibroker/
> > 
> >   b.. To unsubscribe from this group, send an email to:
> >   amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > 
> >   c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> Service.
> 
> 
> 
> 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
> 
> 
> 
>  
> 
> 


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/