CDP indicator

 

Could somebody help to write the following indicator?

Input

PreviousHigh(PH),PreviousLow(PL),PreviousClose(PC),

Output:

CDP=(PH+PL+PC)/3

AnalysisHigh1=CDP+(PH-PL)

AnalysisHigh2=2*CDP-PL

AnalysisLow1=CDP-(PH-PL)

AnalysisLow2=2*CDP-PH

Mark AH1,AH2,AL1,AL2 in chart for reference.

Thanks in advance

 

- i wrote it on mq4 mabye this will help u.

When u load that indicator to window u must refresh - i dont know why it is not drawing when u load that indicator

So u have to refresh manualy for the first time - rest will be automatic.

 
bigzz:
Could somebody help to write the following indicator?

Input

PreviousHigh(PH),PreviousLow(PL),PreviousClose(PC),

Output:

CDP=(PH+PL+PC)/3

AnalysisHigh1=CDP+(PH-PL)

AnalysisHigh2=2*CDP-PL

AnalysisLow1=CDP-(PH-PL)

AnalysisLow2=2*CDP-PH

Mark AH1,AH2,AL1,AL2 in chart for reference.

Thanks in advance

Hi, if I'm not mistaken CDP formula is a Pivot formula. AH1 is Resistant2, AH2 is Resistant1, AL1 is Support2 and AL2 is Support1. The custom indicator for Pivot is called Pivot.mq4 . Just my two cents

 

Thanks folks. I think it is pivot.

 

Right!

I knewed that this formula looks familiar !