以下是筹码均线 通达信 源码 主图 附图
筹码均线 通达信 源码 主图 附图
说明;看了(筹码均线改通达信)这张帖、………改好后,不理想。
嘻嘻,其实就三条线足够了。
牛市成本获利
ap1:=amount/(vul*vulunit);
ap2:=(o+h+l+c)/4;
yes:=ap1>h or ap1<l;
amt:=if(yes,ap2*vul*vulunit,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;
{成本火力}
ap1:=amount/(vul*vulunit);
ap2:=(o+h+l+c)/4;
yes:=ap1>h or ap1<l;
amt:=if(yes,ap2*vul*vulunit,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;
筹码均线
ap1:=amount/(vul*vulunit);
ap2:=(o+h+l+c)/4;
yes:=ap1>=h or ap1<=l;
amt:=if(yes,ap2*vul*vulunit,amount);
CB6:=SUM(amt,6)/SUM(VOL,6)/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;
短期成本:(CB6+CB13+CB21)/3;
中期成本:(CB34+CB55+CB89)/3,colorred;
长期成本:=(CB144+CB233+CB377)/3;
平均成本:=(短期成本+中期成本+长期成本)/3;
启动:ema(cost(71),21),COLORgreen;
牛市成本:ema(cost(34),3),COLORwhite,linethick2;
牛市启动:ema(cost(81),30),COLORyellow;
嘻嘻,其实就三条线足够了。
评论(0)