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

Re: [EquisMetaStock Group] Monthly Vs Weekly



PureBytes Links

Trading Reference Links

Hi Metstocktrader


You must construct weekly pivot points (indicators) based on EOD data. Try defining your pivot points based on the outputs from this Weekly OHLC indicator. Note that it also uses Jose Silva's "Calendar Week counter" and this can be obtained from
http://www.metastocktools.com/#metastock . This formula is necessary for accuracy where there are data gaps longer than 3 days, but a simpler timing mechanism is OK for data without such gaps. I don't have time right now to construct a "dumbed down" version right now but you should be able to find ideas for doing that from both Jose's and my websites. Typically it takes a couple of weeks of EOD data to get this type of indicator up to speed, and obviously longer for weekly SMA's etc, so you would need to include a little more data in a system test. It's always a good idea to use a date filter to define the test period rather than setting dates in the System Tester anyway.

Roy
www.metastocktips.co.nz


  {Weekly OHLC}
  {© 2005 Roy Larsen, rlarsen@xxxxxxxxxxxxxx}
  {Use with Jose Silva's "Calendar Week counter" on EOD charts}

  {User settings}
Q:=Input("Weekly OHLC 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}
I:=Fml("Calendar Week counter");
A:=DayOfWeek();
G:=LastValue(Highest(Sum(A=5,5))=5);
I:=I-ValueWhen(2-G,1,I);
M:=G+I;
F:=G+(M=0 AND PeakBars(1,A,1)=0);
A:=LastValue(Cum(1)-1)=Cum(1);
B:=Alert(A,2)*(A=0);
J:=If(F,1,If(Alert(F,2)=0 AND M,2,0));
J:=If(A+LastValue(J)>2 OR B+(Q=1)=2,1,J);
J:=If(G,1,If(Q=2 OR Cum(J)<=1,M*2,J));

  {Prices for weekly frames}
Ow:=ValueWhen(1,M,O);
Ow:=ValueWhen(1,J,If(J=1,Ow,ValueWhen(2-G,1,Ow)));
Hw:=HighestSince(1,M,H);
Hw:=ValueWhen(1,J,If(J=1,Hw,ValueWhen(2-G,1,Hw)));
Lw:=LowestSince(1,M,L);
Lw:=ValueWhen(1,J,If(J=1,Lw,ValueWhen(2-G,1,Lw)));
K:=ValueWhen(1,J,If(J=1,C,ValueWhen(2-G,1,C)));
Ow:=ValueWhen(1,Ow>0,Ow);
Hw:=ValueWhen(1,Hw>0,Hw);
Lw:=ValueWhen(1,Lw>0,Lw);

  {Plot results}
Ow; Hw; Lw; K; {Weekly OHLC}
 
----- Original Message ----- 
From: metstocktrader 
To: equismetastock@xxxxxxxxxxxxxxx 
Sent: Monday, April 24, 2006 8:09 AM
Subject: [EquisMetaStock Group] Monthly Vs Weekly


Can anyone tell me how to get daily and weekly piviot points to be
identified in the system test?  I'm having problems getting mutliple
time frames to run in the same system test.  How does one access
weekly values and daily values on the same backtest run?








SPONSORED LINKS Business finance course  Business to business finance  Small business finance  
      Business finance consultant  Business finance magazine  Business finance schools  


--------------------------------------------------------------------------------
YAHOO! GROUPS LINKS 

  a..  Visit your group "equismetastock" on the web.
    
  b..  To unsubscribe from this group, send an email to:
   equismetastock-unsubscribe@xxxxxxxxxxxxxxx
    
  c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


--------------------------------------------------------------------------------



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



------------------------ Yahoo! Groups Sponsor --------------------~--> 
GFT Forex Trading Accounts As low as $250 with up to 400:1 Leverage. Free Demo.
http://us.click.yahoo.com/lpv1TA/jlQNAA/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/