請問大師
已知「pvi上升和下降0.01的警示語法」為
var: PV(1);
if CurrentBar = 1 then
PV = 1
else
begin
if V > V[1] then
PV = PV[1] + (Close - Close[1]) / Close[1]
else
PV = PV[1];
end;
//上升0.01警示和下降0.01
if (PV-PV[1])/PV[1]>0.01 then ret=1;
if (PV-PV[1])/PV[1]<-0.01 then ret=1;
已知「nvi的語法」為
Var: nv(1);
if CurrentBar = 1 then
nv = 1
else
begin
if V < V[1] then
nv = nv[1] + (Close - Close[1]) / Close[1]
else
nv = nv[1];
end;
如果連續三根k棒「第一根k棒pvi上升0.01以上,第二根k棒nvi上升0.01以上,第三根k棒pvi下降0.01以上」發出警示的語法應該怎麼寫呢?
謝謝...
2 評論