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 !