PureBytes Links
Trading Reference Links
|
Tks Jose...
This worked just fine (and took away some seconds in each time I loaded my
indicator).
I hope someone can crack the PREV from the second indicator :).
Andre
----Original Message Follows----
From: "Jose Silva" <josesilva22@xxxxxxxxx>
Reply-To: equismetastock@xxxxxxxxxxxxxxx
To: equismetastock@xxxxxxxxxxxxxxx
Subject: [EquisMetaStock Group] Re: Help with indicator
Date: Sun, 19 Mar 2006 02:58:57 -0000
The PREV-less indicator below plots identical signals to "Indicator 1
(Costarios)":
---8<---------------------------
{ http://www.metastocktools.com }
{ SMA/Alert periods }
pds1:=14;
pds2:=28;
{ Up/Down/Alert conditions }
up:=Mov(C,pds1,S)>Mov(C,pds2,S);
dw:=Mov(C,pds1,S)<Mov(C,pds2,S);
cond1:=Alert(up,pds1)>Alert(dw,pds1);
cond2:=Alert(up,pds2)>Alert(dw,pds2);
cond3:=Alert(up,pds1)<Alert(dw,pds1);
cond4:=Alert(up,pds2)<Alert(dw,pds2);
{ Trinary flag components }
one:=cond1*cond2;
neutral:=cond1+cond3 AND Alert((cond1+cond3)=0,2);
zero:=cond3*cond4;
{ Binaries }
init:=Cum(IsDefined(one+neutral+zero))=1;
bin1:=ValueWhen(1,one-neutral<>0 OR init,one);
bin2:=ValueWhen(1,zero-neutral<>0 OR init,zero);
{ Plot in own window }
(bin1-bin2+1)/2
---8<---------------------------
I'll leave the Count Back Line indicator 2 as an exercise for others.
;)
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "Andre Faustino"
<andre_faustino@xxx> wrote:
>
> After sending the email, I thought that that would be the best idea
> ...
>
> I'm sending a couple of indicators, since if you can solve the PREVs
> from these, I can adapt the solutions to the rest :).
>
> Indicator 1 (Costarios)
>
> var1 := Mov(C,14,S);
> var2 := Mov(C,28,S);
> var3 := 14;
> var4 := 28;
>
> If( Alert(var1 > var2, var3) > Alert(var1 < var2, var3),
> If(Alert(var1 > var2, var4) > Alert(var1 < var2, var4),1,0.5),
> If(Alert(var1 > var2, var3) < Alert(var1 < var2, var3),
> If(Alert(var1 > var2, var4) < Alert(var1 < var2, var4),0,0.5),PREV))
>
>
> Indicator 2 (Para baixo)
> LowDays := Input("Enter # days to cover last LOW for CBL calc'n:",
> 3, 55, 40);
>
> If(LOW > LLV(LOW, LowDays), {then ...} PREV, {previous CBLlo, else.
...}
> If(Ref(H,-2) > Ref(H,-1) AND Ref(H,-2) > H AND Ref(H,-1) > H, {then
...}
> Ref(H,-2), {2nd day back high,else...} If((Ref(H,-3)> Ref(H,-2) AND
> Ref(H,-3) > Ref(H,-1) AND Ref(H,-3) > H) AND (Ref(H,-2)> H OR Ref(H,
-1) >
> H), {then ... } Ref(H,-3), {3rd day back high,else...} If((Ref(H,-4)
>
> Ref(H,-3) AND Ref(H,-4) > Ref(H,-2) AND Ref(H,-4) > Ref(H,-1) AND
Ref(H,-4)
> > H) AND (Ref(H,-3)> H OR Ref(H,-2) > H OR Ref(H,-1) > H), {then...
}
> Ref(H,-4), {4th day back high,else...} If((Ref(H,-5)> Ref(H,-4) AND
> Ref(H,-5) > Ref(H,-3) AND Ref(H,-5) > Ref(H,-2) AND Ref(H,-5) >
Ref(H,-1)
> AND Ref(H,-5) > H) AND (Ref(H,-4)> H OR Ref(H,-3) > H OR Ref(H,-2) >
H OR
> Ref(H,-1) > H), {then ...} Ref(H,-5), {5th day back high,else...}
PREV
> )))));
>
> Tks a lot
>
> Andre
>
>
> ----Original Message Follows----
> From: "Jose Silva" <josesilva22@xxx>
> Reply-To: equismetastock@xxxxxxxxxxxxxxx
> To: equismetastock@xxxxxxxxxxxxxxx
> Subject: [EquisMetaStock Group] Re: Help with indicator
> Date: Fri, 17 Mar 2006 20:23:15 -0000
>
> Andre, it may be best if you could post one or two of your component
> indicators at a time, rather than overwhelming the usergroup with
> the whole lot all at once.
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Andre Faustino"
> <andre_faustino@> wrote:
>
> Hi...
>
> I have an indicator that I like to use on my daily charts but, since
> it uses several PREV functions, it takes 1/1.5 minutes to load in
> each chart (and if I make a change or a refresh of the price, it
> also takes a minute to input the new values).
>
> I was wondering if I can put the set of indicators here (this
> indicator is composed by 10 diferent indicators) so that someone can
> take a look at it and make it "functional".
>
> Tks
> Andre
------------------------ 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/
|