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

Re: [EquisMetaStock Group] indiacator help



PureBytes Links

Trading Reference Links

Hi Darsh


This indicator should do the job. You'll need the Forum.DLL file which is freely available from a number of sources. See the files section of this group under the "Equis Forum DLL" folder.


Regards

Roy
www.metastocktips.co.nz


 {Weekly EMA - Close} 
 {This indicator uses the Equis Forum DLL}
 {Roy Larsen, 2004-2007}

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

 {Weekly frame timing}
 {* Day counter from metastock@xxxxxxxxxxxxx}
M:=Month();A:=Int((14-M)/12);D:=DayOfMonth();
Y:=Year()+4800-A;B:=M+(12*A)-3;
M:=D+Int((2+153*B)/5)+(365*Y)+Int(Y/4)-Int(Y/100)+Int(Y/400)-32045;
 {*}I:=Int(M/7);
I:=I-ValueWhen(2,1,I);
G:=LastValue(Lowest(Sum(I>0,5))=5);
M:=G+I;F:=G+(M=0)*ExtFml("Forum.Sum",Ref(I,1),1);
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));

 {Weekly CLOSE}
K:=ValueWhen(1,J,If(J=1,C,ValueWhen(2-G,1,C)));

 {Calculate and plot weekly EMA of CLOSE }
N:=2/(1+N);J:=J>0;
If(Cum(G+J>0)<3-G,K,PREV*If(J,1-N,1)+J*K*N);


  ----- Original Message ----- 
  From: Darshit 
  To: equismetastock@xxxxxxxxxxxxxxx 
  Sent: Saturday, October 20, 2007 12:03 AM
  Subject: [EquisMetaStock Group] indiacator help


  Hi,..
  I'm using metastock 8. 
  I need help regarding follow..

  Is there any way to plot a weekly indicator on daily charts? For e.g.
  If EMA on weekly chart is 4315 for NIFTY on 10/12/2007. Is it
  possible to plot the line of 4315 on daily chart of the nifty for next
  week?

  Please help me out if there is any way...

  Thanx in advance...
  Darsh



   

  __________ NOD32 2603 (20071019) Information __________

  This message was checked by NOD32 antivirus system.
  http://www.eset.com


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