大盘风控(源码 副图 通达信)无未来函数
适合超短,打板,波段行情明码标注 ,帮助你抄底逃顶
DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
大盘:INDEXC,COLORWHITE,NODRAW;
:INDEXC-REF(INDEXC,1),COLORLIGRAY,NODRAW;
涨跌幅: /REF(大盘,1)*100,NODRAW;
大盘1:=EMA(INDEXC,500)/EMA(C,500);
大盘线:=INDEXC/大盘1,LINETHICK1,COLORBLUE;
沪深: 000300$CLOSE ,NODRAW;
_ : 000300$CLOSE -REF( 000300$CLOSE ,1),COLORLIGRAY,NODRAW;
K2:=1;
A3:=IF(K2!=2,EMA((EMA(INDEXC,5)+EMA(INDEXC,6)+EMA( INDEXC,7))/3,3),DRAWNULL),COLORCYAN,LINETHICK2;{COLOR1030FF;};
支撑:=IF(MA(INDEXC,3) REF(A3,1),A3,DRAWNULL),COLORYELLOW,LINETHICK2;{黄金支撑线};
五:EMA(INDEXC,5),COLORWHITE;
大盘30:=EMA(INDEXC,30);
VAR2:=INDEXC*VOL;
VAR3:=EMA((EXPMA(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6)+EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,30);
VAR4:=EXPMA(INDEXC,9);
天道:=EXPMA(VAR4*1.14,5)COLORFF00FF;
牛熊:1.06*VAR3,COLORFFFFFF LINETHICK2;
NOTEXT1:IF(牛熊 REF(牛熊,1),牛熊,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT2:IF(牛熊 REF(牛熊,1),牛熊,DRAWNULL),COLORFFFF00,LINETHICK2;
地道:VAR3*0.94 COLOR00FFFF;
水道:=EXPMA(VAR4*0.86,5)COLORFF962D;
人道:EMA(INDEXC,10)COLOR0000FF,LINETHICK2;
MA25:=MA(INDEXC,25)LINETHICK2,COLORWHITE;
系统风险:IF(大盘 人道 OR 五 人道, 人道,DRAWNULL),LINETHICK2,COLORGREEN;
买:IF(大盘 人道 AND 五 人道 AND UPNDAY(人道,1), 人道,DRAWNULL),COLORMAGENTA,LINETHICK2 ;
DRAWTEXT(CROSS(人道,五) OR CROSS(人道,大盘),INDEXH,'↙卖)'),COLORRED;
DRAWTEXT(CROSS(五,人道) AND 大盘 人道,INDEXL,'↖买'),COLORRED;
MA55:=EMA(INDEXC,55),COLORYELLOW;
九十九:=MA(INDEXC,99)COLORMAGENTA,LINETHICK2;
年线:=MA(INDEXC,144),COLORYELLOW;
系统风险2:=BARSLAST((CROSS(MA25,大盘) AND CROSS(MA55,大盘))OR /大盘 =0.97 ),NODRAW;{ OR (REF(MA10,1) REF(MA5,1) AND MA5=MA10)}{下跌后,5日均线和10日均线死叉}
系统风险1:=IF(CROSS(MA25,大盘) AND CROSS(MA55,大盘) OR /大盘 =0.97 ,系统风险, DRAWNULL),NODRAW;