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

[EquisMetaStock Group] Re: Displaying Support/ Resistance in Metastock



PureBytes Links

Trading Reference Links

Possibly useful, from http://www.metastocktools.com/MACDH/Forex.htm :

MetaStock -> Tools -> Indicator Builder -> New
-> Copy and paste indicator below.

=================
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 }

{ User input }
pds:=Input("Use Highest/Lowest of past x days",1,260,1);

{ Message }
message:=Input("(Plot on intraday charts)",0,0,0);

{ Day's start }
dStart:=dStart:=DayOfMonth()<>Ref(DayOfMonth(),-1) OR Cum(1)=2;

{ Previous x Days' High }
Hd:=HighestSince(pds,dStart,H);
Hd:=ValueWhen(1,dStart,ValueWhen(2,1,Hd));
Hd:=ValueWhen(1,Hd>0,Hd);

{ Previous x Days' Low }
Ld:=LowestSince(pds,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<------------------------------------

Plot the indicator directly on to intraday charts, adjust pivot clors 
to suit, and save as a custom template. 


jose '-)
http://www.metastocktools.com




--- In equismetastock@xxxxxxxxxxxxxxx, "iAjay Inc." <iajayinc@xxxx> 
wrote:
>
> Hello
> I am a newbie in Metastoock, I have some formulas which calculates
> s1,s2,s3,s4, Pivot, r1,r2,r3,r4 (i.e supports and resistances) using
> previous days high, low and close.
> Now i want to use this formula in metastoch to display the Support
> and resistance of the open chart.
> how do i do this
> i tried exploration, but it displays only limited columns.
> i tried expert advisor, but i was unable to display varible
> 
> so please advice me what to do
> Regards
> Ajay








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/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/