PureBytes Links
Trading Reference Links
|
Just a note - also mentioned in my original reply to this message,
conditions d and e can be combined into only e, as e implies d.
Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com
--- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva"
<josesilva22@xxxx> wrote:
>
> Try this MS code:
>
> ---8<------------------
>
> { Basic peak definition }
> pk:=Ref(C,-1)=HHV(C,3);
>
> { Peak's Close }
> pkVal:=ValueWhen(1,pk,Ref(C,-1));
>
> { 1. Today's Close is greater than last peak }
> cond1:=C>pkVal;
>
> { 2. Previous Close was less than last peak }
> cond2:=Ref(C,-1)<pkVal;
>
> { 3. Last peak is at least 5 periods ago }
> cond3:=BarsSince(pk)>=5;
>
> { 4. Today's Close is 20 period high }
> cond4:=C=HHV(C,20);
>
> { 5. Today's Close is also 40 period high }
> cond5:=C=HHV(C,40);
>
> { Setup conditions 1~5 }
> setup:=
> cond1 AND cond2 AND cond3 AND cond4 AND cond5;
>
> { Plot setup signals in own window }
> setup
>
> ---8<------------------
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, Muhammad Tahir
<mtbashir1@xxxx>
> wrote:
> >
> > Hi,
> >
> > I am looking for this buy setup, can anyone help me
> > write this setup,
> > a. Today's Close is greater than last peak,
> > b. Previous Close was less than last Peak,
> > c. Last Peak is at least 5 Periods ago,
> > d. Today's close is 20 period High and
> > e. Today's close is also 40 period High.
> >
> > Thanks and regards.
> >
> > TAHIR
>
------------------------ 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/
|