通达信绝无仅有主图指标【长期趋势 红买绿卖 短期趋势】

2015-12-26 19:18:00来源:本站整理浏览:704

 VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
 VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
 VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
 VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
 VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
 {绿K}
 STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,O,3 ,0 ),COLOR00BB00;
 STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,O,2 ,0 ),COLOR00DD00;
 STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,O,1,0 ),COLOR00FF00;
 VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ);
 VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ);
 {粉红}
CAX:=MAX(REF(CLOSE,2),REF(CLOSE,1));
 STICKLINE(VAR19MZ,CAX,O,3 ,0 ),COLORBB11BB;
 STICKLINE(VAR19MZ,CAX,O,2 ,0 ),COLORDD44DD;
 STICKLINE(VAR19MZ,CAX,O,1 ,0 ),COLORFF66FF;
 {黄色}
CIN:=MIN(REF(CLOSE,2),REF(CLOSE,1));
 STICKLINE(VAR1AMZ,CIN,O,3,0),COLOR00AAFF;
 STICKLINE(VAR1AMZ,CIN,O,2,0),COLOR00CCFF;
 STICKLINE(VAR1AMZ,CIN,O,1,0),COLOR00EEFF;
牛节点:=CROSS(EMA(C,5),EMA(C,30))AND CROSS(EMA(C,10),EMA(C,20));
 DRAWICON(牛节点,L*0.99,13);
 CSAR:=SAR(10,2,20);
持股:=IF(CSAR<=L,CSAR,0),CIRCLEDOT,COLORRED{持股};
短期趋势:=EMA(SLOPE(C,21)*20+C,42),POINTDOT,LINETHICK1,COLORYELLOW;
 STICKLINE(1,短期趋势,短期趋势,1,0),COLORYELLOW;
止损:=EMA(C,5),COLORYELLOW,LINETHICK1;
菩提B:=XMA(H,20);
参买:=IF(止损>=REF(止损,1),止损,DRAWNULL),LINETHICK2,COLORRED;
 DRAWICON(CROSS(L,CSAR) AND 参买>0 AND H<菩提B AND 持股>0
 AND H>长期趋势,(LOW*0.99),5);
 VVAR1D:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);
短底:=EMA(VVAR1D,5);
支撑:=HHV(短底,60);
 MAN:=(SMA(HIGH,21,2) * 1.05);
下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
中D:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);
 X1D:=EMA(中D,10);
 RSVD:=SMA(下档线,3,1);
 K大:=SMA(RSVD,3,1);
 D大:=((3 * RSVD) - (2 * K大));
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 * K24));
压力位:=IF(CROSS(D24,D大),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D大)))),COLORFFFFFF;
牛浮面:=CROSS(CLOSE,MA20) AND HIGH < 压力位 AND OPEN < MA20
 AND HIGH < 支撑 AND MAN - REF(MAN,1) > 0 AND X1D - REF(X1D,1)>0 AND
 D大 < 63 AND MA20 - REF(MA20,1) > 0,COLORWHITE;
 DRAWTEXT(牛浮面,L,"●牛浮面"),COLORWHITE;
全绿K2:=C>卖出 OR (H>卖出 AND O>C);
 STICKLINE(全绿K2,C,O,3,0),COLOR00BB00;
 STICKLINE(全绿K2,C,O,2,0),COLOR00DD00;
 STICKLINE(全绿K2,C,O,1,0),COLOR00FF00;
 STICKLINE(C>=O,C,H,0,0),COLOR0000FF;
 STICKLINE(C>=O,O,L,0,0),COLOR0000FF;
 STICKLINE(C<O,O,H,0,0),COLOR00FF00;
 STICKLINE(C<O,C,L,0,0),COLOR00FF00;
 {关键价位&支撑}
STICKLINE(ISLASTBAR,ZC1,ZC1,120,0),LINETHICK1,COLORGREEN;
 DRAWTEXT(CURRBARSCOUNT=15,ZC1*1.02,"关键价位"),COLORGREEN;
 DRAWNUMBER(ISLASTBAR,ZC1*1.02,ZC1+1000),COLORGREEN;
 STICKLINE(ISLASTBAR,ZC2,ZC2,120,0),LINETHICK1,COLORYELLOW;
 DRAWTEXT(CURRBARSCOUNT=15,ZC2*0.99,"支撑价位"),COLORYELLOW;
 DRAWNUMBER(ISLASTBAR,ZC2*0.99,ZC2+1000),COLORYELLOW;
决策:=IF(ISLASTBAR,压力位,DRAWNULL),COLORMAGENTA;
 STICKLINE(ISLASTBAR ,决策,决策,60,1),LINETHICK3,COLORFFFFFF;
底部:=LLV(HIGH,30),COLOR00FF00;
超跌:=IF(ISLASTBAR,底部,DRAWNULL),COLORRED;
 STICKLINE(ISLASTBAR ,超跌,超跌,60,1),LINETHICK3,COLORRED;
 STICKLINE(ISLASTBAR,REF(今重心,1),REF(今重心,1),10,0),COLORGREEN;
 

公式有未来函数

 

上一页  [1] [2] [3] 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式