股票软件通达信精品指标公式-抄底轨道指标源码通达信公式
公式源码:
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIFF,9);
LC:=REF(CLOSE,1);
RSI1:=((SMA(MAX((CLOSE - LC),0),6,1) / SMA(ABS((CLOSE - LC)),6,1)) * 100);
RSI2:=((SMA(MAX((CLOSE - LC),0),12,1) / SMA(ABS((CLOSE - LC)),12,1)) * 100);
RSI3:=((SMA(MAX((CLOSE - LC),0),24,1) / SMA(ABS((CLOSE - LC)),24,1)) * 100);
A:=MA(CLOSE,14);
A1:=(A * 1.1);
A4:=(A * 0.9);
A2:=(A1 - ((A1 - A4) * 0.191));
A3:=(A1 - ((A1 - A4) * 0.618));
B:=(CROSS(K,D) AND (CLOSE < A3));
B1:=(CROSS(K,D) AND (CLOSE > A3));
B2:=CROSS(RSI1,RSI2);
B3:=CROSS(RSI1,RSI3);
B4:=CROSS(D,20);
B5:=CROSS(RSI1,RSI3);
超短:=(((((((((CROSS((A4 * 1.01),LOW) AND (COUNT(CROSS((A4 * 1.01),LOW),BARSLAST(B)) = 1)) AND (HIGH >= REF(LOW,1))) AND (LOW > LLV(LOW,16))) OR (((CROSS((A4 * 1.01),LOW) AND (COUNT((CLOSE > (REF(CLOSE,1) * 1.09)),BARSLAST(CROSS(DIFF,DEA))) >= 1)) AND (COUNT(CROSS((A4 * 1.01),LOW),BARSLAST(CROSS(DIFF,DEA))) <= 2)) AND (OPEN >= (REF(LOW,1) * 0.97)))) OR (((CROSS((A4 * 1.01),LOW) AND (COUNT(CROSS((A4 * 1.01),LOW),BARSLAST(B1)) = 1)) AND (HIGH >= REF(LOW,1))) AND (LOW > LLV(LOW,16)))) OR (((CROSS((A4 * 1.01),LOW) AND (COUNT(CROSS((A4 * 1.01),LOW),BARSLAST(B2)) = 1)) AND (HIGH >= REF(LOW,1))) AND (LOW > LLV(LOW,16)))) OR (((CROSS((A4 * 1.01),LOW) AND (COUNT(CROSS((A4 * 1.01),LOW),BARSLAST(B3)) = 1)) AND (HIGH >= REF(LOW,1))) AND (RSI3 > 40))) OR (((CROSS((A4 * 1.01),LOW) AND (COUNT(CROSS((A4 * 1.01),LOW),BARSLAST(B4)) = 1)) AND (HIGH >= REF(LOW,1))) AND (LOW > LLV(LOW,16)))) OR (((CROSS((A4 * 1.01),LOW) AND (COUNT(CROSS((A4 * 1.01),LOW),BARSLAST(B5)) = 1)) AND (HIGH >= REF(LOW,1))) AND (RSI3 > 50))),LINETHICK0;
DRAWTEXT(((COUNT(超短,2) = 1) AND NOT(超短)),LLV(LOW,2),'----------'),COLOR00FFFF;
DRAWTEXT(((COUNT(超短,2) = 1) AND NOT(超短)),(LLV(LOW,2) * 0.99),'止损线'),COLOR00FFFF;
DRAWTEXT((超短),(HIGH * 1.02),'★'),COLOR0000FF;
DRAWTEXT(((BARSLAST(超短) = 2)),(HIGH * 1.02),'◆'),COLOR00FF00;
STICKLINE(((((CLOSE >= OPEN) AND (HIGH > (REF(LOW,BARSLAST(超短)) * 1.03))) AND (BARSLAST(超短) >= 1)) AND (BARSLAST(超短) <= 5)),OPEN,CLOSE,3.1,0),COLOR0000FF;
STICKLINE(((((CLOSE >= OPEN) AND (HIGH > (REF(LOW,BARSLAST(超短)) * 1.03))) AND (BARSLAST(超短) >= 1)) AND (BARSLAST(超短) <= 5)),HIGH,LOW,0,0),COLOR0000FF;
STICKLINE(((((CLOSE < OPEN) AND (HIGH > (REF(LOW,BARSLAST(超短)) * 1.03))) AND (BARSLAST(超短) >= 1)) AND (BARSLAST(超短) <= 5)),OPEN,CLOSE,3.1,0),COLOR00FF00;
STICKLINE(((((CLOSE < OPEN) AND (HIGH > (REF(LOW,BARSLAST(超短)) * 1.03))) AND (BARSLAST(超短) >= 1)) AND (BARSLAST(超短) <= 5)),HIGH,LOW,0,0),COLOR00FF00;
DRAWICON((超短),(LOW * 0.99),1);
均价线:=AMOUNT/V/100;
YNGS:=MA(均价线,14);
A10:YNGS*1.1,LINETHICK1,COLOR0000FF;
A40:YNGS*0.9,LINETHICK1,COLOR00FF00;
A20:A10-(A10-A4)*0.191,LINETHICK1,COLORFF00FF;
A30:A10-(A10-A4)*0.618,LINETHICK1,COLOR00FFFF;
特别提示:
选股预警指标编写 ,不同主流行情软件间指标转换。 请联系微信:396950280
一个聚百万原创指标公式圈子