Deviation Oscillator
For interpretation refer to the February 2003 issue of Technical Analysis of STOCKS & COMMODITIES magazine.
input
inp0:"number of time periods in average", 40, 10, 200;
end_input
var
x:=inp0;
x2:=x * 2;
pd:=C - Mov(C, x, E);
hpd:=Highest(pd, x2);
lpd:=Lowest(pd, x2);
nf:=0;
end_var
if hpd <> lpd then
nf:=200/(hpd - lpd);
return ((pd - lpd) * nf) - 100;
|
Download to import into Tradecision. 
How to use this indicator in Tradecision:
- Click Download.
- Save this indicator in a safe location on your hard drive.
- Open Tradecision and in the Tools menu click Indicator Builder.
- In the Indicator Builder dialog, click Import, locate the saved file and then click OK.
The indicator will be added to the Custom Indicators list.
|