《【股票指标公式下载】-【通达信】飞龙顶底(短趋势线、中期大底、短底、支撑、压力).doc》由会员分享,可在线阅读,更多相关《【股票指标公式下载】-【通达信】飞龙顶底(短趋势线、中期大底、短底、支撑、压力).doc(12页珍藏版)》请在金锄头文库上搜索。
1、【通达信】飞龙顶底(短趋势线、中期大底、短底、支撑、压力)-指标公式源码MA5:MA(CLOSE,5);短趋势线:MA(CLOSE,13),COLORRED,LINETHICK2;MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60);MA120:MA(CLOSE,120);MA250:MA(CLOSE,250);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:=MA(CLOSE,8),COLORFF0000;AA12:=MA(CLOSE,12),COLORFF0000;BB10:=(ATAN(AA10 - R
2、EF(AA10,1) * 3.1416) * 10);BB12:=(ATAN(AA12 - REF(AA12,1) * 3.1416) * 10);VAR01:=(OPEN + LOW) + HIGH) + CLOSE) / 4);中期大底:=LLV(LOW,30),COLORCDFFBB;短底:=EMA(VAR01,5);支撑:=HHV(短底,60);压力1:=HHV(LOW,20),COLORFAABEC;中线:=MA(CLOSE,3);DRAWTEXT(FILTER(HIGH 支撑) AND (CLOSE (0 - 1.06) AND (CLOSE 短线),短线,VAR2C);XY:=M
3、A(CLOSE,5);M80:=MA(CLOSE,80);短期底部:=(LLV(HIGH,30) * 0.93),COLOR0000FF;MA80:=LLV(HIGH,30);短期底部2:=SMA(CLOSE,2,1);趋势:=(MA(LOW,10) * 0.96);趋:=(EMA(OPEN,107) * 0.897);超跌位2:=MA(CLOSE,15);GF:=MA(CLOSE,10);MAN:=(SMA(HIGH,21,2) * 1.05);上1:=(HHV(短底,60) * 0.92);压力2:=(SMA(HIGH,21,2) * 1.035);阻挡线:=(SMA(LOW,21,2)
4、* 0.96);下档线:=(CLOSE - LLV(LOW,13) / (HHV(HIGH,13) - LLV(LOW,13) * 100);RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=(3 * RSV) - (2 * K);J:=(CLOSE - MA(CLOSE,6) / MA(CLOSE,6) * 100);VAR2P:=(CLOSE - MA(CLOSE,12) / MA(CLOSE,12) * 100);VAR3P:=(CLOSE - MA(CLOSE,24) / MA(CLOSE,24) * 100);VAR4P:=(J + (2 * VAR2P) +
5、 (3 * VAR3P) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(CLOSE - LLV(LOW,34) / (HHV(HIGH,34) - LLV(LOW,34) * 100);RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=(3 * RSV12) - (2 * K12);J12:=(CLOSE - LLV(LOW,55) / (HHV(HIGH,55) - LLV(LOW,55) * 100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=(3 * RSV24) - (2 *
6、K24);J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24);压力位:=IF(CROSS(D24,D),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D),COLORFFFFFF;支撑位:=IF(CLOSE = MA(CLOSE,20),80,50);U2L:=IF(CLOSE = MA(CLOSE,20),50,20);L2L:=IF(D = 支撑位),HHV(REF(HIGH,1),(BARSLAST(D = 支撑位) AND (REF(D,1) = 支撑位) AND (REF(D,1) 支撑位) - 1),BA
7、RSLAST(D L2L),LOW,REF(LOW,BARSLAST(HIGH L2L);RH4:=IF(HIGH L2L),D,REF(D,BARSLAST(HIGH L2L);RH42:=IF(HIGH RH1) AND (D RH4) AND (D RH1) AND (D RH4) AND (D U2L) AND (REF(D,1) = U2L),LLV(REF(LOW,1),(BARSLAST(D U2L) - 1),REF(LLV(REF(LOW,1),(BARSLAST(D U2L) - 1),BARSLAST(D U2L) AND REF(D,1);RL1:=IF(LOW RH5),HIGH,REF(HIGH,BARSLAST(LOW RH5);RL4:=IF(LOW RH5),D,REF(D,BARSLAST(LOW RH5);RL42:=IF(LOW RL4) AND (D D24),LOW,REF(LOW,BARSLAST(LOW RL4) AND (D D24);长期底部:=LLV(HIGH,30),COLORFF0000;DRAWTEXT(FILTER(RL42 = J24)