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

Re: [Metastockusers] Re: Variable ATR



PureBytes Links

Trading Reference Links

sorry this might work better


def:=(Mo(Data Array, Periods)-10)/40;
 multi:=if(Mo(Data Array, Periods)>10 and Mo(Data Array,
Periods)<50,if(def=0,2*ATR(10),def*5*ATR(10),0);
Stop:=HHV(H - multi,10);
 Stop;

 Juan

----- Original Message -----
From: "emarco" <emarco@xxxxxxxxxxxxxxx>
To: <Metastockusers@xxxxxxxxxxxxxxx>
Sent: Friday, March 21, 2003 5:44 PM
Subject: Re: [Metastockusers] Re: Variable ATR


> Jim,
>
> I did not understood your question correctly. I apologize.
> Here's what i think you are looking for.
> Let me know if I am right and if it works...
>
>
> def:=(Mo(Data Array, Periods)-10)/40;
> calc:=if(Mo(Data Array, Periods)>10 and Mo(Data Array,
> Periods)<50,if(def=0,multi=2*ATR(10),multi=def*5*ATR(10),0);
> Stop:=HHV(H - multi,10);
> Stop;
>
> Juan
>
> ----- Original Message -----
> From: "glennokb" <glennokb@xxxxxxxxxxxx>
> To: <Metastockusers@xxxxxxxxxxxxxxx>
> Sent: Friday, March 21, 2003 5:21 PM
> Subject: [Metastockusers] Re: Variable ATR
>
>
> > Juan,
> > Thanks.
> >
> > Looking at the code it's not exactly what I was thinking of. Your code
has
> > the momentum between 10 and 50 - the multi is 2
> > ...and the momentum above 50 - the multi is 5.
> >
> > I was trying to get the momentum between 10 and 50 have the multi
> > start at 2 when momentum is 10 and end up at 5 when the momentum
> > is 50. ie the multi spread evenly between the momentum values.
> >
> > Also, say the momentum is halfway between those two momentum
> > values at 30 ie: ((10-50)/2)+10 then I'd like the multi at the midpoint
of
> > 2 and 5 at 3.5  ie:((2-5)/2)+2.
> >
> > I hope this make sense :-)
> >
> > Thanks again Juan.
> >
> > Jim
> >
> >
> > --- In Metastockusers@xxxxxxxxxxxxxxx, "emarco" <emarco@xxxx>
> > wrote:
> > > multi:=if( Mo(Data Array, Periods) >10 and Mo(Data Array,
> > > Periods)<50,2,if( Mo(Data Array, Periods) >50,5,0));
> > > HHV(H - multi*ATR(10),10)
> > >
> > >
> > > Jim the problem I think will be to HHV to accept a variable (multi) as
> > > input.
> > >
> > > Try it and let me know
> > >
> > > Juan
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "jimbeauman2000" <jimbeauman2000@xxxx>
> > > To: <Metastockusers@xxxxxxxxxxxxxxx>
> > > Sent: Friday, March 21, 2003 2:32 AM
> > > Subject: [Metastockusers] Variable ATR
> > >
> > >
> > > > Hi,
> > > >
> > > > I would like to create a variable ATR stop using momentum but not
> > too
> > > > sure where to start.
> > > >
> > > > For example, if momentum is say 10 then the multiplier of the ATR
> > stop
> > > > I'd like set at 2 and if the mometum is 50 the multiplier of the ATR
> > stop
> > > > set at 5.
> > > >
> > > > Varying the muliplier between these two values ie if mom = 10 to
> > 50 the
> > > > ATR varies between 2 to 5.
> > > >
> > > > multi:=??
> > > > >
> > > > Thank You
> > > >
> > > > Jim
> >
> >
> >
> > To unsubscribe from this group, send an email to:
> > Metastockusers-unsubscribe@xxxxxxxxxxx
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
>
> To unsubscribe from this group, send an email to:
> Metastockusers-unsubscribe@xxxxxxxxxxx
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/46VHAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/