PureBytes Links
Trading Reference Links
|
Jose..
Thanks again i don't know what to say..i've already done it and it's working great..there is some parameters though i don't know what they do but is it possible if i change it to give the pivot for the week for instance so that i could use it on daily charts..thanks in advance this group is the best
Regards,
Tamer
Jose Silva <josesilva22@xxxxxxxxx> wrote:
Ok Tamer, try this:
( code from http://metastocktools.com/MACDH/Forex.htm )
MetaStock -> Tools -> Indicator Builder -> New -> Copy and paste two indicators below.
=============== Calendar Day counter =============== ---8<---------------------------
{Day counter from 1/1/0001, Gregorian calendar} {Count is independent of any missing chart data}
{ ©Copyright 2003~2005 Jose Silva The grant of this license is for personal use only - no resale or repackaging allowed. All code remains the property of Jose Silva. http://metastocktools.com }
limit:=Input("count calendar days from year",1,2100,2000);
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();
DayNr
---8<---------------------------
=========== Pivots - intraday =========== ---8<---------------------------
{ Plots daily pivot values on intraday charts } { Apply only to weekday data: MetaStock -> Tools -> Options -> Chart Options -> untick "Ignore weekend data" } { With thanks to Kevin Barry for pivot logic.}
{ ©Copyright 2004~2005 Jose Silva The grant of
this license is for personal use only - no resale or repackaging allowed. All code remains the property of Jose Silva. http://metastocktools.com }
{ Message } message:=Input("(Plot on intraday charts)",0,0,0);
{ Day's true start } dCount:=Fml("Calendar Day counter"); dStart:=dCount>ValueWhen(2,1,dCount);
{ Previous Day's High } Hd:=HighestSince(1,dStart,H); Hd:=ValueWhen(1,dStart,ValueWhen(2,1,Hd)); Hd:=ValueWhen(1,Hd>0,Hd);
{ Previous Day's Low } Ld:=LowestSince(1,dStart,L); Ld:=ValueWhen(1,dStart,ValueWhen(2,1,Ld)); Ld:=ValueWhen(1,Ld>0,Ld);
{ Previous Day's Close } Cd:=ValueWhen(1,dStart,ValueWhen(2,1,C)); Cd:=ValueWhen(1,Cd>0,Cd);
{ Pivot } Pivot:=(Hd+Ld+Cd)/3; {Plot in Green bold}
{ Support } S1:=2*Pivot-Hd; {Blue} S2:=Pivot-(Hd-Ld); {Red} S3:=2*Pivot-(2*Hd-Ld); {dark Green}
{ Resistance } R1:=2*Pivot-Ld;
{Blue} R2:=Pivot+(Hd-Ld); {Red} R3:=2*Pivot+(Hd-2*Ld); {dark Green}
{All mid-pivot levels light Grey} M0:=(S2+S3)/2; M1:=(S1+S2)/2; M2:=(Pivot+S1)/2; M3:=(R1+Pivot)/2; M4:=(R2+R1)/2; M5:=(R3+R2)/2;
{ Plot on intraday price charts } R3;M5;R2;M4;R1;M3; Pivot; M2;S1;M1;S2;M0;S3
---8<---------------------------
jose '-) http://metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, Tamer Ibrahem <t_gaweya2000@xxxx> wrote: > Jose and Roy > > Thank you very much for your replies but i got lost on all that links..so i have to ask you is that indicator for free or not and if it is free would you be so kind to attach it or tell me what to do exactly caz i'm all new to this..thanks in advance for your help guys > > Regards, > Tamer > > Jose Silva <josesilva22@xxxx>
wrote: >> Jose Silva also has a similar indicator somewhere on his website. > > This intraday pivot indicator was also originally coded for Kevin: > http://metastocktools.com/MACDH/Forex.htm > > > jose '-) > http://metastocktools.com > > > > --- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> > wrote: > Hi Tamer > > I created a "Daily Pivot Levels" formula to accompany Kevin Barry's FX > trading article in the August issue of MetaStock Tips & Tools. > It creates 13 plots in all, but you could easily remove those that are > not required. > The formula allows you to adapt the open/close point on 24 hour > data, and the data is updated on the last bar of a 24-hour period > rather than the first bar of the next
day. > > Jose Silva also has a similar indicator somewhere on his website. > Sorry but I don't have the link to hand. > > Two or three "pivot point" formulas were posted in one of the groups > within the last 10 days, and you should be able to find those easily > enough in the archives. > > If you write to me at roy@xxxx I'll send you my Daily Pivot Levels > indicator for MetaStock intraday charts. You'd need to subscribe to > MSTT to get Kevin's full article though. > > > Kind regards > > Roy Larsen > www.metastocktips.co.nz > > > > ----- Original Message ----- > From: Tamer Ibrahem > To: equismetastock@xxxxxxxxxxxxxxx > Sent: Monday, August 15, 2005 5:04 AM > Subject: [EquisMetaStock Group] Historical Pivots > > > Hi guys..I was wondering if there is a code for the daily pivots which > show
me all the previous ones and not only the present day so that i > can test it like the one in the attached pic..thanks in advance and i > hope that you can help me. > > Regards, > Tamer
Start your day with Yahoo! - make it your home page
YAHOO! GROUPS LINKS
|