duncheon Channel

 

Hello!!

I am a newbie in this forum!

I have a formula in Amibroker!

Please help me to translate to meta trader!

Thanks!!


This formula in Amibroker is:

//duncheonChannel


A=Ref(HHV(H,20),-1);
B=Ref(LLV(L,20),-1);
DC=MA((HHV(H,20)+LLV(L,20))/2,20);

Plot(A,"UPPER",colorBrightGreen,styleDashed);
Plot(B,"BOTTOM",colorBrightGreen,styleDashed);
Plot(DC,"MID",colorBrightGreen,styleDashed);