Var: miomov1,miomax1,miomin1,AA,BB,CC,DD;
var: miotitolo, miotitoloClose, media1, media30min, media2;
var: tank,please;
media1 = MOV(C, 10, S);
media2 = MOV(C,50,s);
miotitolo = LoadStock(this, intraday, 30*60);
miotitoloClose = GetValByStock(miotitolo, "C", 0);
if Section_Stock(miotitolo) then
if (miotitoloClose > 0) then
media30min = MOV(miotitoloClose, 10, S);
endif;
endif;
miomax1 = HHV(H,30);
miomin1 = LLv(L,30);
miomov1 = MOV(C,3,s);
AA = ((miomax1 - C)+ (miomov1)*miomax1)/H;
BB = ((miomin1 - C)+ (miomov1)*miomin1)/L;
CC = (miomax1- miomov1)+ (C * miomax1)/(C);
DD = (miomin1 - miomov1)+ ( C *miomin1)/(C);
tank = MOV(AA,3,s);
please = MOV(BB,3,s);
plotchart(media30min, 0,black, solid, 2);
plotchart( tank,0,fuchsia,solid,2);
plotchart( please,0,fuchsia,solid,2);