Código: Seleccionar todo
Input: factor(0.001), length(20);
Vars: Upperband(0), Lowerband(0), Central(0);
Upperband = high * ( 1 + 2 * (((( high - low )/(( high + low ) / 2 )) * 1000 ) * factor ));
Lowerband = low * ( 1 - 2 * (((( high - low )/(( high + low ) / 2 )) * 1000 ) * factor ));
Central = (Upperband + Lowerband) / 2;
plot1(Average(Upperband, length));
plot2(Average(Central, length));
plot3(Average(Lowerband, length));
X-Trader