 | |  |  |
分析家资金安全系数源码公式:
jj:=amount/v/100;{成交均价}
zlzj:=jj*2/(jj*2+h+ref(c,1));{增量资金比例}
ctzj:=jj*2/(jj*2+l+ref(c,1));{出逃资金比例}
zjxs:=if(jj>ref(c,1),zlzj,ctzj*-1);{资金系数}
fxxs:=1+INDEXADV/(INDEXDEC+INDEXADV);{风险系数}
zjfx:=zjxs*fxxs;{资金风险};
资金远期安全:sum(zjfx,10),colorstick,linethick6;
资金近期安全:sum(zjfx,5),stick,linethick4,colorblue;
5,pointdot;
1,pointdot;
-1,pointdot;
-3.5,pointdot; |
| |  | |  |
|