PureBytes Links
Trading Reference Links
|
Hi smbe,
You really didn't specify what you wanted to do with this indicator.
I'm guessing that you wanted to be able to change the lookback
periods of the moving averages by way of an input. If so here is your
answer:
{Volatility Exits}
Xpds:=Input("X periods",1,200,10);
Ypds:=Input("Y periods",1,200,11);
Dir:= Mov(C, Xpds, E) - Mov(C, Ypds, E);
Dir1:= Ref(Mov(C, Xpds, E) - Mov(C, Ypds, E),-1);
s2:=HHV(H,5) - 2*ATR(10);
s21:=Ref((HHV(H,5) - 2*ATR(10)),-1);
ss2:=LLV(L,5) + 2*ATR(10);
ss21:=Ref((LLV(L,5) + 2*ATR(10)),-1);
If( dir>=0, If(dir1<0,s2,Max(s2,s21)),
If(dir1>=0,ss2,Min(ss2,ss21)));
s4:=HHV(H,5) - 4*ATR(10);
s41:=Ref(HHV(H,5) - 4*ATR(10),-1);
ss4:=LLV(L,5) + 4*ATR(10);
ss41:=Ref(LLV(L,5) + 4*ATR(10),-1);
If( dir>=0, If(dir1<0,s4,Max(s4,s41)),
If(dir1>=0,ss4,Min(ss4,ss41)));
{end}
Hope this helps,
Preston
--- In equismetastock@xxxxxxxxxxxxxxx, smbe666 <no_reply@xxx> wrote:
>
> I NEED HELP TO MAKE A PARAMETERS TO THIS INDICATOR :
>
> Volatility Exits
>
> Dir:= Mov(C, 10, E) - Mov(C, 11, E);
> Dir1:= Ref(Mov(C, 10, E) - Mov(C, 11, E),-1);
>
> s2:=HHV(H, 5) - 2*ATR(10);
> s21:=Ref((HHV(H, 5) - 2*ATR(10)),-1);
> ss2:=LLV(L, 5) + 2*ATR(10);
> ss21:=Ref((LLV(L, 5) + 2*ATR(10)),-1);
>
> If( dir>=0, If(dir1<0,s2,Max(s2,s21)), If(dir1>=0,ss2,Min
> (ss2,ss21)));
>
> s4:=HHV(H, 5) - 4*ATR(10);
> s41:=Ref(HHV(H, 5) - 4*ATR(10),-1);
> ss4:=LLV(L, 5) + 4*ATR(10);
> ss41:=Ref(LLV(L, 5) + 4*ATR(10),-1);
>
> If( dir>=0, If(dir1<0,s4,Max(s4,s41)), If(dir1>=0,ss4,Min
> (ss4,ss41)));
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|