公式如下:
{公式名称: 做T指标
公式描述: 副图T
无参数
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
DRAWGBK(CLOSE>0,RGB(50,60,250),RGB(17,21,89),0,57,0);
X_1:=MAX(DYNAINFO(3),DYNAINFO(5));
X_2:=MIN(DYNAINFO(3),DYNAINFO(6));
X_3:=X_1-X_2;
X_4:=X_2+X_3*8/9;
X_5:=X_2+X_3*0.5/9;
X_6:=(X_5+X_4)/2;
X_7:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
趋势线:EMA(X_7,3),COLORLIMAGENTA,LINETHICK2;
X_8:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
X_9:=趋势线<11 AND FILTER(趋势线<=11,15) AND CLOSE
X_10:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND CLOSE
X_11:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
X_12:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
X_13:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
X_14:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
X_15:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
X_16:=X_11=1 OR X_12=1 OR X_13=1 OR X_14=1 OR X_15=1;
下单买入:STICKLINE(X_16=1 AND CLOSE
DRAWICON(X_16=1 AND CLOSE
DRAWTEXT(X_10,60,58),COLORRED;
X_17:=趋势线>89 AND FILTER(趋势线>89,15) AND CLOSE>X_6;
X_18:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND CLOSE>X_6;
X_19:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);
X_20:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
X_21:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
X_22:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
X_23:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
X_24:=X_19=1 OR X_20=1 OR X_21=1 OR X_22=1 OR X_23=1;
下单卖出:STICKLINE(X_24=1 AND CLOSE>X_6,89,50,3,0),COLORGREEN;
DRAWICON(X_24=1 AND CLOSE>X_6,45,2);
DRAWTEXT(X_18,40,59),COLORGREEN;
顶:89,COLORGREEN;
底:11,COLORRED;
中:50,POINTDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,顶,60),COLORGREEN;
DRAWTEXT(ISLASTBAR,底,61),COLORRED;
DRAWTEXT(ISLASTBAR,中,62),COLORWHITE;
信号明显,做一只“买”的选股公式吧
选股公式如下:
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
ZL:=L1+P1*7/8;
ZC:=L1+P1*0.5/8;
ZX1:=(ZC+ZL)/2;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
QSX:=EMA(V11,3),LINETHICK2,COLORLIMAGENTA;
V12:=(QSX-REF(QSX,1))/REF(QSX,1)*100;
测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件
胜率67.71%
|