[通达信指标]神兵18期 组合指标 一主两附精选公式 历史神兵组合

注意本指标源码用于通达信、通达信金融终端和通达信期货通。

神兵第1期指标

神兵第2期指标

神兵第3期指标

神兵第4期指标

神兵第5期指标

神兵第6期指标

神兵第7期指标

神兵第8期指标

神兵第9期指标

神兵第10期指标

神兵第11期指标

神兵第12期指标

神兵第13期指标

神兵第14期指标

神兵第15期指标

神兵第16期指标

神兵第17期指标

 

 

01

主图源码

MA5:MA(CLOSE,5),LINETHICK2;MA10:MA(CLOSE,10),LINETHICK2;

MA20:MA(CLOSE,20),LINETHICK2,COLOR00FF00;

ZDF:=(C-REF(C,1))/REF(C,1)*100;

STICKLINE(ZDF>9.8,O,C,6,0),COLORRED;

STICKLINE(ZDF<-9.8,O,C,6,0),COLORBLUE;

LLDG1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);

LLDG2:=REF(LLDG1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDG3:=REF(LLDG2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDG4:=REF(LLDG3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDG5:=REF(LLDG4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDG6:=REF(LLDG5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDG7:=REF(LLDG6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDG8:=REF(LLDG7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDG9:=REF(LLDG8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDGA:=REF(LLDG9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDGB:=REF(LLDGA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDGC:=REF(LLDGB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

STICKLINE(LLDG1 OR LLDG2 OR LLDG3 OR LLDG4 OR LLDG5 OR LLDG6 OR LLDG7 OR LLDG8 OR LLDG9 OR LLDGA OR LLDGB OR LLDGC,CLOSE,REF(CLOSE,1),3,1),COLORRED;

LLDGD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);

LLDGE:=REF(LLDGD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDGF:=REF(LLDGE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDG10:=REF(LLDGF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDG11:=REF(LLDG10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDG12:=REF(LLDG11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDG13:=REF(LLDG12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDG14:=REF(LLDG13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDG15:=REF(LLDG14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDG16:=REF(LLDG15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

LLDG17:=REF(LLDG16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

LLDG18:=REF(LLDG17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

STICKLINE(LLDGD OR LLDGE OR LLDGF OR LLDG10 OR LLDG11 OR LLDG12 OR LLDG13 OR LLDG14 OR LLDG15 OR LLDG16 OR LLDG17 OR LLDG18,CLOSE,REF(CLOSE,1),3,0),COLORFFCC66;

LLDG19:=REF(LLDGD OR LLDGE OR LLDGF OR LLDG10 OR LLDG11 OR LLDG12 OR LLDG13 OR LLDG14 OR LLDG15 OR LLDG16 OR LLDG17 OR LLDG18,1) AND LLDG1;

STICKLINE(LLDG19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLORYELLOW;

LLDG1A:=REF(LLDG1 OR LLDG2 OR LLDG3 OR LLDG4 OR LLDG5 OR LLDG6 OR LLDG7 OR LLDG8 OR LLDG9 OR LLDGA OR LLDGB OR LLDGC,1) AND LLDGD;

STICKLINE(LLDG1A,REF(CLOSE,1),REF(CLOSE,2),4,1),COLOR00FF00;

STICKLINE(LLDG19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORRED;

STICKLINE(LLDG1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORBLUE;

IF(MA5>=REF(MA5,1) AND MA5>=MA10,MA5,DRAWNULL),COLORRED,LINETHICK3;

SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2);

SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND H>HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) AND C>O;

MR:=SC AND COUNT(SS,2);

MARUCZB:=MR AND NOT(REF(MR,1)),COLORYELLOW;

STICKLINE(MARUCZB,L,L*0.95,3,0),COLORRED;

DRAWTEXT(MARUCZB,L*0.95, ‘必涨’),COLORRED;

LLDG3P:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);

STICKLINE(LLDG3P>90,L,L*0.92,3,0),COLORFF00FF;

DRAWTEXT(LLDG3P>90,LOW*0.92,’追涨’),COLORFF00FF;

02

附图1 源码

MA20:=MA(CLOSE,20);

MACD2:=2*(C-MA20);

UPPER:=MA20+2*STD(CLOSE,20);

LOWER:=MA20-2*STD(CLOSE,20);

UP:2*(UPPER-MA20),DOTLINE;

LO:2*(LOWER-MA20),DOTLINE;

STICKLINE(MACD2>0,0,MACD2,1.5,1),COLORMAGENTA;

STICKLINE(MACD2<0,0,MACD2,1.5,1),COLORYELLOW;

DRAWTEXT(CROSS(C,LOWER),LO,’↑低位’),COLORYELLOW;

DRAWTEXT(CROSS(UPPER,C),UP,’★高位’),COLORGREEN;

MA5:=MA(CLOSE,5);

MACD1:2*(C-MA5),STICK;STICKLINE(MACD1>0,0,MACD1,0.5,0),COLOR0000DD;

STICKLINE(MACD1<0,0,MACD1,0.5,0),COLOR00BB00;

VAR1:=MACD2>REF(MACD2,1) AND REF(MACD2,1)<REF(MACD2,2) AND REF(MACD2,2)<REF(MACD2,3);

VAR2:=REF(MACD1,1)<0 AND MACD1>0;

VAR3:=MA20>REF(MA20,1);

DRAWICON(VAR1 AND VAR2 AND VAR3,0,9);

03

附图2 源码

N:=26;TYP1 := (HIGH + LOW + CLOSE)/3;

(TYP1-MA(TYP1,N))/(0.015*AVEDEV(TYP1,N));

LC:=REF(CLOSE,1);

(LC*1.0035*97+0.2)/99.65,COLOR03B4EC,LINETHICK0;

RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;

R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

A:=SMA(R,3,1);

B:=SMA(A,3,1);

CCC:=(B/2+40)*1.1;

D:=SMA(CCC,3,1);

RR8:=MA(CLOSE,27);

RR9:=(CLOSE-RR8)/RR8*100;

RRA:=MA(RR9,2);

RRB:=BARSLAST(CROSS(-10,RRA)=1);

RRD:=RRA<-10 AND RRB>3;

TYP := (HIGH + LOW + CLOSE)/3;

CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

PPT2:=REF(LOW,1);

PPT3:=SMA(ABS(LOW-PPT2),3,1)/SMA(MAX(LOW-PPT2,0),3,1)*100;

PPT4:=EMA(IF(CLOSE*1.3,PPT3*10,PPT3/10),3);

PPT5:=LLV(LOW,13);

PPT6:=HHV(PPT4,13);

PPT7:=IF(MA(CLOSE,34),1,0);

PPT8:=EMA(IF(LOW<=PPT5,(PPT4+PPT6*2)/2,0),3)/618*PPT7;

PPT9:=IF(PPT8>100,100,PPT8);

STICKLINE(CROSS(D,RSI5),50,0,8,0),COLORRED;

STICKLINE(CROSS(80,RSI5),-50,0,8,0),COLORGREEN;

DRAWTEXT(CROSS(CCI,-100),-110,’庄入场’),COLOR03B4EC,LINETHICK1;

D2:-100,COLORWHITE;

D1:-220,COLORYELLOW;

D3:100,COLORRED;

IF(CROSS(D,RSI5),50,0),STICK,COLORRED;

IF(CROSS(80,RSI5),-50,0),STICK,COLORGREEN;

PPT9,LINETHICK0,COLORYELLOW;

STICKLINE(PPT9>-120,0,PPT9,3,0),COLOR338FDD;

STICKLINE(PPT9>-120,0,PPT9,2.7,0),COLOR00AAFF;

STICKLINE(PPT9>-120,0,PPT9,2.3,0),COLOR00BBFF;

STICKLINE(PPT9>-120,0,PPT9,2,0),COLOR00CCFF;

STICKLINE(PPT9>-120,0,PPT9,1.8,0),COLOR00DDFF;

STICKLINE(PPT9>-120,0,PPT9,1.5,0),COLOR00EEFF;

STICKLINE(PPT9>-120,0,PPT9,1,0),COLOR00FFFF;

04

图片示例

图片

友情提示:本文内容仅作为知识分享,供交流学习使用,不构成任何投资建议,不作为投资依据。

发布者:股市刺客,转载请注明出处:https://www.95sca.cn/archives/111392
站内所有文章皆来自网络转载或读者投稿,请勿用于商业用途。如有侵权、不妥之处,请联系站长并出示版权证明以便删除。敬请谅解!

(0)
股市刺客的头像股市刺客
上一篇 19分钟前
下一篇 49秒前

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注