|
參考範例
D1x:=ref(barpos,barslast(date=1090121));
D1:=ref(barpos,barslast(date=1090121 AND ref(date,1)<>1090121));
Da:=if(datatype<6,D1,D1x);
D2x:=ref(barpos,barslast(date=1090220));
D2:=ref(barpos,barslast(date=1090220 AND refx(date,1)<>1090220));
Db:=if(datatype<6,D2,D2x);
X1:=BARPOS=Da;
X2:=BARPOS=Db;
MV:=HHV(V,BARSLAST(X1)+1);
MxP:=V=MV;
HV:=ref(H,barslast(MxP));//對應最高價
HH:ref(HV,barslast(X2));
HH:=HH[datacount];
VV:ref(MV,barslast(X2));//最大量
VV:=VV[datacount];
__________________
至誠能勝天下至偽
至拙能勝天下至巧
|