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

Re: [Metastockusers] Support and resistance help needed



PureBytes Links

Trading Reference Links




Stephane
Try this link.
<A 
href="">http://trader.online.pl/MSZ/e-st-Automatic_Support_and_Resistance.html
DusantChief Architect<A 
href="">http://www.candlestrength.com/
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=Stephane.Goria@xxxxxxxxxx 
  href="">Stephane Goria 
  To: <A 
  title=Metastockusers@xxxxxxxxxxxxxxx 
  href="">Metastockusers@xxxxxxxxxxxxxxx 
  ; <A title=equismetastock@xxxxxxxxxxxxxxx 
  href="">equismetastock@xxxxxxxxxxxxxxx 
  
  Sent: Monday, May 24, 2004 2:13 PM
  Subject: [Metastockusers] Support and 
  resistance help needed
  
  
  <SPAN 
  >Hi,
  <SPAN 
  > 
  <SPAN lang=EN-GB 
  >Being a long time user of 
  Metastock Pro, i am still not satisfied with support and resistance indicators 
  supplied by Equis.
  <SPAN lang=EN-GB 
  >So, I thought to program a little 
  and finally wrote this little routine for finding eventual resistance (inverse 
  routine should be done to find supports).
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >My philosophy is that a support is 
  the extrem points the price have touched like a bouncing ball. So my work is 
  scanning for 10 levels above the actual price to find eventual resistance 
  since the beginning of the day.
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >My wonder is that this routine 
  needs to be ehanced by several points :
  <SPAN lang=EN-GB 
  > 
  <FONT 
  face=Arial size=2><SPAN lang=EN-GB 
  >-<FONT face="Times New Roman" 
  size=1><SPAN 
  >          
  <SPAN lang=EN-GB 
  >Actually, it displays only the 
  resistance wich shows the maximum bounce on price, because i was not bale to 
  program a “sort” routine.
  <FONT 
  face=Arial size=2><SPAN lang=EN-GB 
  >-<FONT face="Times New Roman" 
  size=1><SPAN 
  >          
  <SPAN lang=EN-GB 
  >Maybe it would be interested to 
  integrate the volume associated with these points.
  <FONT 
  face=Arial size=2><SPAN lang=EN-GB 
  >-<FONT face="Times New Roman" 
  size=1><SPAN 
  >          
  <SPAN lang=EN-GB 
  >A perfect work would be to abe 
  able to build a database but I guess it is not possible under Metastock 
  language avoiding to scan only 10 prices....
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >Here is the routine, if somebody 
  has ideas to ehance it...
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >Regards
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >Stephane
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >inc:=
  <SPAN lang=EN-GB 
  >1;{Inc is your minimal price 
  increment, it is set to 1 because i was working with this formula for DJ euros 
  Stoxx, it would be set to 0.25, for example, if used to SP500 future 
  etc...}
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >yy:=
  <SPAN lang=EN-GB 
  >BarsSince(ROC(DayOfMonth(),1,points)>=1)+1;
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >C1:=
  <SPAN lang=EN-GB 
  >LastValue(Ref(C,-1));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RS1:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*1)) OR 
  L=LastValue(C1-(inc*1)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RS2:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*2)) OR 
  L=LastValue(C1-(inc*2)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RS3:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*3)) OR 
  L=LastValue(C1-(inc*3)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RS4:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*4)) OR 
  L=LastValue(C1-(inc*4)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RS5:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*5)) OR 
  L=LastValue(C1-(inc*5)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RS6:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*6)) OR 
  L=LastValue(C1-(inc*6)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RS7:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*7)) OR 
  L=LastValue(C1-(inc*7)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RS8:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*8)) OR 
  L=LastValue(C1-(inc*8)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RS9:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*9)) OR 
  L=LastValue(C1-(inc*9)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >RSA:=
  <SPAN lang=EN-GB 
  >Sum(H=LastValue(C1-(inc*10)) OR 
  L=LastValue(C1-(inc*10)),LastValue(YY));
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >Resist 
  :=Max(Max(Max(Max(Max(Max(Max(Max(Max(RS1,RS2),RS3),RS4),RS5),RS6),RS7),RS8),RS9),RSA);
  <SPAN lang=EN-GB 
  > 
  <SPAN lang=EN-GB 
  >If(resist=RS1,LastValue(C1-(inc*1)),
  <SPAN lang=EN-GB 
  >If(resist=RS2,LastValue(C1-(inc*2)),
  <SPAN lang=EN-GB 
  >If(resist=RS3,LastValue(C1-(inc*3)),
  <SPAN lang=EN-GB 
  >If(resist=RS4,LastValue(C1-(inc*4)),
  <SPAN lang=EN-GB 
  >If(resist=RS5,LastValue(C1-(inc*5)),
  <SPAN lang=EN-GB 
  >If(resist=RS6,LastValue(C1-(inc*6)),
  <SPAN lang=EN-GB 
  >If(resist=RS7,LastValue(C1-(inc*7)),
  <SPAN lang=EN-GB 
  >If(resist=RS8,LastValue(C1-(inc*8)),
  <SPAN lang=EN-GB 
  >If(resist=RS9,LastValue(C1-(inc*9)),
  <SPAN lang=EN-GB 
  >LastValue(C1-(inc*10)))))))))))







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/Metastockusers/ 
To unsubscribe from this group, send an email to:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.