variable: vo(0),vc(0),vh(0),vl(0),fc(0),fo(0);
if currentbar=1 then vo=o;
if currentbar=1 then vh=h;
if currentbar=1 then vl=l;
if currentbar=1 then vc=c;//新的K棒的開高收低第一根用原本的K棒表達
for currentbar=2 to //從第二根K棒開始到最新的一根
vo=(vc[1]+vo[1])/2;
vh=iff(vo>vh,vo,vh);
vl=iff(vo<vl ,vo,vl);
fc=(vh+vl+2*vC)/4;
plot1(fc,"fc");
plot2(fo,"fo");
這樣完全寫不出來耶, 我覺得關鍵點在 //從第二根K棒開始到最新的一根<=這段完全不知怎麼表達 可以請版主回答一下嗎,要怎麼修改呢??
8 評論