通达信趋势为王副图/选股指标 源码 贴图
2021-09-21 09:49:00来源:本站整理浏览:1535
炒股要有自己的原则,不然,就会像无头苍蝇,到处碰壁。在比较成熟的股市中,许多人都认同以下三原则:
1.应该顺势而为,不要跟趋势作对。
2.逢低买入,降低风险。
3.中长线持有,避免频繁操作。
趋势为王指标是按照以上三原则,并借鉴老师的多个公式编写而成,适合中长线、善于在低位找机会的用户,不适合做短线和超短线。
黄色区域表示股价正在低位运行,建议加入自选股关注。趋势线上穿底线,出红箭头和“买入”字样,可以建仓。趋势线持续上行,建议持有。趋势线连续上穿MOV1到MOV5五条线,可以加仓。趋势线上穿顶线,白色区域表示进入高位,可以卖出。
DYNAINFO函数是一组即时行情数据,如前收盘价、最高价和最低价等。DYNAINFO是不是未来函数?争议比较大。如果在意DYNAINFO函数的,请绕道而行!
趋势为王选股源码:
X_1:=MAX(DYNAINFO(3),DYNAINFO(5));
X_2:=MIN(DYNAINFO(3),DYNAINFO(6));
X_3:=X_1-X_2;
X_4:=X_2+X_3*7/8;
X_5:=X_2+X_3*0.5/8;
X_6:=(X_5+X_4)/2;
X_7:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
X_8:=EMA(X_7,3);
XG:REF(X_8,1)<11 AND CROSS(X_8,11) AND CLOSE<X_6;
X_1:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
X_2:=SMA(X_1,9,1);
安全线:EMA(X_2,3),COLORWHITE;
X_3:=MAX(DYNAINFO(3),DYNAINFO(5));
X_4:=MIN(DYNAINFO(3),DYNAINFO(6));
X_5:=X_3-X_4;
X_6:=X_4+X_5*7/8;
X_7:=X_4+X_5*0.5/8;
X_8:=(X_7+X_6)/2;
X_9:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
趋势线:EMA(X_9,3),COLORLIBLUE,LINETHICK2;
X_10:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
支撑线:SMA(X_10,5,1),COLORYELLOW;
顶线:89,COLORGREEN;
底线:11,COLORYELLOW;
中线:50,POINTDOT,COLORWHITE;
X_11:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
MOV1:SMA(X_11,9,1),COLORGREEN;
MOV2:EMA(MOV1,3),COLORLIRED;
MOV3:EMA(MOV2,3),COLORFFCC66;
MOV4:EMA(MOV3,3),COLORCC9966;
MOV5:EMA(MOV4,3),COLORCC6666;
X_12:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND CLOSE<X_8;
X_13:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);
X_14:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND CLOSE>中线;
X_15:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
X_16:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
X_17:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
X_18:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
X_19:=X_13=1 OR X_15=1 OR X_16=1 OR X_17=1 OR X_18=1;
买入:X_12,COLORRED;{www.gpxiazai.com}
STICKLINE(趋势线<11,趋势线,11,5,0),COLORYELLOW;
STICKLINE(趋势线>89,趋势线,89,5,0),COLORWHITE;
DRAWTEXT(买入,趋势线+3.5,1),COLORRED;
DRAWTEXT(X_13,趋势线+3.5,2),COLORLIBLUE;
DRAWICON(买入,趋势线+3.5,1);