通達(dá)信短線攻擊資金抓牛副圖公式源碼
Z_J1:=EMA(C,14)-EMA(C,150); Z_J2:=EMA(Z_J1,100); Z_J3:=2*(Z_J1-Z_J2); Z_J4:=POW(Z_J3,3)*0.5+POW(Z_J3,1); 主流資金: IF(Z_J3>0.5,Z_J4,0)*5,COLORGREEN; G_J1:=EMA(C,6)-EMA(C,150); G_J2:=EMA(G_J1,100); G_J3:=2*(G_J1-G_J2)*3.3; G_J4:=POW(G_J3,3)*0.5+POW(G_J3,3); 攻擊資金:IF(G_J3>0.5,G_J4,0)/28,COLORRED; 流存資金:IF(攻擊資金=0,-ABS(G_J4/28),0),LINETHICK1,COLORYELLOW;
Z_J1賦值:收盤價(jià)的14日指數(shù)移動(dòng)平均-收盤價(jià)的150日指數(shù)移動(dòng)平均 Z_J2賦值:Z_J1的100日指數(shù)移動(dòng)平均 Z_J3賦值:2*(Z_J1-Z_J2) Z_J4賦值:Z_J3的3乘冪*0.5+Z_J3的1乘冪 輸出主流資金: 如果Z_J3>0.5,返回Z_J4,否則返回0*5,畫綠色 G_J1賦值:收盤價(jià)的6日指數(shù)移動(dòng)平均-收盤價(jià)的150日指數(shù)移動(dòng)平均 G_J2賦值:G_J1的100日指數(shù)移動(dòng)平均 G_J3賦值:2*(G_J1-G_J2)*3.3 G_J4賦值:G_J3的3乘冪*0.5+G_J3的3乘冪 輸出攻擊資金:如果G_J3>0.5,返回G_J4,否則返回0/28,畫紅色 輸出流存資金:如果攻擊資金=0,返回-G_J4/28的絕對(duì)值,否則返回0,線寬為1,畫黃色
|