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

Re: [EquisMetaStock Group] Weekly overlay on a daily chart



PureBytes Links

Trading Reference Links

Marty


> Is there a way to have this code open with weekly data. My other indicators rely on it.
> ((Security("XIU.TO",C)))

Save the following "Weekly CLOSE Basic" as an indicator in the Indicator Builder and change your Security() function expression to:

Security("XIU.TO",Fml("Weekly CLOSE Basic"))

In the event that your data has missing bars you might need an indicator that incorporates Jose Silva's "Calendar Week counter" (instead of the basic version shown here). 


Regards

Roy
www.metastocktips.co.nz


{Weekly CLOSE Basic}
{© 2005- 006 Roy Larsen} {www.metastocktips.co.nz}
{Use on EOD charts}

  {User settings}
Q:=Input("Weekly Mode, 0=Static 1=Dynamic 2=Delayed",0,2,1);
  {0, update at last bar of current frame}
  {1, update on each new bar}
  {2, update on first bar of new frame}

  {Timing module for weekly frames}
D:=DayOfWeek();
G:=LastValue(Highest(Sum(D=5,5))=5);
M:=G OR D<=ValueWhen(2,1,D);
F:=G OR PeakBars(1,Zig(D,1,$),1)=0;
A:=LastValue(Cum(1)-1)=Cum(1);
B:=ValueWhen(2,1,A);
J:=F OR B*(D=5); J:=If(B+(Q=1)=2,1,J);
J:=If(G,1,If(Q=2 OR Cum(J)<=1,M*2,J));

  {Price for weekly frames}
K:=ValueWhen(1,J,If(J=1,C,ValueWhen(2-G,1,C)));
  {Plot results}
K; {Weekly CLOSE}
 
----- Original Message ----- 
From: Marty 
To: equismetastock@xxxxxxxxxxxxxxx 
Sent: Monday, December 04, 2006 10:10 AM
Subject: [EquisMetaStock Group] Weekly overlay on a daily chart


Is there a way to have this code open with weekly data. My 
other indicators rely on it.

((Security("XIU.TO",C)))



 

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

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

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