VAR1:=COST(89)-COST(11);
VAR2:=COST(99.900002)-COST(0.1);
单峰:=(1-VAR1/VAR2)*100;
高密:=(COST(40)-COST(1))/VAR2*100;
赢利:=SMA(WINNER(AMOUNT/VOL/99)*100,2,1);
V3:=赢利-单峰;
获利成本:STICKLINE(V3 0,V3,0,3,2),COLORRED;
套牢成本:STICKLINE(V3 =0,V3,0,3,2),COLORBLUE;
【上穿成本】:IF(CROSS(赢利,单峰),15,0),STICK,COLORRED,LINETHICK5;
【下穿成本】:IF(CROSS(单峰,赢利),(-25),0),STICK,COLORGREEN,LINETHICK5;
TDXSTEP1410:DRAWICON(【上穿成本】 0,30,5);
TDXSTEP1411:DRAWICON(【下穿成本】 0,(-15),6);
{-----------------------------------}