通达信夺宝奇兵主图及选股指标公式

2019-05-08    作者:股匠网整理    来源:本站整理

VAR1:=EMA(C3);
VAR2:=EMA(C5);
VAR3:=EMA(C10);
VAR4:=EMA(C20);
VAR5:=EMA(C30);
VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;
VAR7:=(VAR6-REF(VAR615))/REF(VAR615)*100;
VAR8:=(VAR6-REF(VAR615))/REF(VAR6 15)*100;
VAR9:=EMA(VAR78);
STICKLINE(VAR7<1*REF(VAR71)HL0.50)COLORBLUE;{蓝-持币}
STICKLINE(VAR7<1*REF(VAR71)OC5 1)COLORBLUE;
STICKLINE(VAR7>1*REF(VAR71)HL0.50)COLORRED;{红-持股}
STICKLINE(VAR7>1*REF(VAR71)OC5 1)COLORRED;
STICKLINE(VAR7<1*REF(VAR71) AND VAR9>1*REF(VAR91)HL0.50)COLORGREEN;{绿-洗盘}
STICKLINE(VAR7<1*REF(VAR71) AND VAR9>1*REF(VAR91)OC5 1)COLORGREEN;
买进价:=((C-REF(MA(C6)1))/6+MA(C6))*1.004;
买进条件:=CROSS(C买进价) AND 买进价>REF(买进价1);
STICKLINE(买进条件HL0.51)COLORWHITELINETHICK2;{白-买进}
STICKLINE(买进条件OC60)COLORWHITELINETHICK2;
加码价:=((C-REF(MA(C18)1))/18+MA(C18))*1.004;
加码条件:=CROSS(C加码价) AND 加码价>REF(加码价1);
STICKLINE(加码条件HL0.51)COLORYELLOWLINETHICK2;{黄-加码}
STICKLINE(加码条件OC60)COLORYELLOWLINETHICK2;
X1:EMA(C7)COLOR0088FF;
X2:EMA(C21)COLOREE00EE;
X3:EMA(X221)COLORWHITE;
X4:EMA(X327)COLOR009900;
X5:EMA(X2100)COLORFFAA00;
X6:EMA(X5100)COLOR009999;
V1:EMA(CLOSE5);
V2:EMA(EMA(CLOSE29)*1.0110);
DRAWICON(CROSS(V1V2)V21);
LC:=REF(CLOSE1);
RSI:=SMA(MAX(CLOSE-LC0)61)/SMA(ABS(CLOSE-LC)61)*100;
逃 :IF(CROSS(84RSI) HIGHHIGH+1)POINTDOTLINETHICK7COLORYELLOW ;HIGH+1POINTDOTLINETHICK7COLOR000000;
DIFF:=EMA(CLOSE12) - EMA(CLOSE26);
DEA:=EMA(DIFF9);
MACD:=2*(DIFF-DEA);
A1:=BARSLAST(REF(CROSS(DIFFDEA)1));
B1:=REF(CA1+1)>C AND REF(DIFFA1+1)<DIFF AND CROSS(DIFFDEA);
DRAWICON(FILTER(B1>05)L*0.9410);
DRAWTEXT(FILTER(B1>05)L*0.94'M底')COLORGREEN;{MACD底背离}
A2:=BARSLAST(REF(CROSS("KDJ.K"(933)"KDJ.D"(933))1));
B2:=REF(CA2+1)>C AND REF("KDJ.K"(933)A2+1)<"KDJ.K"(933) AND CROSS("KDJ.K"(933)"KDJ.D"(933));
DRAWICON(FILTER(B2>05)L*0.9610);
DRAWTEXT(FILTER(B2>05)L*0.96'K底')COLORYELLOW;{KDJ底背离}
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(61224)"RSI.RSI2"(61224))1));
B3:=REF(CA3+1)>C AND REF("RSI.RSI1"(61224)A3+1)<"RSI.RSI1"(61224) AND CROSS("RSI.RSI1"(61224)"RSI.RSI2"(61224));
DRAWICON(FILTER(B3>05)L*0.9810);
DRAWTEXT(FILTER(B3>05)L*0.98'R底')COLORFFFF00;{RSI底背离}
C1:=BARSLAST(REF(CROSS(DEADIFF)1));
D1:=REF(CC1+1)<C AND REF(DIFFC1+1)>DIFF AND CROSS(DEADIFF);
DRAWICON(FILTER(D1>05)H*1.0712);
DRAWTEXT(FILTER(D1>05)H*1.07'M顶')COLOR0066FF;{MACD顶背离}
C2:=BARSLAST(REF(CROSS("KDJ.D"(933)"KDJ.K"(933))1));
D2:=REF(CC2+1)<C AND REF("KDJ.K"(933)C2+1)>"KDJ.K"(933) AND CROSS("KDJ.D"(933)"KDJ.K"(933));
DRAWICON(FILTER(D2>05)H*1.0512);
DRAWTEXT(FILTER(D2>05)H*1.05'K顶')COLORRED;{KDJ顶背离}
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(61224)"RSI.RSI1"(61224))1));
D3:=REF(CC3+1)<C AND REF("RSI.RSI1"(61224)C3+1)>"RSI.RSI1"(61224) AND CROSS("RSI.RSI2"(61224)"RSI.RSI1"(61224));
DRAWICON(FILTER(D3>05)H*1.0312);
DRAWTEXT(FILTER(D3>05)H*1.03'R顶')COLORFF00FF;{RSI顶背离};

{
选股公式:

买进价:=((C-REF(MA(C6)1))/6+MA(C6))*1.004;
买进条件:=CROSS(C买进价) AND 买进价>REF(买进价1);
V1:=EMA(CLOSE5);
V2:=EMA(EMA(CLOSE29)*1.0110);
买进条件 AND CROSS(V1V2);
}

阅读:395    评论:0

联系我们 - 关于我们 - 网站地图

声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除! 


【电脑版】  【回到顶部】