Page 1 of 1

Accumulation - Distribution

PostPosted: Tue Jun 11, 2019 7:48 am
by mangonel
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 !

Re: Accumulation - Distribution

PostPosted: Wed Jun 12, 2019 7:21 am
by Apprentice

Re: Accumulation - Distribution

PostPosted: Wed Jun 12, 2019 4:06 pm
by Tomoso
It's possible to get MT4 version?

Re: Accumulation - Distribution

PostPosted: Thu Jun 13, 2019 1:58 pm
by Apprentice

Re: Accumulation - Distribution

PostPosted: Thu Jun 20, 2019 9:58 pm
by mangonel
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 ?

Re: Accumulation - Distribution

PostPosted: Sat Jun 22, 2019 7:28 am
by Apprentice