PureBytes Links
Trading Reference Links
|
Awhile back
somebody posted on In-Line composite creation. I don't know if the question was
answered... Anyway, the following is what I use for the N100,
perhaps not the best solution but it
seems to work for me, it is pretty fast and can be used in an Indicator that
auto-refreshes the composite. I hope it has some ideas that you can
use.
<FONT
color=#000000>// Inline composite creation for the
N100
// Creates composite equal in length to
current stock!!<FONT
color=#000000>for<FONT
color=#000000>(n=0<FONT
color=#000000>;n<100<FONT
size=2>;n++) {
<FONT
color=#ff0000>#include<FONT
face=Arial> <NtoN100Ticker.afl>
Fo = Foreign<FONT
color=#000000>(Ticker,"O"<FONT
size=2>);
AddToComposite<FONT
color=#000000>(Fo,"~OpenComp"<FONT
color=#000000>,"X"<FONT
color=#000000>,1<FONT
color=#000000>|2<FONT
color=#000000>|8<FONT
size=2>);
AddToComposite<FONT
color=#000000>(Fo>0<FONT
color=#000000>,"~Count"<FONT
color=#000000>,"X"<FONT
color=#000000>,1<FONT
color=#000000>|2<FONT
color=#000000>|8<FONT
size=2>); } n
= Foreign(<FONT
color=#ff00ff>"~Count",<FONT
color=#ff00ff>"X"<FONT
color=#000000>); Oc = Foreign<FONT
color=#000000>("~OpenComp"<FONT
color=#000000>,"X"<FONT
size=2>)/n; <FONT
color=#0000ff>Plot(Oc,<FONT
color=#ff00ff>"OpenComp",<FONT
color=#ff00ff>1,<FONT
color=#ff00ff>1<FONT
color=#000000>); Plot<FONT
color=#000000>(O<FONT
color=#000000>,"Open"<FONT
color=#000000>,4<FONT
color=#000000>,1);
// Include
File
Ticker
= WriteIf<FONT
color=#000000>(n==0 ,
"AAPL"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>1 , <FONT
color=#ff00ff>"ADBE"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==2 ,
"ADCT"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>3 , <FONT
color=#ff00ff>"ALTR"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==4 ,
"AMAT"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>5 , <FONT
color=#ff00ff>"AMGN"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==6 ,
"AMZN"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>7 , <FONT
color=#ff00ff>"APCC"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==8 ,
"APOL"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>9 , <FONT
color=#ff00ff>"BBBY"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==10 ,
"BEAS"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>11 , <FONT
color=#ff00ff>"BIIB"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==12 ,
"BMET"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>13 , <FONT
color=#ff00ff>"BRCD"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==14 ,
"BRCM"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>15 , <FONT
color=#ff00ff>"CDWC"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==16 ,
"CEPH"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>17 , <FONT
color=#ff00ff>"CHIR"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==18 ,
"CHKP"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>19 , <FONT
color=#ff00ff>"CHRW"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==20 ,
"CIEN"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>21 , <FONT
color=#ff00ff>"CMCSA"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==22 ,
"CMVT"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>23 , <FONT
color=#ff00ff>"COST"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==24 ,
"CPWR"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>25 , <FONT
color=#ff00ff>"CSCO"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==26 ,
"CTAS"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>27 , <FONT
color=#ff00ff>"CTXS"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==28 ,
"DELL"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>29 , <FONT
color=#ff00ff>"DISH"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==30 ,
"DLTR"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>31 , <FONT
color=#ff00ff>"EBAY"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==32 ,
"ERICY"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>33 , <FONT
color=#ff00ff>"ERTS"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==34 ,
"ESRX"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>35 , <FONT
color=#ff00ff>"EXPD"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==36 ,
"FAST"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>37 , <FONT
color=#ff00ff>"FHCC"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==38 ,
"FISV"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>39 , <FONT
color=#ff00ff>"FLEX"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==40 ,
"GENZ"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>41 , <FONT
color=#ff00ff>"GILD"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==42 ,
"GNTX"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>43 , <FONT
color=#ff00ff>"HGSI"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==44 ,
"HSIC"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>45 , <FONT
color=#ff00ff>"IACI"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==46 ,
"ICOS"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>47 , <FONT
color=#ff00ff>"INTC"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==48 ,
"INTU"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>49 , <FONT
color=#ff00ff>"IVGN"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==50 ,
"JDSU"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>51 , <FONT
color=#ff00ff>"JNPR"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==52 ,
"KLAC"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>53 , <FONT
color=#ff00ff>"LAMR"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==54 ,
"LLTC"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>55 , <FONT
color=#ff00ff>"LNCR"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==56 ,
"MCHP"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>57 , <FONT
color=#ff00ff>"MEDI"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==58 ,
"MERQ"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>59 , <FONT
color=#ff00ff>"MLNM"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==60 ,
"MNST"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>61 , <FONT
color=#ff00ff>"MOLX"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==62 ,
"MSFT"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>63 , <FONT
color=#ff00ff>"MXIM"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==64 ,
"NTAP"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>65 , <FONT
color=#ff00ff>"NVDA"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==66 ,
"NVLS"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>67 , <FONT
color=#ff00ff>"NXTL"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==68 ,
"ORCL"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>69 , <FONT
color=#ff00ff>"PAYX"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==70 ,
"PCAR"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>71 , <FONT
color=#ff00ff>"PDCO"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==72 ,
"PETM"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>73 , <FONT
color=#ff00ff>"PIXR"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==74 ,
"PSFT"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>75 , <FONT
color=#ff00ff>"PTEN"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==76 ,
"QCOM"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>77 , <FONT
color=#ff00ff>"QLGC"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==78 ,
"RFMD"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>79 , <FONT
color=#ff00ff>"ROST"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==80 ,
"RYAAY"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>81 , <FONT
color=#ff00ff>"SANM"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==82 ,
"SBUX"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>83 , <FONT
color=#ff00ff>"SEBL"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==84 ,
"SIAL"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>85 , <FONT
color=#ff00ff>"SNDK"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==86 ,
"SNPS"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>87 , <FONT
color=#ff00ff>"SPLS"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==88 ,
"SPOT"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>89 , <FONT
color=#ff00ff>"SSCC"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==90 ,
"SUNW"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>91 , <FONT
color=#ff00ff>"SYMC"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==92 ,
"TEVA"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>93 , <FONT
color=#ff00ff>"TLAB"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==94 ,
"VRSN"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>95 , <FONT
color=#ff00ff>"VRTS"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==96 ,
"WFMI"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>97 , <FONT
color=#ff00ff>"XLNX"<FONT
color=#000000>, WriteIf<FONT
color=#000000>(n==98 ,
"XRAY"<FONT
face=Arial>, <FONT
color=#0000ff>WriteIf(n==<FONT
color=#ff00ff>99 , <FONT
color=#ff00ff>"YHOO" , <FONT
color=#ff00ff>""<FONT
color=#000000>
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));
Yahoo! Groups Sponsor
ADVERTISEMENT
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
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|