通达信彩色柱状线指标公式
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
{柱状线}
AAA1:=(DIF1-DEA1)*2*60;
红买:IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL),STICK,COLORRED,LINETHICK8;
绿卖:IF(AAA1<REF(AAA1,1),AAA1,DRAWNULL),STICK,COLORGREEN,LINETHICK8;
黑码线:15;
主力:AAA1-REF(AAA1,1),COLORRED;
DRAWICON(CROSS(主力,黑码线),黑码线,1);
中轴线:0;
关注线:7,COLORLIBLUE;
MM:=主力>30AND主力<70AND红买>0;
DRAWTEXT(MM,(主力)*(0.928),'暴张'),COLORFF00FF;
MM1:=主力>15AND主力<30AND红买>0;
DRAWTEXT(MM1,(主力)*(0.928),'涨'),COLORYELLOW;
MM2:=主力>80AND红买>0;
DRAWTEXT(MM2,(主力)*(0.928),'翻翻涨'),COLORRED;
MM3:=CROSS(主力,2)ANDCROSS(红买,0.5)AND主力>红买AND主力<15;
DRAWTEXT(MM3,(主力)*(0.928),'近期可能涨停'),COLORFFFF00;
通达信指标线颜色公式
VARA:=Ema(REF(CLOSE,1),4);
色彩峰:=(SMA(MAX(CLOSE-VARA,0),6,1)/SMA(Abs(CLOSE-VARA),6,1)*100);
stICKLINE(色彩峰,0,150,5,0),COLOR8BA4FF;
STICKLINE(色彩峰,0,-100,5,0),COLOR8BA433;
STICKLINE(色彩峰>0,0,色彩峰,5,0),COLOR66FF00;
AA:=100*EMA((100*(HIGH-REF(LOW,1))/REF(LOW,1)-2.618),2);
VARA1:=vol/CAPITAL/100<0.015;
VARA2:=C/REF(C,1)>1.05ANDC>O;
VARA3:=CLOSE<=1.47*LLV(CLOSE,58)ANDCLOSE<=15;
VARA4:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
VARZ:=IF(VARA1ANDVARA2ANDVARA4<40,1,0);
PF1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RSV:=SMA(PF1,9,1);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
macd:=2000*(2*(DIFF-DEA))/EMA(C,30),LINETHICK0;
FASTK1:=SMA(RSV,3,1);
K1:=SMA(FASTK1,2,1),COLORYELLOW;
D1:=SMA(K1,5,1),COLORB56C00;
T3:=(K1-D1)>REF((K1-D1),5);
STICKLINE(MacD>=0,0,MACD,4,0),COLOR666666;
STICKLINE(MACD>=0ANDMACD>REF(MACD,1),0,MACD,3,0),COLOREAEAEA;
STICKLINE(MACD<0,0,0.3*MACD,0.1,0),COLOR9A9A9A;
STICKLINE(MACD<0ANDMACD>REF(MACD,1),0,0.3*MACD,0.1,0),COLOR666666;
RSV2:=(CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
FASTK:=SMA(RSV2,3,1);
K:=SMA(FASTK,2,1),COLORYELLOW;
D:=SMA(K,5,1),COLORB56C00;
STICKLINE(K1>=D1,D1,K1,2,0),COLORMAGENTA;
STICKLINE(K1<D1,D1,K1,2,0),COLORB56C00;
STICKLINE(K>=D,D,K,1,0),COLORMAGENTA;
STICKLINE(K<D,D,K,1,0),COLORB56C00;
DRAWTEXT(色彩峰<3.5,-50,'ャ'),COLORDBDBDB;
DRAWTEXT(色彩峰<3.5,-50,'︼'),COLOR688EC1;
{DRAWTEXT(crOSS(0,MACD)AND色彩峰>75,120,'☆'),COLORFFFFFF;}
DRAWTEXT(CROSS(色彩峰,90),98,'ヲ'),COLORDBDBDB;
DRAWTEXT(FILTER(MACD<0
评论(0)