通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
公式解读:
VAR1:=XMA(REF((L+OPEN+CLOSE+HIGH)/4,1),2);VAR2:=SMA(ABS(LOW-VAR1),11,1)/SMA(MAX(LOW-VAR1,0),11,1);VAR3:=EMA(VAR2,3);VAR4:=LLV(LOW,11);VAR5:=EMA(IF(LOW =VAR4,VAR3,0),5.5);AA:=IF(VAR5 REF(VAR5,1),VAR5,0),COLORMAGENTA,NODRAW;AA1:=IF(VAR5 REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;AA2:EXPMEMA(AA+AA1,1),COLORRED,NODRAW;AA3:=EXPMEMA(AA-AA1,1);:=EXPMEMA(AA2*AA3,1);STICKLINE(筹码 REF(筹码,1)AND筹码 0,0,筹码,3,0),COLORRED;STICKLINE(筹码 REF(筹码,1)AND筹码 0,0,筹码,2,0),COLORRED;STICKLINE(筹码 REF(筹码,1)AND筹码 0,0,筹码,1.5,0),COLORRED;STICKLINE(筹码 REF(筹码,1)AND筹码 0,0,筹码,0.5,0),COLORRED;STICKLINE(筹码 REF(筹码,1)AND筹码 0,0,筹码,2,0)COLORYELLOW;STICKLINE(筹码 REF(筹码,1)AND筹码 0,0,筹码,3,0),COLORYELLOW;STICKLINE(筹码 REF(筹码,1)AND筹码 0,0,筹码,3,0),COLORYELLOW;STICKLINE(筹码 REF(筹码,1)AND筹码 0,0,筹码,2,0),COLORBLUE;STICKLINE(筹码 REF(筹码,1)AND筹码 0,0,筹码,1,0),COLORCC00FF;DRAWTEXT(CROSS(0,筹码),筹码, *买 ),COLORRED;RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);注意:IF(CROSS(J,3),95,0),COLORYELLOW,LINETHICK2;
A01:=DYNAINFO(7);
A03:=BARSCOUNT(CLOSE);
A04:=(SMA((CLOSE/HHV(HIGH,120)),3,1)*100);
A05:=IF((A03 20),A04,0);
A06:=IF((LOW A01),0,IF((HIGH A01),1,(((A01-LOW)+0.009)/((HIGH-LOW)+0.009))));
A07:=DMA(A06,(VOL/CAPITAL))*60;
A09:=IF((((A07 0)AND(A07 REF(A07,1)))AND(A05 =88)),A07,0);
VAR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
VAR2:=EMA(VAR1,8);
VAR3:=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(VAR3,3)-10,COLORFF0000;
IF(趋势 80,趋势,80);
DRAWICON(CROSS(趋势,0),0,1);
IF((A09 0AND(趋势 20OR趋势 REF(趋势,1)AND趋势 50)),0,A09),COLORFFFF00;
建仓区:=0;
VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;
STICKLINE(趋势 =13,0,20,5,0),COLORCC9900;
{DRAWTEXT(FILTER(趋势 =13,15),30, 准备现金 ),COLORCC9900;}
STICKLINE(趋势 =13ANDVAR4 13,0,50,5,0),COLOR0099FF;
VAR5:=FILTER((趋势 =13ANDVAR4 13),10);
DRAWTEXT(VAR5,60, 买入 ),COLOR0099FF;
STICKLINE(趋势 =90ANDVAR4,0,30,5,0),COLORGRAY;
VAR6:=FILTER((趋势 =90ANDVAR4),10);
DRAWTEXT(VAR6,40, 清仓 ),COLORGRAY;
VAR7:=LLV(LOW,30);
VAR8:=HHV(HIGH,30);
VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;
STICKLINE(VAR9 90,100,105,10,2),COLORRED;
VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100;
DRAWTEXT(IF(CROSS(VAR9,VAR10)ANDVAR9 87,95,0),88, 险 ),COLOR00FF00;
DRAWICON(CROSS(90,VAR9),95,9);
VAR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
VAR12:=HHV(VAR11,30)*8;
火焰山:=EMA(IF(LOW =VAR7AND趋势 40,(VAR11+VAR12),0),3)/618;
STICKLINE(火焰山 0,0,火焰山*1.2,8,0),COLORRED;
VAR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
VAR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
VAR16:=MAX(EMA(VAR13,2)-EMA(VAR14,5),0)*200;
VAR17:=EMA(VAR16,5);
峰:=VAR17;
STICKLINE(VAR17 REF(VAR17,1),0,VAR17,1,0),COLOR00FF00;
VAR18:=MA(趋势,8);
IF(CROSS(VAR2,VAR18)ANDVAR2 15,50,0),COLORRED;
DRAWTEXT(CROSS(趋势,VAR2)AND趋势 REF(趋势,1)AND趋势 50,50, 追涨 ),COLORFF00FF;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA),COLORSTICK;STICKLINE(MACD REF(MACD,1)ANDMACD 0,0,MACD,1,0),COLORGREEN;STICKLINE(MACD REF(MACD,1)ANDMACD 0,0,MACD,1,0),COLORFFCC33;STICKLINE(MACD REF(MACD,1)ANDMACD,0,MACD,1,0),COLORYELLOW;STICKLINE(MACD REF(MACD,1)ANDMACD 0,0,MACD,1,0),COLORMAGENTA;强弱分界:0,COLORBLUE,LINETHICK2;VAR11:=(2*CLOSE+HIGH+LOW)/4;VAR22:=EMA(EMA(EMA(VAR11,4),4),4);J:=(VAR22-REF(VAR22,1))/REF(VAR22,1)*5000;D:=MA(J,3);K:=MA(J,1);J1:=J;Z:D;X:K;
Var1:=(EMA(C,5)-EMA(C,26))*100;
if(Var1 =0,Var1*0.8,0),COLOREEEEFF;
if(Var1 =0,Var1*0.7,0),COLORDDDDFF;
if(Var1 =0,Var1*0.6,0),COLORCCCCFF;
if(Var1 =0,Var1*0.5,0),COLORBBBBFF;
if(Var1 =0,Var1*0.4,0),COLORAAAAFF;
if(Var1 =0,Var1*0.3,0),COLOR9999FF;
if(Var1 =0,Var1*0.2,0),COLOR8888FF;
if(Var1 =0,Var1*0.1,0),COLOR7777FF;
if(Var1 0,Var1*0.8,0),COLORFFB0B0;
if(Var1 0,Var1*0.7,0),COLORFF9D9D;
if(Var1 0,Var1*0.6,0),COLORFF8E8E;
if(Var1 0,Var1*0.5,0),COLORFF7D7D;
if(Var1 0,Var1*0.4,0),COLORFF6A6A;
if(Var1 0,Var1*0.3,0),COLORFF4D4D;
if(Var1 0,Var1*0.2,0),COLORFF2D2D;
if(Var1 0,Var1*0.1,0),COLORFF0000;
Var1:=(EMA(C,5)-EMA(C,26))*100;
if(Var1 =0,Var1*0.8,0),COLOREEEEFF;
if(Var1 =0,Var1*0.7,0),COLORDDDDFF;
if(Var1 =0,Var1*0.6,0),COLORCCCCFF;
if(Var1 =0,Var1*0.5,0),COLORBBBBFF;
if(Var1 =0,Var1*0.4,0),COLORAAAAFF;
if(Var1 =0,Var1*0.3,0),COLOR9999FF;
if(Var1 =0,Var1*0.2,0),COLOR8888FF;
if(Var1 =0,Var1*0.1,0),COLOR7777FF;
if(Var1 0,Var1*0.8,0),COLORFFB0B0;
if(Var1 0,Var1*0.7,0),COLORFF9D9D;
if(Var1 0,Var1*0.6,0),COLORFF8E8E;
if(Var1 0,Var1*0.5,0),COLORFF7D7D;
if(Var1 0,Var1*0.4,0),COLORFF6A6A;
if(Var1 0,Var1*0.3,0),COLORFF4D4D;
if(Var1 0,Var1*0.2,0),COLORFF2D2D;
if(Var1 0,Var1*0.1,0),COLORFF0000;
0,colorffa2af;