Professional Documents
Culture Documents
// MediaExp15 //
///////////////////////////////////////////////////////////////////
input
Periodo(20);
Dados(Close);
var
nIndex : Integer;
sSum : Float;
sResult : Float;
sResult2 : Float;
sFactor : Float;
sHora : Integer;
sHoraFrac : Float;
begin
//////////////////
// Primeiro valor
begin
sResult := MediaExp(60,Close);
end
//////////////////
// Demais valores
begin
sHora := Time;
if (sHoraFrac = 0) then
begin
sFactor := sResult;
///////////////////////////////////////
Plot(sResult);
end
else
begin
Plot(sResult2);
end;
end;
end;