163538l4wg4mzzrjblp4fw.png
{公式名称: 翔哥MACD变色
公式描述:
参数数量: 1
参数1: VOL1, 最小: 0, 最大: 100, 缺省: 6
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
VOL1: Param#0 (0.00--100.00)
用法注释:无
公式源码:}
X_1:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
X_2:=SUM(IF(CLOSE=REF(CLOSE,1),0,X_1),0);
X_3:=EMA(X_2,3)-MA(X_2,9);
X_4:=EMA(IF(X_3>0,X_3,0),3);
X_5:=MA(CLOSE,3);
X_6:=12;
X_7:=26;
X_8:=9;
DIF:EMA(CLOSE,X_6)-EMA(CLOSE,X_7),COLORWHITE;
DEA:EMA(DIF,X_8),COLORYELLOW;
X_9:=(DIF-DEA)*2;
STICKLINE(X_4>REF(X_4,1) AND X_5>REF(X_5,1),0,X_9,0.1,0),COLORRED;
X_10:=Func_0x75D2.SubValue_0x4;
X_11:=Func_0x75D2.SubValue_0x5;
X_12:=Func_0x75D2.SubValue_0x6;
X_13:=Func_0x75D2.SubValue_0x7;
STICKLINE(X_10,0,X_9,0.1,0),COLORRED;
STICKLINE(X_11,0,X_9,0.1,0),COLORRED;
STICKLINE(X_12,0,X_9,0,0),COLORGREEN;
STICKLINE(X_13,0,X_9,0,0),COLORGREEN;
主力买1:IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED;
主力买2:IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN;
X_14:=L2_AMO(0,2)/10000;
X_15:=L2_AMO(1,2)/10000;
X_16:=L2_AMO(2,2)/10000;
X_17:=L2_AMO(3,2)/10000;
X_18:=L2_AMO(0,3)/10000;
X_19:=L2_AMO(1,3)/10000;
X_20:=L2_AMO(2,3)/10000;
X_21:=L2_AMO(3,3)/10000;
TESTSKIP(NOT(X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21)!=0);
X_22:=(X_14+X_15+X_16+X_17)/(X_14+X_15+X_16+X_17+X_18+X_19+X_20+X_21)*100;
X_23:=(X_14+X_15)/(X_14+X_15+X_18+X_19)*100;
X_24:=IF(X_14+X_15+X_18+X_19=0,0,X_23);
X_25:=X_14+X_15+X_16+X_17+X_18+X_19+X_20+X_21;
X_26:=(X_14+X_18+X_15+X_19)/X_25*100;
X_27:=ACTINVOL;
X_28:=ACTOUTVOL;
X_29:=X_27*100/(X_27+X_28);
DRAWTEXT_FIX(1,0.1,0,0.01,STRCAT(STRCAT(5,CON2STR(X_22,2)),6)),COLOR737300;
DRAWTEXT_FIX(1,0.2,0,0.01,STRCAT(STRCAT(7,CON2STR(X_24,2)),8)),COLOR737300;
DRAWTEXT_FIX(1,0.3,0,0.01,STRCAT(STRCAT(9,CON2STR(X_26,2)),6)),COLOR737300;
DRAWTEXT_FIX(1,0.4,0,0.01,STRCAT(STRCAT(10,CON2STR(X_29,2)),6)),COLOR737300;
X_30:=(CLOSE*2+HIGH+LOW)/4;
X_31:=EMA(X_30,13)-EMA(X_30,34);
X_32:=EMA(X_31,5);
重心:2*(X_31-X_32)*3.8,NODRAW;
X_33:=重心;
X_34:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_35:=EMA(X_34,9);
X_36:=2*(X_34-X_35);
X_37:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_38:=SMA(X_37,3,1);
X_39:=SMA(X_38,3,1);
X_40:=3*X_38-2*X_39;
X_41:=(HIGH+LOW+CLOSE)/3;
X_42:=(X_41-MA(X_41,14))/(0.015*AVEDEV(X_41,14));
X_43:=CROSS(X_42,(-100));
X_44:=REF(CLOSE,1);
X_45:=SMA(MAX(CLOSE-X_44,0),6,1)/SMA(ABS(CLOSE-X_44),6,1)*100;
X_46:=SMA(MAX(CLOSE-X_44,0),6,1)/SMA(ABS(CLOSE-X_44),6,1)*100;
X_47:=X_38>X_39 AND X_38>REF(X_38,1) AND X_34>X_35 AND X_34>REF(X_34,1) AND X_46>50 AND X_46>REF(X_46,1) AND CLOSE>EXPMA.EXP1 AND EXPMA.EXP1>REF(EXPMA.EXP1,1);
IF(X_47,X_33/3,DRAWNULL),COLORMAGENTA,LINETHICK2;
|