源码
Varaa:=100*vol/capital;
varbb:=if(5/varaa<90,5/varaa,90);
fillrgn(Varaa>0,90,90-Varbb),color444444;
close0:=amount/vol/100;
Var1:=CLOSE0-REF(CLOSE0,1);
Var2:=IF(CLOSE0-REF(CLOSE0,1)>=0,Var1,0);
Var3:=REF(CLOSE0,1)-CLOSE0;
Var4:=IF(CLOSE0-REF(CLOSE0,1)<=0,Var3,0);
Var5:=SUM(Var2,8)/SUM(Var4,8);
Var6:=1-1/(1+Var5);
短:=sma(EMA(Var6,3),2,1);
Var7:=LLV(LOW,31);
Var8:=HHV(HIGH,31);
Var9:=EMA(CLOSE0,2);
中:=EMA((Var9-Var7)/(Var8-Var7),8);
Var10:=LLV(LOW,217);
Var11:=HHV(HIGH,217);
Var12:=EMA(CLOSE0,2);
长:=EMA((Var12-Var10)/(Var11-Var10),8);
※底部:10,POINTDOT,color336600;
※顶部:90,POINTDOT,color6666cc;
※风险:100*长,colorgreen,linethick3;
※趋势:100*中,color3399ff,linethick2;
※买卖:100*短,colormagenta,linethick1;