【股票指标公式下载】-【通达信】黑马营双核(做空、做多、趋势线)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

【通达信】黑马营双核(做空、做多、趋势线)-指标公式源码

V1:=(C*2+H+L)/4*10;

V2:=EMA(V1,11)-EMA(V1,30);

V3:=EMA(V2,5);

V4:=2*(V2-V3)*4;

做空:= IF(V4<=0,V4,0),COLORGREEN;

做多:= IF(V4>=0,V4,0);

V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;

V6:=EMA(3*V5-2*SMA(V5,18,1),5);

V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;

V8:=(INDEXC*2+INDEXH+INDEXL)/4;

V9:=EMA(V8,13)-EMA(V8,34);

VA:=EMA(V9,3);VB1:=(V9-VA)/2;

V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);

趋势线:=EMA(V11,4)*0.99;

V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*88;

空仓: STICKLINE(PBX.PBX1(3)

AA:=PBX.PBX1(3)

PBX.PBX3(7)

DRAWTEXT (AA,65,'空'),COLORCC9900;

抄底: STICKLINE((DMI.PDI(14,6)<5 AND

DMI.ADX(14,6)>70),0,50,4,0),COLORYELLOW;

DRAWTEXT (抄底,55,'抄底'),COLORYELLOW;

EEE:=(((SUM(VOL,5)/5DMI.MDI AND CR>CR.MA2),10);

头部: STICKLINE((DMI.ADX>70 AND DMI.MDI<5 AND 趋势线>=85) OR (DMI.ADX>68 AND DMI.MDI<6) OR (DMI.PDI>40 AND CROSS(DMI.ADXR,DMI.PDI)) OR (EVERY(趋势线>=90,10) AND CROSS(90,趋势线)) OR (DMI.PDI>50 AND 趋势线>=78 AND CROSS(DMI.ADXR,DMI.PDI)),70,100,4,0),COLORGRAY;

DRAWTEXT(头部>0,62,'头部'),COLORLIGRAY;

EE:=(((SUM(VOL,5)/5DMI.MDI AND CR>CR.MA2),10);

FF:=PBX.PBX1(3)>PBX.PBX2(5) AND PBX.PBX2(5)>PBX.PBX3(7) AND

PBX.PBX3(7)>PBX.PBX4(9);

持有:STICKLINE( PBX.PBX1(3)>PBX.PBX2(5) AND PBX.PBX2(5)>PBX.PBX3(7) AND PBX.PBX3(7)>PBX.PBX4(9),0,25,5,0),COLORWHITE;

DRAWTEXT (FF,35,'持'),COLORWHITE;

当日成

本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12); 疯牛线:=MA(当日成本,3);

VAR1:=(EXPMEMA(当日成本,3)>EXPMEMA(当日成本,5) AND EXPMEMA(当日成

本,5)>EXPMEMA(当日成本,7) AND MA(CLOSE,3)>MA(CLOSE,5) AND

MA(CLOSE,5)>MA(CLOSE,7));

VAR2:=(REF(VAR1,2)<0.5 AND REF(VAR1,3)<0.5 AND MA(C,5)>REF(MA(C,5),1) AND CROSS(VAR1,0.5) AND FILTER(CROSS(VAR1,0.5),7)) OR

((REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),3) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),5) OR

REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),6) OR

REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),4) OR

REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),2)) AND NOT(REF(MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7),1)) AND (MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)) AND

FILTER((REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),3) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),5) OR REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),6) OR

REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),4) OR

REF((MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),2)) AND NOT(REF(MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7),1)) AND (MA(CLOSE,3)>MA(CLOSE,5) AND MA(CLOSE,5)>MA(CLOSE,7)),7) AND 疯牛线>REF(疯牛线,1)) AND MA(VOL,3)>MA(VOL,10) AND V2>=V3;

清仓: STICKLINE((REF(DMI.ADX,1)>REF(DMI.ADXR,1) AND REF(DMI.ADXR,1)>58 AND DMI.PDI>DMI.MDI AND 趋势线>60 AND CROSS(DMI.ADXR,DMI.ADX) AND 趋势线<90) OR (EVERY(REF(趋势线,1)>90,10) AND 趋势线

<90),65,100,4,0),COLORGREEN;

DRAWTEXT (清仓,60,'反弹清仓'),COLORGREEN;

杀入: STICKLINE((REF(DMI.ADXR,1)80 AND DMI.PDI<10 AND CROSS(DMI.ADXR,DMI.ADX) AND

DMI.MDI>DMI.PDI),0,50,4,0),COLORGREEN;

相关文档
最新文档