|
ap1:=amount/(vol*volunit);
ap2:=(o+h+l+c)/4;
yes:=ap1>h or ap1<l;
amt:=if(yes,ap2*vol*volunit,amount);
CB3:=SUM(amt,3)/SUM(VOL,3)/100;
CB5:=SUM(amt,5)/SUM(VOL,5)/100;
CB8:=SUM(amt,8)/SUM(VOL,8)/100;
CB13:=SUM(amt,13)/SUM(VOL,13)/100;
CB21:=SUM(amt,21)/SUM(VOL,21)/100;
CB34:=SUM(amt,34)/SUM(VOL,34)/100;
CB55:=SUM(amt,55)/SUM(VOL,55)/100;
CB89:=SUM(amt,89)/SUM(VOL,89)/100;
CB144:=SUM(amt,144)/SUM(VOL,144)/100;
CB233:=SUM(amt,233)/SUM(VOL,233)/100;
CB377:=SUM(amt,377)/SUM(VOL,377)/100;
CB610:=SUM(amt,610)/SUM(VOL,610)/100;
短期成本:(CB8+CB13+CB21)/3,pointdot,linethick2;
中期成本:(CB34+CB55+CB89)/3,pointdot,linethick2;
长期成本:(CB144+CB233+CB377)/3,pointdot,linethick2;
平均成本:(短期成本+中期成本+长期成本)/3,linethick2;
获利20:长期成本*0.191+长期成本,pointdot;
获利30:长期成本*0.382+长期成本,pointdot;
亏损20:长期成本-(长期成本*0.191),pointdot;
亏损30:长期成本-(长期成本*0.382),pointdot;
牛市启动:ema(cost(72),21),linethick2,COLORYELLOW;
牛市成本:ema(cost(34),3),pointdot,COLORYELLOW;
趋势线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
见底信号: 2;
买点准备: IF(趋势线<=10,50,0);
买入时间: IF(CROSS(趋势线,见底信号),100,0),COLOR0099ff,LINETHICK4;
Var1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),10,1);
Var3:=EMA(Var2,10);
Var4:=LLV(LOW,33);
Var5:=EMA(IF(LOW<=Var4,Var3,0),3);
主力进场:
STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORred;
洗盘:
STICKLINE(Var5<REF(Var5,1),0,Var5,7,0),COLORgreen;
|
|