通达信精选【建仓潜伏】套装 主副图 指标源码

{建仓买点副源码如下}
日线5:=MA(C,5),COLORWHITE;
日线11:=MA(C,11),COLORYELLOW;
日线21:=MA(C,21),COLORMAGENTA;
日线31:=MA(C,41),COLORGREEN;
日线60:=MA(C,61),COLORBLUE;
HGW1:=REF(CLOSE,1);
HGW2:=((SMA(MAX((CLOSE - HGW1),0),5,1) / SMA(ABS((CLOSE - HGW1)),5,1)) * 100);
HGW3:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HGW4:=(HIGH - REF(HIGH,1));
HGW5:=(REF(LOW,1) - LOW);
HGW6:=SUM(IF(((HGW4>0) AND (HGW4 > HGW5)),HGW4,0),10);
HGW7:=SUM(IF(((HGW5>0) AND (HGW5 > HGW4)),HGW5,0),10);
HGW8:=((HGW6*100)/HGW3);
HGW9:=((HGW7*100)/HGW3);
HGW10:=MA(((ABS((HGW9-HGW8))/(HGW9 + HGW8)) * 100),5);
HGW11:=(HGW2 + HGW10);
HGW12:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
HGW13:=(HGW2 - HGW12);
龙:=(HGW11 + HGW13);
GSK1:=MA(C,40)>REF(MA(C,40),1) AND REF(MA(C,40),1)>REF(MA(C,40),2);
GSK2:=MA(C,60)>REF(MA(C,60),1) AND REF(MA(C,60),1)>REF(MA(C,60),2);
GSK3:=MA(C,20)>REF(MA(C,20),1) AND REF(MA(C,20),1)>REF(MA(C,20),2);
GSK4:=(GSK1 OR GSK2 OR GSK3);
GSK5:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
GSK6:=C;

HGWZB1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
HGWZB2:=(HIGH+LOW+CLOSE)/3;
HGWZB3:=(HGWZB2-MA(HGWZB2,14))/(0.015*AVEDEV(HGWZB2,14));
HGWZB4:=(HGWZB2-MA(HGWZB2,70))/(0.015*AVEDEV(HGWZB2,70));
HGWZB5:=IF(HGWZB3>=150 AND HGWZB3< 200 AND HGWZB4>=150 AND HGWZB4< 200,10,0);
HGWZB6:=IF(HGWZB3<=-150 AND HGWZB3>-200 AND HGWZB4<=-150 AND HGWZB4>-200,-10,HGWZB5);
HGWZB7:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
HGWZB8:=100-ABS(HGWZB7);
HGWZB9:=IF(HGWZB8< 90,HGWZB8,100);
HGWZB10:=IF(HGWZB1>0,HGWZB1,0);
HGWZB11:=IF(HGWZB4>=200 AND HGWZB3>=150,15,IF(HGWZB4<=-200 AND HGWZB3<=-150,-15,HGWZB6))+60;
HGWZB12:=HGWZB10>48 AND HGWZB11>60 AND HGWZB9< 100;
HGWZB13:=(2*CLOSE+HIGH+LOW)/4;
HGWZB14:=LLV(LOW,5);
HGWZB15:=HHV(HIGH,4);
散户:=EMA((HGWZB13-HGWZB14)/(HGWZB15-HGWZB14)*100,4);
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2);
GS1:=REF(CLOSE,1);
GS2:=SMA(MAX(CLOSE-GS1,0),6,1)/SMA(ABS(CLOSE-GS1),6,1)*100;
GS3:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GS4:=SMA(ABS(LOW-GS3),13,1)/SMA(MAX(LOW-GS3,0),10,1);
GS5:=EMA(GS4,10);
GS6:=LLV(LOW,33);
GS7:=EMA(IF(LOW<=GS6,GS5,0),5);
主力:=FILTER(GS7>REF(GS7,1),5);
JC1:=EMA(CLOSE,5);
JC2:=EMA(CLOSE,60);
XG:=CROSS(JC1,JC2) AND C>MA(C,60);
STICKLINE(XG,0,3,2,0)COLOR00FFFF;

DRAWICON(XG,1.5,34);
DRAWICON(XG,2.5,34);



