通达信【临门一脚+强者恒强】主副图指标 在起爆点选龙头 源码附图
{强势决策主图源码如下}
主力线:=(EMA(CLOSE,10)*7+EMA(CLOSE,20)*3)/10;
好股网:=主力线,COLORRED,LINETHICK2;
动能做多线:IF(C>好股网,好股网,DRAWNULL),COLORRED,LINETHICK2;
动能做空线:IF(C< 好股网,好股网,DRAWNULL),COLORGREEN,LINETHICK2;
ABC1:=COST(0.001);
ABC2:=COST(99.999001);
ABC3:=(ABC2-ABC1)/10;
ABC4:=(WINNER(ABC1+ABC3*3)-WINNER(ABC1))*100;
ABC5:=(WINNER(ABC1+ABC3*7)-WINNER(ABC1+ABC3*4))*100;
ABC6:=(WINNER(ABC2)-WINNER(ABC1+ABC3*7))*100;
ABC7:=ABC4< 50 AND ABC5< 50;
ABC8:=ABC4< 50 AND ABC6< 50;
ABC9:=ABC5< 50 AND ABC6< 50;
ABC10:=MAX(ABC4,ABC6)-MIN(ABC4,ABC6)< 20;
ABC11:=MAX(ABC4,ABC5)-MIN(ABC4,ABC5)< 20;
ABC12:=MAX(ABC6,ABC5)-MIN(ABC6,ABC5)< 20;
ABC13:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND NOT(CODELIKE(8091));
ABC14:=ABC7 AND ABC10 AND ABC13;
ABC15:=ABC7 AND ABC11 AND ABC13;
ABC16:=ABC7 AND ABC12 AND ABC13;
ABC17:=ABC8 AND ABC10 AND ABC13;
ABC18:=ABC8 AND ABC11 AND ABC13;
ABC19:=ABC8 AND ABC12 AND ABC13;
ABC20:=ABC9 AND ABC10 AND ABC13;
ABC21:=ABC9 AND ABC11 AND ABC13;
ABC22:=ABC9 AND ABC12 AND ABC13;
ABC23:=ABC14 OR ABC15 OR ABC16 OR ABC17 OR ABC18 OR ABC19 OR ABC20 OR ABC21 OR ABC22;
DRAWICON(BARSLAST(ABC23< 1),L,7);
STICKLINE(BARSLAST(ABC23< 1),OPEN,CLOSE,2,0),COLORYELLOW;
DRAWICON(BARSLAST(ABC23>=1),H,8);
DRAWTEXT(BARSLAST(ABC23< 1)=1 AND ABC23=1,L*0.98,2),COLORMAGENTA;
DRAWTEXT(BARSLAST(ABC23< 1)=2 AND ABC23=1,L*0.98,3),COLORYELLOW;
DRAWTEXT(BARSLAST(ABC23< 1)=3 AND ABC23=1,L*0.98,3),COLORYELLOW;
DRAWTEXT(BARSLAST(ABC23< 1)=4 AND ABC23=1,L*0.98,3),COLORYELLOW;
DRAWTEXT(BARSLAST(ABC23< 1)=5 AND ABC23=1,L*0.98,3),COLORYELLOW;
DRAWTEXT(BARSLAST(ABC23< 1)=6 AND ABC23=1,L*0.98,3),COLORYELLOW;
DRAWTEXT(BARSLAST(ABC23< 1)=7 AND ABC23=1,L*0.98,3),COLORYELLOW;
DRAWTEXT(BARSLAST(ABC23< 1)=8 AND ABC23=1,L*0.98,3),COLORYELLOW;
DRAWTEXT(BARSLAST(ABC23< 1)=9 AND ABC23=1,L*0.98,3),COLORYELLOW;
DRAWTEXT(BARSLAST(ABC23< 1)=10 AND ABC23=1,L*0.98,3),COLORYELLOW;
{强势决策副图源码如下}
ABC1:=COST(0.001);
ABC2:=COST(99.999001);
ABC3:=(ABC2-ABC1)/10;
ABC4:=(WINNER(ABC1+ABC3*3)-WINNER(ABC1))*100;
ABC5:=(WINNER(ABC1+ABC3*7)-WINNER(ABC1+ABC3*4))*100;
ABC6:=(WINNER(ABC2)-WINNER(ABC1+ABC3*7))*100;
ABC7:=ABC4< 50 AND ABC5< 50;
ABC8:=ABC4< 50 AND ABC6< 50;
ABC9:=ABC5< 50 AND ABC6< 50;
ABC10:=MAX(ABC4,ABC6)-MIN(ABC4,ABC6)< 20;
ABC11:=MAX(ABC4,ABC5)-MIN(ABC4,ABC5)< 20;
ABC12:=MAX(ABC6,ABC5)-MIN(ABC6,ABC5)< 20;
ABC13:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND NOT(CODELIKE(8091));
ABC14:=ABC7 AND ABC10 AND ABC13;
ABC15:=ABC7 AND ABC11 AND ABC13;
ABC16:=ABC7 AND ABC12 AND ABC13;
ABC17:=ABC8 AND ABC10 AND ABC13;
ABC18:=ABC8 AND ABC11 AND ABC13;
ABC19:=ABC8 AND ABC12 AND ABC13;
ABC20:=ABC9 AND ABC10 AND ABC13;
ABC21:=ABC9 AND ABC11 AND ABC13;
ABC22:=ABC9 AND ABC12 AND ABC13;
ABC23:=ABC14 OR ABC15 OR ABC16 OR ABC17 OR ABC18 OR ABC19 OR ABC20 OR ABC21 OR ABC22;
DRAWBAND(ABC23=1,RGB(255,0,0),ABC23< 1,RGB(0,100,0));
DRAWICON(BARSLAST(ABC23< 1),8,0);
DRAWTEXT(BARSLAST(ABC23< 1)=1 AND ABC23=1,3,'↙临门一脚')COLORMAGENTA;
STICKLINE(BARSLAST(ABC23< 1)=1 AND ABC23=1,3,0,1.6,0),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{强势决策主图源码如下}主力线赋值:(收盘价的10日指数移动平均*7+收盘价的20日指数移动平均*3)/10
好股网赋值:主力线,画红色, 线宽为2
如果C>好股网返回好股网否则返回DRAWNULL
如果C< 好股网返回好股网否则返回DRAWNULL
ABC1赋值:获利盘为0.001%的成本分布
ABC2赋值:获利盘为99.999001%的成本分布
ABC3赋值:(ABC2-ABC1)/10
ABC4赋值:(ABC1+ABC3*3计算的获利盘比例-WINNER(ABC1))*100
ABC5赋值:(ABC1+ABC3*7计算的获利盘比例-WINNER(ABC1+ABC3*4))*100
ABC6赋值:(ABC2计算的获利盘比例-WINNER(ABC1+ABC3*7))*100
ABC7赋值:ABC4< 50 AND ABC5< 50
ABC8赋值:ABC4< 50 AND ABC6< 50
ABC9赋值:ABC5< 50 AND ABC6< 50
ABC10:=ABC4和ABC6较大值-ABC4和ABC6的较小值< 20
ABC11:=ABC4和ABC5较大值-ABC4和ABC5的较小值< 20
ABC12:=ABC6和ABC5较大值-ABC6和ABC5的较小值< 20
ABC13:=收盘价>=ZTPRICE(1日前的收盘价,0.1) AND NOT(CODELIKE(8091))
ABC14:=ABC7 AND ABC10 AND ABC13
ABC15:=ABC7 AND ABC11 AND ABC13
ABC16:=ABC7 AND ABC12 AND ABC13
ABC17:=ABC8 AND ABC10 AND ABC13
ABC18:=ABC8 AND ABC11 AND ABC13
ABC19:=ABC8 AND ABC12 AND ABC13
ABC20:=ABC9 AND ABC10 AND ABC13
ABC21:=ABC9 AND ABC11 AND ABC13
ABC22:=ABC9 AND ABC12 AND ABC13
ABC23:=ABC14 OR ABC15 OR ABC16 OR ABC17 OR ABC18 OR ABC19 OR ABC20 OR ABC21 OR ABC22
DRAWICON(上次ABC23< 1距今天数,L,7)
STICKLINE(上次ABC23< 1距今天数,开盘价,收盘价,2,0),画黄色
DRAWICON(上次ABC23>=1距今天数,H,8)
DRAWTEXT(上次ABC23< 1距今天数=1 AND ABC23=1,L*0.98,2),画洋红色
DRAWTEXT(上次ABC23< 1距今天数=2 AND ABC23=1,L*0.98,3),画黄色
DRAWTEXT(上次ABC23< 1距今天数=3 AND ABC23=1,L*0.98,3),画黄色
DRAWTEXT(上次ABC23< 1距今天数=4 AND ABC23=1,L*0.98,3),画黄色
DRAWTEXT(上次ABC23< 1距今天数=5 AND ABC23=1,L*0.98,3),画黄色
DRAWTEXT(上次ABC23< 1距今天数=6 AND ABC23=1,L*0.98,3),画黄色
DRAWTEXT(上次ABC23< 1距今天数=7 AND ABC23=1,L*0.98,3),画黄色
DRAWTEXT(上次ABC23< 1距今天数=8 AND ABC23=1,L*0.98,3),画黄色
DRAWTEXT(上次ABC23< 1距今天数=9 AND ABC23=1,L*0.98,3),画黄色
DRAWTEXT(上次ABC23< 1距今天数=10 AND ABC23=1,L*0.98,3),画黄色
{强势决策副图源码如下}ABC1赋值:获利盘为0.001%的成本分布
ABC2赋值:获利盘为99.999001%的成本分布
ABC3赋值:(ABC2-ABC1)/10
ABC4赋值:(ABC1+ABC3*3计算的获利盘比例-WINNER(ABC1))*100
ABC5赋值:(ABC1+ABC3*7计算的获利盘比例-WINNER(ABC1+ABC3*4))*100
ABC6赋值:(ABC2计算的获利盘比例-WINNER(ABC1+ABC3*7))*100
ABC7赋值:ABC4< 50 AND ABC5< 50
ABC8赋值:ABC4< 50 AND ABC6< 50
ABC9赋值:ABC5< 50 AND ABC6< 50
ABC10:=ABC4和ABC6较大值-ABC4和ABC6的较小值< 20
ABC11:=ABC4和ABC5较大值-ABC4和ABC5的较小值< 20
ABC12:=ABC6和ABC5较大值-ABC6和ABC5的较小值< 20
ABC13:=收盘价>=ZTPRICE(1日前的收盘价,0.1) AND NOT(CODELIKE(8091))
ABC14:=ABC7 AND ABC10 AND ABC13
ABC15:=ABC7 AND ABC11 AND ABC13
ABC16:=ABC7 AND ABC12 AND ABC13
ABC17:=ABC8 AND ABC10 AND ABC13
ABC18:=ABC8 AND ABC11 AND ABC13
ABC19:=ABC8 AND ABC12 AND ABC13
ABC20:=ABC9 AND ABC10 AND ABC13
ABC21:=ABC9 AND ABC11 AND ABC13
ABC22:=ABC9 AND ABC12 AND ABC13
ABC23:=ABC14 OR ABC15 OR ABC16 OR ABC17 OR ABC18 OR ABC19 OR ABC20 OR ABC21 OR ABC22
DRAWBAND(ABC23=1,RGB(255,0,0),ABC23< 1,RGB(0,100,0))
DRAWICON(上次ABC23< 1距今天数,8,0)
DRAWTEXT(上次ABC23< 1距今天数=1 AND ABC23=1,3,'↙临门一脚')画洋红色
STICKLINE(上次ABC23< 1距今天数=1 AND ABC23=1,3,0,1.6,0),画黄色