通达信极限抄底主副图 出共振信号就建仓 源码
{极限抄底主图源码如下}
CHL1:=(2*CLOSE+HIGH+LOW)/4;
CHL2:=LLV(LOW,5);
CHL3:=HHV(HIGH,5);
CHL4:=EMA((CHL1-CHL2)/(CHL3-CHL2)*100,6);
MA1:=MA(CHL4,2);
AA:=STICKLINE(CHL4>MA1,CHL4,MA1,3,1),COLORRED;
JJX:=AMOUNT/V/100;
JJX2:MA(JJX,3);
JJX5:MA(JJX,5);
JJX10:MA(JJX,10);
JJX30:MA(JJX,30);
突破:=C>JJX2 AND JJX2<REF(JJX2,1) AND REF(JJX2,1)<REF(JJX2,2) AND REF(JJX2,2)<REF(JJX2,3) AND CHL4>MA1;
STICKLINE(突破,H,L,5,0),LINETHICK1,COLORRED;
STICKLINE(突破,H,L,0.2,0),COLORYELLOW;
STICKLINE(突破,O,C,2,0),LINETHICK1,COLORYELLOW;
STICKLINE(突破,L*0.99,L*0.92,0.02,0),LINETHICK1,COLORYELLOW;
DRAWTEXT(突破,L*0.9,'抄底');
STICKLINE(JJX AND (C-O)/O*100>3,JJX,JJX,3,1),COLORGREEN;
{极限抄底副图源码如下}
N:=9;
M1:=3;
出击线:(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100,LINETHICK2,COLORRED;
阵地防御:SMA(出击线,M1,1),COLORWHITE;
MTM:=C-REF(CLOSE,1);
CTD1:=REF((L+O+C+H)/4,1);
CTD2:=SMA(ABS(L-CTD1),13,1)/SMA(MAX(L-CTD1,0),10,1);
CTD3:=EMA(CTD2,10);
CTD4:=LLV(L,33);
CTD5:=EMA(IF(L<=CTD4,CTD3,0),3);
低位抢筹:IF(CTD5>REF(CTD5,1),CTD5,0),COLORRED,NODRAW;
STICKLINE(CTD5>REF(CTD5,1),0,CTD5,2,0 ),COLOR000055;
STICKLINE(CTD5>REF(CTD5,1),0,CTD5,1.6,0 ),COLOR000077;
STICKLINE(CTD5>REF(CTD5,1),0,CTD5,1.5.1,0 ),COLOR000099;
STICKLINE(CTD5>REF(CTD5,1),0,CTD5,1.0,0 ),COLOR0000BB;
STICKLINE(CTD5>REF(CTD5,1),0,CTD5,0.6,0 ),COLOR0000DD;
STICKLINE(CTD5>REF(CTD5,1),0,CTD5,0.3,0 ),COLOR0000FF;
震仓柱:IF(CTD5< REF(CTD5,1),CTD5,0),COLORGREEN,NODRAW;
STICKLINE(CTD5< REF(CTD5,1),0,CTD5,2,0),COLOR005500;
STICKLINE(CTD5< REF(CTD5,1),0,CTD5,1.6,0),COLOR007700;
STICKLINE(CTD5< REF(CTD5,1),0,CTD5,1.5.1,0),COLOR009900;
STICKLINE(CTD5< REF(CTD5,1),0,CTD5,1.0,0),COLOR00BB00;
STICKLINE(CTD5< REF(CTD5,1),0,CTD5,0.6,0),COLOR00DD00;
STICKLINE(CTD5< REF(CTD5,1),0,CTD5,0.3,0),COLOR00FF00;
V1:=LLV(L,10);
V2:=HHV(HIGH,25);
价位线:=EMA((CLOSE-V1)/(V2-V1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),30+6,'★买'),COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{极限抄底主图源码如下}CHL1赋值:(2*收盘价+最高价+最低价)/4
CHL2赋值:5日内最低价最低值
CHL3赋值:5日内最高价最高值
CHL4赋值:EMA((CHL1-CHL2)/(CHL3-CHL2)*100,6)
MA1赋值:CHL4的2日简单移动平均
当满足条件CHL4>MA1时,在CHL4和MA1之间画柱状线
JJX赋值:成交额/V/100
JJX2:JJX的3日简单移动平均
JJX5:JJX的5日简单移动平均
JJX10:JJX的10日简单移动平均
JJX30:JJX的30日简单移动平均
突破赋值:C>JJX2 AND JJX2<1日前的JJX2 AND 1日前的JJX2<2日前的JJX2 AND 2日前的JJX2<3日前的JJX2 AND CHL4>MA1
当满足条件突破时,在H和L之间画柱状线
当满足条件突破时,在H和L之间画柱状线
当满足条件突破时,在O和C之间画柱状线
当满足条件突破时,在L*0.99和L*0.92之间画柱状线
当满足条件突破时,在L*0.9和'抄底'位置书写文字
STICKLINE(JJX AND (C-O)/O*100>3,JJX,JJX,3,1),画绿色
{极限抄底副图源码如下}N赋值:9
M1赋值:3
输出出击线:(C-N日内L最低值)/(N日内H最高值-N日内L最低值)*100, 线宽为2,画红色
出击线的M1日[1日权重]移动平均
MTM赋值:C-1日前的收盘价
CTD1赋值:REF((L+O+C+H)/4,1)
CTD2赋值:SMA(L-CTD1的绝对值,13,1)/SMA(L-CTD1和0较大值,10,1)
CTD3赋值:CTD2的10日指数移动平均
CTD4赋值:33日内L最低值
如果L<=CTD4返回CTD3否则返回0
输出低位抢筹:IF(CTD5>1日前的CTD5,CTD5,0),画红色,NODRAW
STICKLINE(CTD5>1日前的CTD5,0,CTD5,2,0 ),COLOR000055
STICKLINE(CTD5>1日前的CTD5,0,CTD5,1.6,0 ),COLOR000077
STICKLINE(CTD5>1日前的CTD5,0,CTD5,1.5.1,0 ),COLOR000099
STICKLINE(CTD5>1日前的CTD5,0,CTD5,1.0,0 ),COLOR0000BB
STICKLINE(CTD5>1日前的CTD5,0,CTD5,0.6,0 ),COLOR0000DD
STICKLINE(CTD5>1日前的CTD5,0,CTD5,0.3,0 ),COLOR0000FF
输出震仓柱:IF(CTD5< 1日前的CTD5,CTD5,0),画绿色,NODRAW
STICKLINE(CTD5< 1日前的CTD5,0,CTD5,2,0),COLOR005500
STICKLINE(CTD5< 1日前的CTD5,0,CTD5,1.6,0),COLOR007700
STICKLINE(CTD5< 1日前的CTD5,0,CTD5,1.5.1,0),COLOR009900
STICKLINE(CTD5< 1日前的CTD5,0,CTD5,1.0,0),COLOR00BB00
STICKLINE(CTD5< 1日前的CTD5,0,CTD5,0.6,0),COLOR00DD00
STICKLINE(CTD5< 1日前的CTD5,0,CTD5,0.3,0),COLOR00FF00
V1赋值:10日内L最低值
V2赋值:25日内最高价最高值
价位线赋值:EMA((收盘价-V1)/(V2-V1)*4,4)
DRAWTEXT(价位线上穿0.3,30+6,'★买'),画黄色