## Accumulation - Distribution

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

### Accumulation - Distribution

Hello ! I want two indicators which i can plot and use in the same window.One for accumulation and one for distribution of the price.
As i write it in Metastock Formula Language (MFL) i write it like this :

for accumulation

Abs[IF(OPTION 1 > REF ( OPTION 1,-1),then OPTION 2,else -OPTION 3)+PREVIOUS]

for distribution

Abs[IF(OPTION 1 > REF ( OPTION 1,-1),then OPTION 2,else -OPTION 3)-PREVIOUS]

Abs = Absolute value

OPTION 1 = High or low or Close or Open

OPTION 2 = 0,0001 till 1000

OPTION 3 = -0,0001 till -1000

REF = REFERENCE (to the previous value)

Previous = previous period value

as an example for Accumulation

Abs[if(C>Ref(C,-1),1,-1)+Previous)

as an example for Distribution

Abs[if(H>Ref(H,-1),3.4,-2)-Previous)

I want to use it in every time scale and please add an alert when the accumulation function touch the distribution function

in graph it's like this :

Thank you !
Attachments
mangonel

Posts: 8
Joined: Thu Mar 17, 2016 4:16 pm

### Re: Accumulation - Distribution

Apprentice
FXCodeBase: Confirmed User

Posts: 24461
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Accumulation - Distribution

It's possible to get MT4 version?
Tomoso

Posts: 27
Joined: Mon Mar 25, 2019 11:36 am

### Re: Accumulation - Distribution

Apprentice
FXCodeBase: Confirmed User

Posts: 24461
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Accumulation - Distribution

Thank you Apprentice,thank you very much.Is it possible to create it as a strategy ? with the options of all time frames - bid/ask and H-L-C-O ?
mangonel

Posts: 8
Joined: Thu Mar 17, 2016 4:16 pm

### Re: Accumulation - Distribution

Apprentice
FXCodeBase: Confirmed User

Posts: 24461
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia