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

[Metastockusers] Re: Weekly Double Stoch on daily charts



PureBytes Links

Trading Reference Links

Hello le corbeaux ,
                   Is this what you were referring too?        

{true weekly Exponential Moving Average v2.1}
{plot on daily charts}
{needs external formula "Calendar Week counter"}
{plot is independent of any missing chart data}
{©Copyright 2003 Jose Silva}
{josesilva22@xxxxxxxxx}

pds:=Input("weekly EMA periods",1,520,4); 
x:=Input("use Open=1 High=2 Low=3 Close=4 Volume=5 P=6",1,6,4);
shift:=1+Input("EMA vertical shift %",
 -100,100,0)/100;
plot:=Input("EMA=1, Crossover signals=2",1,2,1);

x:=If(x=1,O,If(x=2,H,If(x=3,L,If(x=5,V,If(x=6,P,C)))));
y:=Fml("Calendar Week counter");
NuWk:=y>Ref(y,-1);
pds:=If(Cum(NuWk)<pds,Cum(NuWk),pds);
WkCl:=ValueWhen(1,NuWk,x);
WEma:=ValueWhen(1,NuWk,PREV)
*(1-2/(pds+1))+WkCl*2/(pds+1);
WEma:=WEma*shift;
signals:=Cross(x,WEma)+Cross(WEma,x)*-1;

If(plot=2,signals,WEma)

---8<---------------------------


=====================
Calendar Week counter
=====================

---8<---------------------------

{Week counter from 1/1/0001, Gregorian calendar}
{©Copyright 2002 Jose Silva}
{josesilva22@xxxxxxxxx}

limit:=Input("count calendar weeks from year",1,2100,1980);

limit:=If(limit>LastValue(Year()),
 LastValue(Year()),limit);
LimLeap:=Frac(limit/4)=0 AND Frac(limit/100)<>0
 OR Frac(limit/400)=0;
NoCount:=limit*365+Int(limit/4)
 -Int(limit/100)+Int(limit/400)-LimLeap;
leap:=Frac(Year()/4)=0 AND Frac(Year()/100)<>0
 OR Frac(Year()/400)=0;
y:=Year()*365+Int(Year()/4)
 -Int(Year()/100)+Int(Year()/400)-NoCount;
m:=
 If(Month()=2,31-leap,
 If(Month()=3,59,
 If(Month()=4,90,
 If(Month()=5,120,
 If(Month()=6,151,
 If(Month()=7,181,
 If(Month()=8,212,
 If(Month()=9,243,
 If(Month()=10,273,
 If(Month()=11,304,
 If(Month()=12,334,
 -leap)))))))))));
DayNr:=y+m+DayOfMonth();
WkCount:=Int((DayNr-1)/7)+(Year()>=limit);

WkCount

Thanks
Michael B




--- In Metastockusers@xxxxxxxxxxxxxxx, le corbeaux masque 
<lecorbeauxmasque7@xxxx> wrote:
> no pierre there's a difference
> (weekly data is smooother)
> searche the group wih for the "daily exploration on
> weekly chat" post by roy
> 
> the queston comes pretty regularly so there must be
> other posts in the list
> 
> regards,
> 
> 
> --- Pierre Tremblay <pt2000@xxxx> wrote:
> > Maybe if you change every 10 by 50 in the formulas.
> > 
> > Pierre
> > 
> > mdtmn a écrit:
> > 
> > >Hi All,
> > >The Double Stochastic 
> > >"Double Stochastic - 10 Period II
> > >{demominators defined to eliminate divide by zero
> > errors}
> > >
> > >denom1:= If(HHV(H,10)-LLV(L,10)>0,
> > HHV(H,10)-LLV(L,10), 1);
> > >P1:= Mov(((C-LLV(L,10))/ denom1)*100,3,E);
> > >denom2 := If(HHV(P1,10)-LLV(P1,10)>0,
> > HHV(P1,10)-LLV(P1,10), 1);
> > >Mov(((P1-LLV(P1,10))/denom2)*100,3,E)"
> > >By Jim
> > >Atlanta GA from Trader.online.PL 
> > >
> > >OR
> > >
> > >
> > >H1:=70;
> > >H2:=40;
> > >H1;
> > >H2;
> >
> >P1:=Mov(((C-LLV(L,10))/(HHV(H,10)-LLV(L,10)))*100,3,E);
> >
> >Mov(((P1-LLV(P1,10))/(HHV(P1,10)-LLV(P1,10)))*100,3,E)
> > >
> > >The above having some horizontal reference lines
> > >
> > >Is it possible to plot the weekly indicator
> > >on a daily chart ?
> > >
> > >Thanks
> > >Michael B
> > >mdtmn@xxxx
> > >
> > >
> > >
> > >
> > >
> > >
> > >To unsubscribe from this group, send an email to:
> > >Metastockusers-unsubscribe@xxxxxxxxxxx
> > >
> > > 
> > >
> > >Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/ 
> > >
> > >
> > >
> > >
> > >  
> > >
> > 
> > 
> > 
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
ReplayTV: Control live television
Special Sale: 50% off ReplayTV
CNet Ranked #1 over Tivo!
http://us.click.yahoo.com/aUMW7B/A6qGAA/ySSFAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

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