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

[EquisMetaStock Group] Re: CCI - standard CODE



PureBytes Links

Trading Reference Links

That's Ok, Preston, please embarrass me with this ancient lame code of 
mine.  :)

BTW, at that time I was looking for code to lock CCI variables into static, 
and Corey came to the rescue with LastValue(x+PREV-PREV).


jose '-)
http://metastocktools.com



--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> 
wrote:
> Here's a blast from the past. Jose will love this. 
> He and Corey Saxe were resolving this same issue 
> on another now defunct board. There formula solutions follow:
> 
> {CCI-STD cs}
> {written by Corey Saxe}
> V1:=Input("Periods",2,250,14);
> x:=Typical();
> y:=Mov(x,V1,S);
> z:=Sum(Abs(x-LastValue(y+PREV-PREV)),V1)/V1;
> A1:=z*0.015;
> ZZI:=(x-y)/A1{(If(A1=0,.0000001,A1))};
> ZZI
> 
> {CCI-STD js}
> {by Jose Silva}
> d:=Input("CCI periods",2,39,14);
> x:=Typical();
> y:=Mov(x,d,S);
> z:=Abs(x-y);
> z:=If(d>1,z+Abs(Ref(x,-1)-y),z);
> z:=If(d>2,z+Abs(Ref(x,-2)-y),z);
> z:=If(d>3,z+Abs(Ref(x,-3)-y),z);
> z:=If(d>4,z+Abs(Ref(x,-4)-y),z);
> z:=If(d>5,z+Abs(Ref(x,-5)-y),z);
> z:=If(d>6,z+Abs(Ref(x,-6)-y),z);
> z:=If(d>7,z+Abs(Ref(x,-7)-y),z);
> z:=If(d>8,z+Abs(Ref(x,-8)-y),z);
> z:=If(d>9,z+Abs(Ref(x,-9)-y),z);
> z:=If(d>10,z+Abs(Ref(x,-10)-y),z);
> z:=If(d>11,z+Abs(Ref(x,-11)-y),z);
> z:=If(d>12,z+Abs(Ref(x,-12)-y),z);
> z:=If(d>13,z+Abs(Ref(x,-13)-y),z);
> z:=If(d>14,z+Abs(Ref(x,-14)-y),z);
> z:=If(d>15,z+Abs(Ref(x,-15)-y),z);
> z:=If(d>16,z+Abs(Ref(x,-16)-y),z);
> z:=If(d>17,z+Abs(Ref(x,-17)-y),z);
> z:=If(d>18,z+Abs(Ref(x,-18)-y),z);
> z:=If(d>19,z+Abs(Ref(x,-19)-y),z);
> z:=If(d>20,z+Abs(Ref(x,-20)-y),z);
> z:=If(d>21,z+Abs(Ref(x,-21)-y),z);
> z:=If(d>22,z+Abs(Ref(x,-22)-y),z);
> z:=If(d>23,z+Abs(Ref(x,-23)-y),z);
> z:=If(d>24,z+Abs(Ref(x,-24)-y),z);
> z:=If(d>25,z+Abs(Ref(x,-25)-y),z);
> z:=If(d>26,z+Abs(Ref(x,-26)-y),z);
> z:=If(d>27,z+Abs(Ref(x,-27)-y),z);
> z:=If(d>28,z+Abs(Ref(x,-28)-y),z);
> z:=If(d>29,z+Abs(Ref(x,-29)-y),z);
> z:=If(d>30,z+Abs(Ref(x,-30)-y),z);
> z:=If(d>31,z+Abs(Ref(x,-31)-y),z);
> z:=If(d>32,z+Abs(Ref(x,-32)-y),z);
> z:=If(d>33,z+Abs(Ref(x,-33)-y),z);
> z:=If(d>34,z+Abs(Ref(x,-34)-y),z);
> z:=If(d>35,z+Abs(Ref(x,-35)-y),z);
> z:=If(d>36,z+Abs(Ref(x,-36)-y),z);
> z:=If(d>37,z+Abs(Ref(x,-37)-y),z);
> z:=If(d>38,z+Abs(Ref(x,-38)-y),z);
> z:=z/d;
> ZZI:=(x-y)/(z*0.015);
> ZZI
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "commanderco" 
<commander@xxxx> wrote:
> --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> 
> wrote:
> Ian,
> 
> Look here:
> 
> http://trader.online.pl/MSZ/e-w-CCI-Donald_Lambert.html
> 
> Preston
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "commanderco" 
> <commander@xxxx> wrote:
> Does anyone know the codes to CCI - standard 
> 
> I have applied CCI codes from the web and the CCI equis lines 
> up but I cannot locate the exact CCI - standard code that is used in
> MS.
> I am grateful for any assistance
> 
> Cheers
> Ian





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/