Projection Oscillator

 

hello traders,

this is may first posting. i find the projection oscilattor works very well. so i wanna use it for metatrader4.

but i already don´t can coding.

here is a easy language code for the oscilaltor:

it would be nice, if some can manage it in MT4.

Thank you for all!

Inputs:

Length - number of bars to calculate Projection Oscillator
Smooth - number of bars to calculate Smoothed Projection Oscillator

EasyLanguage Code:

INPUTS: LENGTH(14), SMOOTH(3);

VARS: SL(0), SH(0), PL(0), PU(0), PO(0), SLOWPO(0);

SL=LINEARREGSLOPE(LOW,LENGTH);
SH=LINEARREGSLOPE(HIGH,LENGTH);

FOR VALUE1=1 TO LENGTH BEGIN
VALUE2=LOW[VALUE1-1] +(SL*VALUE1-1);
VALUE3=HIGH[VALUE1-1]+(SH*VALUE1-1);
IF VALUE1=1 THEN BEGIN
PL=VALUE2;
PU=VALUE3;
END;
IF VALUE2<pl ="THEN PL=VALUE2;
IF VALUE3>PU THEN PU=VALUE3;
END;

PO=100*(CLOSE-PL)/(PU-PL);

SLOWPO=SLOWPO[1]+(2/(SMOOTH+1))*(PO-PO[1]);
IF CURRENTBAR=1 THEN SLOWPO=PO;

PLOT1(PO,"PO");
PLOT2(SLOWPO,"SLOWPO");









 
 
Nah, thats not what this forum is for. We're not going to re-code it into mql4 for you. Learn to code, we can help you with the learning part.
 
morpheus_:
but i already don´t can coding.
No Slaves here, learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.