dalianhaizao 发表于 2013-5-27 12:38:15

成本突破

{密集成本突破}
DRAWGBK(CLOSE,COLORRGB(10,160,0),COLORRGB(25,15,0),1);
Var1:=COST(89)-COST(11);
Var2:=COST(99.9)-COST(0.1);
单峰:=(1-Var1/Var2)*100;
高密:=(COST(40)-COST(1))/Var2*100;
赢利:=SMA(WINNER(AMOUNT/VOL/99)*100,2,1),COLOR00FF00;
赢利:= SMA(WINNER(AMOUNT/VOL/99)*100,2,1);
v3:=赢利-单峰;
获利成本:STICKLINE(v3>0,v3,0,10,2){ colorFF00FF;}COLORred;
套牢成本:STICKLINE(v3<=0,v3,0,10,2) colorblue;
【上穿成本】:IF(CROSS(赢利,单峰),15,0),STICK,linethick5,COLOR00ff;
【下穿成本】:IF(CROSS(单峰,赢利),-15,0),STICK,linethick5,COLOR00ff00;
DRAWICON(【上穿成本】,30,1);
DRAWICON(【下穿成本】,-2,2);
{横盘突破}
O1:(SUM(EMA((CLOSE+LOW)/2,1)/2.98,3)),COLORRED;
O2:EMA(O1,3);
O3:EMA(O2,3);
CP1:HHV(O1,20),coloryellow;
CP2:HHV(O1,1)+0.01,colorred;
A:=CROSS(CP2,CP1);
DRAWTEXT(FILTER(A,1),(CP2* 1),'▲'),coloryellow;

页: [1]
查看完整版本: 成本突破