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

Re: [amibroker] PDI-MDI



PureBytes Links

Trading Reference Links

 

I writte this code for PDI-MDI but the result isn't the same like PDI-MDI. What it's wrong?

n=14;

TR=Max(Max(H-L,H-Ref(C,-1)),C-Ref(L,-1));

DM1=IIf(C>Ref(C,-1),H-Ref(H,-1),0);

DM2=IIf(C<Ref(C,-1),Ref(L,-1)-L,0);

DMn1=EMA(DM1,n);

DMn2=EMA(DM2,n);

DI1=DMn1/TR;

DI2=DMn2/TR;

Plot(DI1,"DI+"+n,colorGreen);

Plot(DI2,"DI-"+n,colorRed);



Graham <kavemanperth@xxxxxxxxx> wrote:
One of the hardest things for writing code to copy an indicator is
finding the accurate and detailed description of the indicator in
order to recreate it.
Do you have this?

On 7/25/05, amon_gizeh <amon_gizeh@xxxxxxxxx> wrote:
> Hi!
>
> I want to replace H,L,C in PDI, DMI formula but I haven't the code.
> How can I do that? or is there somebody who writted the code for PDI
> and MDI for Amibroker?
>
> Thanks.
>
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


Start your day with Yahoo! - make it your home page

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software Stock investment software


YAHOO! GROUPS LINKS