通达信起拔秘线金指副图 牛股起爆寻龙头 源码 附图
DRAWGBK(O>C,RGB(40,40,40),RGB(0,0,40),0,'01',0);
A1:=REF(C,1);
A2:=DCLOSE;
A3:=(A2-A1)/A1*100;
AA1:=(A3-REF(A3,1));
AA2:=9.8;
选股1:=CROSS(AA1,AA2);
A11:=REF(V,1);
A12:=DVOL;
A13:=A12/A11;
AA3:=(A13-REF(A13,1));
AA4:=500;
选股2:=CROSS(AA3,AA4);
钱来:选股1 AND 选股2,LINETHICK2,COLORCYAN;
AA11:=REF(C,30)=HHV(C,2*30+1);
BB11:=FILTER(AA11,30);
CC11:=BACKSET(BB11,30+1);
HD1:=FILTER(CC11,30);
AA22:=REF(C,10)=LLV(C,2*10+1);
BB2:=FILTER(AA22,10);
CC2:=BACKSET(BB2,10+1);
LD1:=FILTER(CC2,10);
起拔金指:REF(C,BARSLAST(HD1)),COLORRED,NODRAW;
STICKLINE(CROSS(C,起拔金指),0,1,1,0),COLORRED;
DRAWICON(CROSS(C,起拔金指),1,11);
T1:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T1));
CCVV:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T1)) AND (HIGH>T1HIGH)));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T2)) AND (HIGH>T2HIGH)));
T3HIGH:=CONST(REF(HIGH,T3));
秘线金指:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),NODRAW,COLORFF0099;
STICKLINE(CROSS(C,秘线金指),0,1,1,0),COLORMAGENTA;
DRAWICON(CROSS(C,秘线金指),1,11);
未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:DCLOSE
该公式包含未来函数:DVOL
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
填充背景(O>C,RGB(40,40,40),RGB(0,0,40),0,'01',0)
A1赋值:1日前的C
A2赋值:D收盘价
A3赋值:(A2-A1)/A1*100
AA1赋值:(A3-1日前的A3)
AA2赋值:9.8
选股1赋值:AA1上穿AA2
A11:=1日前的V
A12:=D成交量
A13:=A12/A11
AA3赋值:(A13-1日前的A13)
AA4赋值:500
选股2赋值:AA3上穿AA4
输出钱来:选股1 AND 选股2, 线宽为2,画青色
AA11:=30日前的C=2*30+1日内C最高值
BB11赋值:AA11的30过滤
CC11赋值:BACKSET(BB11,30+1)
HD1赋值:CC11的30过滤
AA22:=10日前的C=2*10+1日内C最低值
BB2赋值:AA22的10过滤
CC2赋值:BACKSET(BB2,10+1)
LD1赋值:CC2的10过滤
输出起拔金指:REF(C,上次HD1距今天数),画红色,NODRAW
STICKLINE(C上穿起拔金指,0,1,1,0),画红色
DRAWICON(C上穿起拔金指,1,11)
T1赋值:CONST(LLVBARS(最低价,10))
T1最高价:=CONST(T1日前的最高价)
CCVV赋值:CONST( 到最后交易的周期)
T2赋值:CONST(上次( 到最后交易的周期 >(CCVV+T1距今天数) AND (最高价>T1最高价)))
T2最高价:=CONST(T2日前的最高价)
T3赋值:CONST(上次( 到最后交易的周期 >(CCVV+T2距今天数) AND (最高价>T2最高价)))
T3最高价:=CONST(T3日前的最高价)
输出秘线金指:DRAWLINE( 到最后交易的周期=T3+1, T3最高价, ISLASTBAR, T3最高价, 1),NODRAW,COLORFF0099
STICKLINE(C上穿秘线金指,0,1,1,0),画洋红色
DRAWICON(C上穿秘线金指,1,11)