{建仓买点源码如下}
日线5:MA(C,5),COLORWHITE;
日线11:MA(C,11),COLORYELLOW;
日线21:MA(C,21),COLORMAGENTA;
日线31:MA(C,41),COLORGREEN;
日线60:MA(C,61),COLORBLUE;
HGW1:=REF(CLOSE,1);
HGW2:=((SMA(MAX((CLOSE - HGW1),0),5,1) / SMA(ABS((CLOSE - HGW1)),5,1)) * 100);
HGW3:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HGW4:=(HIGH - REF(HIGH,1));
HGW5:=(REF(LOW,1) - LOW);
HGW6:=SUM(IF(((HGW4>0) AND (HGW4 > HGW5)),HGW4,0),10);
HGW7:=SUM(IF(((HGW5>0) AND (HGW5 > HGW4)),HGW5,0),10);
HGW8:=((HGW6*100)/HGW3);
HGW9:=((HGW7*100)/HGW3);
HGW10:=MA(((ABS((HGW9-HGW8))/(HGW9 + HGW8)) * 100),5);
HGW11:=(HGW2 + HGW10);
HGW12:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
HGW13:=(HGW2 - HGW12);
龙:=(HGW11 + HGW13);
GSK1:=MA(C,40)>REF(MA(C,40),1) AND REF(MA(C,40),1)>REF(MA(C,40),2);
GSK2:=MA(C,60)>REF(MA(C,60),1) AND REF(MA(C,60),1)>REF(MA(C,60),2);
GSK3:=MA(C,20)>REF(MA(C,20),1) AND REF(MA(C,20),1)>REF(MA(C,20),2);
GSK4:=(GSK1 OR GSK2 OR GSK3);
DRAWTEXT(CROSS(龙,0) AND GSK4 AND C>MA(C,60),(LOW * 0.96),'潜伏'),COLORRED;
GSK5:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
GSK6:=C;
箱顶:MA(REF(HHV(GSK6,30),1),2),COLORBLUE,LINETHICK1;
箱底:MA(REF(LLV(GSK6,30),1),2),COLORBLACK,LINETHICK1;
HGWZB1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
HGWZB2:=(HIGH+LOW+CLOSE)/3;
HGWZB3:=(HGWZB2-MA(HGWZB2,14))/(0.015*AVEDEV(HGWZB2,14));
HGWZB4:=(HGWZB2-MA(HGWZB2,70))/(0.015*AVEDEV(HGWZB2,70));
HGWZB5:=IF(HGWZB3>=150 AND HGWZB3< 200 AND HGWZB4>=150 AND HGWZB4< 200,10,0);
HGWZB6:=IF(HGWZB3<=-150 AND HGWZB3>-200 AND HGWZB4<=-150 AND HGWZB4>-200,-10,HGWZB5);
HGWZB7:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
HGWZB8:=100-ABS(HGWZB7);
HGWZB9:=IF(HGWZB8< 90,HGWZB8,100);
HGWZB10:=IF(HGWZB1>0,HGWZB1,0);
HGWZB11:=IF(HGWZB4>=200 AND HGWZB3>=150,15,IF(HGWZB4<=-200 AND HGWZB3<=-150,-15,HGWZB6))+60;
HGWZB12:=HGWZB10>48 AND HGWZB11>60 AND HGWZB9< 100;
DRAWTEXT(HGWZB12 AND COUNT(HGWZB12,30)=1,HIGH*1.05,'有资流出'),COLORRED,COLORRED;
HGWZB13:=(2*CLOSE+HIGH+LOW)/4;
HGWZB14:=LLV(LOW,5);
HGWZB15:=HHV(HIGH,4);
散户:=EMA((HGWZB13-HGWZB14)/(HGWZB15-HGWZB14)*100,4);
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2);
GS1:=REF(CLOSE,1);
GS2:=SMA(MAX(CLOSE-GS1,0),6,1)/SMA(ABS(CLOSE-GS1),6,1)*100;
DRAWTEXT(CROSS(84,GS2),H*1.05,'逃'),COLORYELLOW ;
GS3:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GS4:=SMA(ABS(LOW-GS3),13,1)/SMA(MAX(LOW-GS3,0),10,1);
GS5:=EMA(GS4,10);
GS6:=LLV(LOW,33);
GS7:=EMA(IF(LOW<=GS6,GS5,0),5);
主力:=FILTER(GS7>REF(GS7,1),5);

JC1:=EMA(CLOSE,5);
JC2:=EMA(CLOSE,60);
DRAWTEXT(CROSS(JC1,JC2) AND C>MA(C,60),(LOW * 0.96),'建'),COLORYELLOW;


来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图