PureBytes Links
Trading Reference Links
|
If you use a number of different period values for your formulas then the
only way I can think of is to create the required number of copies giving
each one a name that ends with the periods value, change the default values,
then use the Fml() function to call the appropriate copy of 'ADX Raw' for
your exploration indicator or system test.
{example}
Fml("ADX Raw 11")>25 AND Fml("ADX Raw 14")>21 AND Fml("ADX Raw 18")>18;
Roy
----- Original Message -----
From: "hoho10015" <hoho10015@xxxxxxxxx>
To: <Metastockusers@xxxxxxxxxxxxxxx>
Sent: Saturday, March 08, 2003 9:03 AM
Subject: [Metastockusers] Re: indicators in metastock
> Thanks for all your help. That formula works great. Is there any way
> to use the ADX(RAW) as a function. Like the original ADX() that
> comes with MS.
>
>
>
> --- In Metastockusers@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx>
> wrote:
> > {MetaStock code written by Equis and published in the Oct99 TASC}
> > {ADX Raw}
> > Periods:= Input("Enter time periods",1,100,14);
> > PlusDM:= If(HIGH>Ref(HIGH,-1) AND
> > LOW>=Ref(LOW,-1), HIGH-Ref(HIGH,-1),
> > If(HIGH>Ref(HIGH,-1) AND LOW<Ref(LOW,-1)
> > AND HIGH-Ref(HIGH,-1)>Ref(LOW,-1)-LOW,
> > HIGH-Ref(HIGH,-1), 0));
> > DIPlus:= 100 * Wilders(PlusDM,Periods) /
> > ATR(Periods);
> > MinusDM:= If(LOW<Ref(LOW,-1) AND
> > HIGH<=Ref(HIGH,-1), Ref(LOW,-1)-LOW,
> > If(HIGH>Ref(HIGH,-1) AND LOW<Ref(LOW,-1)
> > AND HIGH-Ref(HIGH,-1)<Ref(LOW,-1)-LOW,
> > Ref(LOW,-1)-LOW, 0));
> > DIMinus:= 100 * Wilders(MinusDM,Periods) /
> > ATR(Periods);
> > DIDif:= Abs(DIPlus - DIMinus);
> > DISum:= DIPlus + DIMinus;
> > ADXRaw:= 100 * Wilders(DIDif/DISum, Periods);
> > ADXRaw;
> > {end of indicator}
> >
> > Change "ADXRaw" to "Prec(ADXRaw,2)" to get only two decomal places.
> >
> > Roy
> >
> > ----- Original Message -----
> > From: "hoho10015" <hoho10015@xxxx>
> > To: <DEFANGED_Metastockusers@xxxxxxxxxxxxxxx>
> > Sent: Saturday, March 08, 2003 5:20 AM
> > Subject: [Metastockusers] indicators in metastock
> >
> >
> > > I am a new user of metastock 7.22. I notice that the volume and
> adx
> > > indicators are all rounded when they are calculated. Is there any
> > > way to have the program Calculate the Values of the indicators
> with
> > > 2 decimals? Any help would be appreciated.
> > >
> > >
> > > 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 ---------------------~-->
New Yahoo! Mail Plus. More flexibility. More control. More power.
Get POP access, more storage, more filters, and more.
http://us.click.yahoo.com/Hcb0iA/P.iFAA/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/
|