通达信红绿反扣 副图源码
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大盘资金进场:
IF(VB>=0,VB,0),COLORYELLOW;
大盘资金撤走:
IF(VB<=0,VB,0),COLORRED;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:= EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
{准备现金: STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;}
AA1:=(趋势线<=13) AND FILTER((趋势线<=13),15);
DRAWTEXT (AA1,120,'准备'),COLORCC9900;
{买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),COLOR0099FF; }
BB1:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;
DRAWTEXT (BB1,90,'○买入'),COLORWHITE;
{见顶清仓: STICKLINE(趋势线>=90 AND V12,0,30,5,0),COLORWHITE;}
CC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);
DRAWTEXT (CC,-30,'△见顶'),COLORWHITE;
{“通达信薛斯撑压主图”指标的源代码:}
N9:=5;N1:=30;N2:=3;P1:=15;P2:=3;
LOWERL:=MA(L,N1)*(1-P1/100),COLOR00FF00;
AA11:=CROSS(MA(C,5),MA(C,10));
AC:=BARSLAST(AA11);
上穿值:=REF(C,AC),NODRAW;
大底:=CROSS(LOWERL,L) ,NODRAW ;
DRAWTEXT (大底,110,'△大底'),COLORWHITE;
顶:=REF(HHV(H,90),3),NODRAW;
绝顶:=REFDATE(顶,DATE),NODRAW;
跑:=绝顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;
DRAWTEXT (跑,-10,'△绝顶'),COLORWHITE;
- 上一篇公式:通达信最牛抄底副图指标公式
- 下一篇公式:通达信60分钟操作超级短线绝世组合指标公式