通达信【弱转强黄金尾盘】基于当日的走势和盘面信息做出更准确的判断 源码
{弱转强黄金尾源码如下}
ABC1:=LLV(LOW,20);
ABC2:=CLOSE-ABC1;
ABC3:=HHV(HIGH,7);
ABC4:=LLV(LOW,7);
ABC5:=ABC2/(ABC3-ABC4)*100;
ABC6:=SMA(ABC5,7,1);
ABC7:=SMA(ABC6,7,1);
ABC8:=ABC6*3;
ABC9:=ABC7*2;
ABC10:=ABC8-ABC9;
ABC11:=EMA(CLOSE,1);
ABC12:=EMA(CLOSE,3);
ABC13:=ABC11-ABC12;
ABC14:=EMA(ABC13,10);
ABC15:=2*(ABC13-ABC14);
ABC16:=ABC15>0;
ABC17:=HIGH+LOW+CLOSE*2;
ABC18:=DMA(ABC17/4.785,1);
ABC19:=EMA(ABC18,9);
ABC20:=REF(ABC19,1);
ABC21:=CROSS(CLOSE,ABC20);
ABC22:=IF(CODELIKE(1) OR CODELIKE(2),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
ABC23:=IF(CODELIKE(3) OR CODELIKE(4),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
ABC24:=ABC22 AND ABC23;
ABC25:=IF(CODELIKE(1),CLOSE<=DTPRICE(REF(CLOSE,1),0.2) AND CLOSE=LOW,CLOSE<=DTPRICE(REF(CLOSE,1),0.1) AND CLOSE=LOW);
ABC26:=IF(CODELIKE(3),CLOSE<=DTPRICE(REF(CLOSE,1),0.2) AND CLOSE=LOW,CLOSE<=DTPRICE(REF(CLOSE,1),0.1) AND CLOSE=LOW);
ABC27:=ABC25 AND ABC26;
ABC28:=NOT(ABC24) AND NOT(ABC27);
ABC29:=IF(CODELIKE(3),0,1);
ABC30:=IF(CODELIKE(5),0,1);
ABC31:=IF(CODELIKE(6),0,1);
ABC32:=IF(CODELIKE(7),0,1);
ABC33:=IF(CODELIKE(8),0,1);
ABC34:=IF(CODELIKE(9),0,1);
ABC35:=IF(CODELIKE(10),0,1);
ABC36:=IF(CODELIKE(11),0,1);
ABC37:=ABC29 AND ABC30 AND ABC31 AND ABC32 AND ABC33 AND ABC34 AND ABC35 AND ABC36;
弱转强:ABC21 AND ABC10< 52 AND ABC16 AND ABC37 AND ABC28,NODRAW,COLORBLACK;
STICKLINE(弱转强,L,L*0.999,50,0),COLORMAGENTA;
STICKLINE(弱转强,O,C,2,0),COLORYELLOW;
DRAWICON(弱转强,L,25);
{弱转强副图源码如下}
AAA:=IF(CODELIKE('688'),0,1);
BBB:=IF(CODELIKE('8'),0,1);
ABC1:=LLV(LOW,20);
ABC2:=CLOSE-ABC1;
ABC3:=HHV(HIGH,7);
ABC4:=LLV(LOW,7);
ABC5:=ABC2/(ABC3-ABC4)*100;
ABC6:=SMA(ABC5,7,1);
ABC7:=SMA(ABC6,7,1);
ABC8:=ABC6*3;
ABC9:=ABC7*2;
ABC10:=ABC8-ABC9;
ABC11:=EMA(CLOSE,1);
ABC12:=EMA(CLOSE,3);
ABC13:=ABC11-ABC12;
ABC14:=EMA(ABC13,10);
ABC15:=2*(ABC13-ABC14);
ABC16:=ABC15>0;
ABC17:=HIGH+LOW+CLOSE*2;
ABC18:=DMA(ABC17/4.785,1);
ABC19:=EMA(ABC18,9);
ABC20:=REF(ABC19,1);
ABC21:=CROSS(CLOSE,ABC20);
ABC22:=IF(CODELIKE(1) OR CODELIKE(2),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
ABC23:=IF(CODELIKE(3) OR CODELIKE(4),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
ABC24:=ABC22 AND ABC23;
ABC25:=IF(CODELIKE(1),CLOSE<=DTPRICE(REF(CLOSE,1),0.2) AND CLOSE=LOW,CLOSE<=DTPRICE(REF(CLOSE,1),0.1) AND CLOSE=LOW);
ABC26:=IF(CODELIKE(3),CLOSE<=DTPRICE(REF(CLOSE,1),0.2) AND CLOSE=LOW,CLOSE<=DTPRICE(REF(CLOSE,1),0.1) AND CLOSE=LOW);
ABC27:=ABC25 AND ABC26;
ABC28:=NOT(ABC24) AND NOT(ABC27);
ABC29:=IF(CODELIKE(3),0,1);
ABC30:=IF(CODELIKE(5),0,1);
ABC31:=IF(CODELIKE(6),0,1);
ABC32:=IF(CODELIKE(7),0,1);
ABC33:=IF(CODELIKE(8),0,1);
ABC34:=IF(CODELIKE(9),0,1);
ABC35:=IF(CODELIKE(10),0,1);
ABC36:=IF(CODELIKE(11),0,1);
ABC37:=ABC29 AND ABC30 AND ABC31 AND ABC32 AND ABC33 AND ABC34 AND ABC35 AND ABC36;
弱转强:ABC21 AND ABC10< 52 AND ABC16 AND ABC37 AND ABC28 AND AAA AND BBB COLORMAGENTA;
DRAWICON(弱转强,1,25);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{弱转强黄金尾源码如下}ABC1赋值:20日内最低价最低值
ABC2赋值:收盘价-ABC1
ABC3赋值:7日内最高价最高值
ABC4赋值:7日内最低价最低值
ABC5赋值:ABC2/(ABC3-ABC4)*100
ABC5的7日[1日权重]移动平均
ABC6的7日[1日权重]移动平均
ABC8赋值:ABC6*3
ABC9赋值:ABC7*2
ABC10赋值:ABC8-ABC9
ABC11赋值:收盘价的1日指数移动平均
ABC12赋值:收盘价的3日指数移动平均
ABC13赋值:ABC11-ABC12
ABC14赋值:ABC13的10日指数移动平均
ABC15赋值:2*(ABC13-ABC14)
ABC16赋值:ABC15>0
ABC17赋值:最高价+最低价+收盘价*2
ABC18赋值:DABC17/4.785的1日简单移动平均
ABC19赋值:ABC18的9日指数移动平均
ABC20:=1日前的ABC19
ABC21:=收盘价上穿ABC20
ABC22:=IF(CODELIKE(1) OR CODELIKE(2),收盘价>=ZTPRICE(1日前的收盘价,0.2) AND 收盘价=最高价,收盘价>=ZTPRICE(1日前的收盘价,0.1) AND 收盘价=最高价)
ABC23:=IF(CODELIKE(3) OR CODELIKE(4),收盘价>=ZTPRICE(1日前的收盘价,0.2) AND 收盘价=最高价,收盘价>=ZTPRICE(1日前的收盘价,0.1) AND 收盘价=最高价)
ABC24:=ABC22 AND ABC23
ABC25:=IF(CODELIKE(1),收盘价<=DTPRICE(1日前的收盘价,0.2) AND 收盘价=最低价,收盘价<=DTPRICE(1日前的收盘价,0.1) AND 收盘价=最低价)
ABC26:=IF(CODELIKE(3),收盘价<=DTPRICE(1日前的收盘价,0.2) AND 收盘价=最低价,收盘价<=DTPRICE(1日前的收盘价,0.1) AND 收盘价=最低价)
ABC27:=ABC25 AND ABC26
ABC28:=NOT(ABC24) AND NOT(ABC27)
ABC29:=IF(CODELIKE(3),0,1)
ABC30:=IF(CODELIKE(5),0,1)
ABC31:=IF(CODELIKE(6),0,1)
ABC32:=IF(CODELIKE(7),0,1)
ABC33:=IF(CODELIKE(8),0,1)
ABC34:=IF(CODELIKE(9),0,1)
ABC35:=IF(CODELIKE(10),0,1)
ABC36:=IF(CODELIKE(11),0,1)
ABC37:=ABC29 AND ABC30 AND ABC31 AND ABC32 AND ABC33 AND ABC34 AND ABC35 AND ABC36
输出弱转强:ABC21 AND ABC10< 52 AND ABC16 AND ABC37 AND ABC28,NODRAW,COLORBLACK
当满足条件弱转强时,在L和L*0.999之间画柱状线
当满足条件弱转强时,在O和C之间画柱状线
当满足条件弱转强时,在L和25之间画图标
{弱转强副图源码如下}AAA:=IF(CODELIKE('688'),0,1)
BBB赋值:IF(CODELIKE('8'),0,1)
ABC1赋值:20日内最低价最低值
ABC2赋值:收盘价-ABC1
ABC3赋值:7日内最高价最高值
ABC4赋值:7日内最低价最低值
ABC5赋值:ABC2/(ABC3-ABC4)*100
ABC5的7日[1日权重]移动平均
ABC6的7日[1日权重]移动平均
ABC8赋值:ABC6*3
ABC9赋值:ABC7*2
ABC10赋值:ABC8-ABC9
ABC11赋值:收盘价的1日指数移动平均
ABC12赋值:收盘价的3日指数移动平均
ABC13赋值:ABC11-ABC12
ABC14赋值:ABC13的10日指数移动平均
ABC15赋值:2*(ABC13-ABC14)
ABC16赋值:ABC15>0
ABC17赋值:最高价+最低价+收盘价*2
ABC18赋值:DABC17/4.785的1日简单移动平均
ABC19赋值:ABC18的9日指数移动平均
ABC20:=1日前的ABC19
ABC21:=收盘价上穿ABC20
ABC22:=IF(CODELIKE(1) OR CODELIKE(2),收盘价>=ZTPRICE(1日前的收盘价,0.2) AND 收盘价=最高价,收盘价>=ZTPRICE(1日前的收盘价,0.1) AND 收盘价=最高价)
ABC23:=IF(CODELIKE(3) OR CODELIKE(4),收盘价>=ZTPRICE(1日前的收盘价,0.2) AND 收盘价=最高价,收盘价>=ZTPRICE(1日前的收盘价,0.1) AND 收盘价=最高价)
ABC24:=ABC22 AND ABC23
ABC25:=IF(CODELIKE(1),收盘价<=DTPRICE(1日前的收盘价,0.2) AND 收盘价=最低价,收盘价<=DTPRICE(1日前的收盘价,0.1) AND 收盘价=最低价)
ABC26:=IF(CODELIKE(3),收盘价<=DTPRICE(1日前的收盘价,0.2) AND 收盘价=最低价,收盘价<=DTPRICE(1日前的收盘价,0.1) AND 收盘价=最低价)
ABC27:=ABC25 AND ABC26
ABC28:=NOT(ABC24) AND NOT(ABC27)
ABC29:=IF(CODELIKE(3),0,1)
ABC30:=IF(CODELIKE(5),0,1)
ABC31:=IF(CODELIKE(6),0,1)
ABC32:=IF(CODELIKE(7),0,1)
ABC33:=IF(CODELIKE(8),0,1)
ABC34:=IF(CODELIKE(9),0,1)
ABC35:=IF(CODELIKE(10),0,1)
ABC36:=IF(CODELIKE(11),0,1)
ABC37:=ABC29 AND ABC30 AND ABC31 AND ABC32 AND ABC33 AND ABC34 AND ABC35 AND ABC36
输出弱转强:ABC21 AND ABC10< 52 AND ABC16 AND ABC37 AND ABC28 AND AAA AND BBB 画洋红色
当满足条件弱转强时,在1和25之间画图标