以下是通达信跟庄指标公式源码和使用说明
使用说明:
通达信跟庄趋势指标可以帮助判断价格趋势的强弱和趋势的可能性。当趋势指标位于线上方时,表明价格处于上涨趋势;当趋势指标位于庄家线下方时,表明价格处于下跌趋势。
当趋势指标上穿庄家线时,可能预示着价格的上涨趋势即将开始,这时候可以考虑买入。相反,当趋势指标下穿庄家线时,可能预示着价格的下跌趋势即将开始,这时候可以考虑卖出。
参数和周期的选择是根据个人的交易风格和市场特点来确定的。较小的参数和周期会使指标更加敏感,但也容易受到噪音的干扰;较大的参数和周期会使指标更加平滑,但也可能延迟信号的产生。
在使用通达信跟庄趋势指标时,建议结合其他技术分析工具和分析,综合判断市场的走势和股票的价值,以增加交易的准确性和成功率。
通达信跟庄趋势指标公式源码:
上:=(SMA(HIGH,21,2)*1.05);
DRAWTEXT(FILTER(((((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,1)))AND(HIGH 上))AND(CLOSE 上)),5),(HIGH+0.35),'减'),colorFFFFFF;
下轨道:(SMA(LOW,21,2)*0.969),POINTDOT,color00FFFF;
BMA:=MA(CLOSE,118);
阻挡:=(SMA(HIGH,21,2)*1.05);
RSV:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3*K)-(2*D));
RSV12:=(((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*100);
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=((3*K12)-(2*D12));
RSV24:=(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*100);
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=((3*K24)-(2*D24));
支撑位:=IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24))));
压力位:IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),color00FF00;
{U2L:=IF((CLOSE =MA(CLOSE,20)),80,50);
L2L:=IF((CLOSE =MA(CLOSE,20)),50,20);
RH1:=IF(((J U2L)AND(REF(J,1) =U2L)),HHV(REF(HIGH,1),(BARSLAST(((J =U2L)AND(REF(J,1) U2L)))-1)),REF(HHV(REF(HIGH,1),(BARSLAST(((J =U2L)AND(REF(J,1) U2L)))-1)),BARSLAST(((J U2L)ANDREF(J,1)))));
RH4:=IF((HIGH RH1),LOW,REF(LOW,BARSLAST((HIGH RH1))));
RH42:=IF((HIGH RH1),J,REF(J,BARSLAST((HIGH RH1))));
RH5:=IF((((HIGH RH4)AND(J RH42))AND(J J24)),HIGH,REF(HIGH,BARSLAST((((HIGH RH4)AND(J RH42))AND(J J24)))));
RL1:=IF(((J L2L)AND(REF(J,1) =L2L)),LLV(REF(LOW,1),(BARSLAST(((J =L2L)AND(REF(J,1) L2L)))-1)),REF(LLV(REF(LOW,1),(BARSLAST(((J =L2L)AND(REF(J,1) L2L)))-1)),BARSLAST(((J L2L)ANDREF(J,1)))));
RL4:=IF((LOW RL1),HIGH,REF(HIGH,BARSLAST((LOW RL1))));
RL42:=IF((LOW RL1),J,REF(J,BARSLAST((LOW RL1))));
RL5:=IF((((LOW RL4)AND(J RL42))AND(J J24)),LOW,REF(LOW,BARSLAST((((LOW RL4)AND(J RL42))AND(J J24)))));}
CB:=((AMOUNT/VOL)/100);
CD:=((CB HIGH)OR(CB LOW));
趋势:=MA(CLOSE,3);
MAP:=MA(CLOSE,8);
AA5:=MA(CLOSE,21);
AA10:MA(CLOSE,8),colorwhite;
AA12:MA(CLOSE,12),coloryellow;
BB10:=((ATAN((AA10-REF(AA10,1)))*3.1416)*10);
BB12:=((ATAN((AA12-REF(AA12,1)))*3.1416)*10);
MA13:=MA(CLOSE,13);
DRAWTEXT(FILTER(((((((CLOSE/OPEN) 1.04)AND((CLOSE-REF(CLOSE,1)) 0))AND(CLOSE 下轨道))AND((AA10-REF(AA10,1)) 0))AND(CLOSE 上)),3),(LOW-0.28),'追'),coloryellow;
VARD:=((((OPEN+LOW)+HIGH)+CLOSE)/4);
支撑:=EMA(VARD,5);
短期底部:=LLV(OPEN,30);
X1:=(((((3*CLOSE)+HIGH)+LOW)+OPEN)/6);
X2:=EMA(X1,10);
X3:=REF(X2,1);
X4:=((REF(HIGH,1)+REF(LOW,1))/2);
X5:=(MA(CLOSE,21)+(2*STD(CLOSE,21)));
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE-X6),0),7,1)/SMA(ABS((CLOSE-X6)),7,1))*100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
MAP1:=MA(CLOSE,60);
30:=MA(CLOSE,30);
均线89:=MA(CLOSE,89);
均线:=MA(CLOSE,16);
均线34:=MA(CLOSE,34);
均线55:=MA(CLOSE,55);
VAR1:=EMA(CLOSE,8);
VAR2:=EMA(VAR1,20);
VAR3:=CROSS(VAR1,VAR2);
VAR4:=(VAR1 MA(CLOSE,60));
VAR5:=(((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36)))*100);
VAR6:=SMA(VAR5,5,1);
VAR7:=SMA(VAR6,8,1);
VAR8:=(CROSS(VAR6,VAR7)AND(VAR7 16));
VAR9:=((CLOSE (LLV(CLOSE,60)+(0.3*LLV(CLOSE,60))))ANDVAR8);
VARA:=IF((CLOSE 1000),VAR8,VAR9);
黑马起步:=(VAR3ANDVAR4);
逃遁:=VARA;
均线20:=MA(CLOSE,20);
均线120:=MA(CLOSE,120);
牛熊线:=MA(CLOSE,250);
VA:=CROSS(MA(CLOSE,19),MA(CLOSE,120));
VB:=(MA(CLOSE,20) MA(CLOSE,120));
VC:=CROSS(MA(CLOSE,120),MA(CLOSE,89));
VD:=(MA(CLOSE,20) MA(CLOSE,120));
VE:=CROSS(MA(CLOSE,20),MA(CLOSE,250));
VF:=(MA(CLOSE,20) MA(CLOSE,250));
VG:=CROSS(MA(CLOSE,250),MA(CLOSE,20));
{DRAWTEXT(FILTER(((((((((OPEN 均线120)AND(均线20 均线120))AND(LOW =均线120))AND((均线20-REF(均线20,1)) 0))AND(CLOSE OPEN))AND((均线120-REF(均线120,1)) 0))AND(HIGH RH5))AND(CLOSE =均线120)),15),LOW,'★120跳马'),color0089E0;
DRAWTEXT((((VAAND((均线120-REF(均线120,1)) 0))AND(HIGH RH5))AND(CLOSE OPEN)),LOW,'★宝马望月'),colorFFFFFF;}
DRAWTEXT((((((均线-REF(均线,1)) 0)ANDCROSS(均线20,均线120))AND(LOW =均线120))AND(CLOSE =均线120)),LOW,''),colorFFFFFF;
短期底部2:LLV(HIGH,30),LINETHICK2,color0000FF;
上轨:(SMA(HIGH,21,2)*1.092),POINTDOT,colorFFFFFF;
中轨道:(SMA(HIGH,21,2)*1.017),POINTDOT,colorFFFFFF;
DRAWTEXT(FILTER(((((LOW 下轨道)AND(CLOSE MA(CLOSE,15)))AND(CLOSE 短期底部2))AND(HIGH 压力位)),10),LOW,'5%'),color9DC522;
DRAWTEXT(((((((HIGH =均线120)AND(CLOSE REF(CLOSE,1)))AND(CLOSE REF(CLOSE,1)))AND(HIGH 上))AND(CLOSE 上))AND(CLOSE 均线120)),(HIGH+0.05),'减仓'),color00FF00;
DRAWTEXT(FILTER(((HIGH 阻挡)AND(CLOSE 阻挡)),5),(HIGH+0.15),'');
DRAWTEXT(((VE VG)AND(HIGH 阻挡)),(LOW-0.65),'★黑马短线'),color00FFFF;
DRAWTEXT(FILTER(((((((((((OPEN X2)AND(CLOSE X2))AND((支撑-REF(支撑,1)) 0))AND((支撑-REF(支撑,1)) 0))AND(CLOSE 阻挡))AND((均线-REF(均线,1)) 0))AND(CLOSE =均线))AND(HIGH 阻挡))AND((AA10-REF(AA10,1)) 0))AND((阻挡-REF(阻挡,2)) 0)),11),(LOW-0.11),''),color0000FF;
DRAWTEXT(FILTER(((((((OPEN X2)AND(WINNER(CLOSE) 0.2))AND(CLOSE X2))AND((X2-REF(X2,1)) 0))AND(HIGH 阻挡))AND((CLOSE-REF(CLOSE,1)) 0.35)),4),(LOW-0.05),'狂★奔'),colorD18073;
DRAWTEXT((((((((CROSS(支撑,均线)AND(HIGH 中轨道))AND(WINNER(CLOSE) 0.2))AND(CLOSE 阻挡))AND(CLOSE OPEN))AND(LOW =X2))AND(CLOSE =X2))ANDCROSS(支撑,X2)),LOW,'起步'),color00FFFF;
DRAWTEXT(CROSS(X4,X5),HIGH,''),color00B4FF;
DRAWTEXT(X9,(HIGH*1.05),'卖'),color00ff00;
DRAWTEXT((((黑马起步 0)AND(LOW =X2))AND((均线-REF(均线,1)) 0)),(LOW-0.11),'起步'),colorwhite;
DRAWTEXT((逃遁 0),(HIGH*1.14),''),color0000FF;
RDV:=SMA(LOW,8,1);
DRAWTEXT(((((CROSS(K,D)AND(CLOSE =OPEN))AND((X2-REF(X2,1)) 0))AND((RDV-REF(RDV,1)) 0))AND(K =33)),(LOW-0.08),''),color8500DE;
DRAWTEXT(FILTER((((((((LOW =短期底部)AND(WINNER(CLOSE) 0.2))AND(CLOSE 牛熊线))AND(HIGH 阻挡))AND((X2-REF(X2,1)) 0))AND(CLOSE OPEN))AND(HIGH =X3)),5),(LOW-0.03),'←黑马筑底'),color85B256;
RCK:=(SMA(LOW,21,2)*0.95);
趋势线:=SMA(LOW,5,1);
大胆买入:DRAWTEXT(((CROSS(趋势线,RCK)AND(LOW =X2))AND((X2-REF(X2,1)) 0)),LOW,'←★大胆买入'),colorE50000;
B1:=(((HIGH+LOW)+CLOSE)/3);
B6:=HHV(B1,(4*15));
B7:=LLV(B1,(4*15));
B8:=(B6-B7);
飞龙线:=(MA(((B1-B7)/B8),2)*80);
DRAWTEXT(FILTER(((((((飞龙顶底线 =1)AND(WINNER(CLOSE) 0.02))AND(HIGH 趋势线))AND(CLOSE OPEN))AND(LOW =短期底部))AND(CLOSE 短期底部)),8),(LOW-0.02),'←黑马寻底'),colorE7DD1F;
DRAWTEXT(FILTER((((((((LOW =短期底部)AND(WINNER(CLOSE) 0.015))AND((OPEN/CLOSE) 0.99))AND((J-REF(J,1)) 0))AND(CLOSE OPEN))AND(HIGH 支撑位))AND(CLOSE 短期底部)),25),(LOW-0.09),'←开始建仓'),color00FFFF;
DRAWTEXT(FILTER((((((((LOW =均线30)AND((AA10-REF(AA10,1)) 0))AND((均线-REF(均线20,1)) 0))AND((趋势线-REF(趋势线,1)) 0))AND(CLOSE =均线30))AND(WINNER(CLOSE) 0.15))AND((CLOSE/OPEN) 1.01)),3),LOW,''),color76B0FC;
DRAWTEXT((((((OPEN =均线)AND((均线30-REF(均线30,1)) 0))AND(CLOSE 均线89))AND(BB10 1))AND((CLOSE/OPEN) 1.04)),LOW,''),colorCC99FF;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,5,0),colorFF5B00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,5,0),colorFF6C00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,5,0),colorFF7B00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,5,0),colorFF9C00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,5,0),colorFFBE00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,3.5,0),colorFFCC00;
STICKLINE((OPEN =CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,5,0),color070084;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,5,0),color0000A3;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,5,0),color0000B7;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,5,0),color0000CD;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,5,0),color0000E9;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,3,0),color0754E9;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,1.5,0),color076EF3;
STICKLINE((CLOSE =OPEN),CLOSE,OPEN,1,0),color077BF3;
STICKLINE((CLOSE OPEN),OPEN,LOW,1,0),color0726CA;
STICKLINE((CLOSE OPEN),CLOSE,HIGH,1,0),color0726CA;
STICKLINE((OPEN CLOSE),CLOSE,LOW,1,0),colorDE9100;
STICKLINE((OPEN CLOSE),OPEN,HIGH,1,0),colorDE9100;
STICKLINE(((((CLOSE/OPEN) 1.04)AND(CLOSE 阻挡))AND((CLOSE-REF(CLOSE,1)) 0)),CLOSE,OPEN,5,0),color0090FF;
STICKLINE(((((CLOSE/OPEN) 1.04)AND(CLOSE 阻挡))AND((CLOSE-REF(CLOSE,1)) 0)),CLOSE,OPEN,5,0),color009FFF;
STICKLINE(((((CLOSE/OPEN) 1.04)AND(CLOSE 阻挡))AND((CLOSE-REF(CLOSE,1)) 0)),CLOSE,OPEN,4,0),color00B5FF;
STICKLINE(((((CLOSE/OPEN) 1.04)AND(CLOSE 阻挡))AND((CLOSE-REF(CLOSE,1)) 0)),CLOSE,OPEN,2,0),color00E4FF;
STICKLINE(((((CLOSE/OPEN) 1.04)AND(CLOSE 阻挡))AND((CLOSE-REF(CLOSE,1)) 0)),OPEN,LOW,0.7,0),color00FFFF;
STICKLINE(((((CLOSE/OPEN) 1.04)AND(CLOSE 阻挡))AND((CLOSE-REF(CLOSE,1)) 0)),CLOSE,HIGH,0.7,0),color00FFFF;
STICKLINE(((((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,1)))AND(HIGH 阻挡))AND(CLOSE 阻挡)),OPEN,LOW,0.7,0),colorFF76FF;
STICKLINE(((((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,1)))AND(HIGH 阻挡))AND(CLOSE 阻挡)),CLOSE,HIGH,0.7,0),colorFF76FF;
STICKLINE(((((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,1)))AND(HIGH 阻挡))AND(CLOSE 阻挡)),CLOSE,OPEN,5,0),colorFF00FF;
STICKLINE(((((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,1)))AND(HIGH 阻挡))AND(CLOSE 阻挡)),CLOSE,OPEN,5,0),colorFF62FF;
STICKLINE(((((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,1)))AND(HIGH 阻挡))AND(CLOSE 阻挡)),CLOSE,OPEN,4,0),colorFF76FF;
STICKLINE(((((CLOSE REF(CLOSE,1))AND(CLOSE REF(CLOSE,1)))AND(HIGH 阻挡))AND(CLOSE 阻挡)),CLOSE,OPEN,2,0),colorFFA8FF;
X_1:=IF(CLOSE REF(CLOSE,1),AMOUNT,-AMOUNT);
N1:SUM(IF(CLOSE=REF(CLOSE,1),0,X_1),0)/100000000,NODRAW,COLORRED,LINETHICK2;
X_2:=MA(N1,10);
X_3:=HHV(N1,20);
X_4:=LLV(N1,20);
X_5:=REF(N1,1);
X_6:=1221231;
X_7:=IF(DATE X_6,1,DRAWNULL);
STICKLINE(N1 X_2,N1*X_7,X_5*X_7,3,0),COLORRED;
STICKLINE(N1 X_2,N1*X_7,X_5*X_7,3,0),COLORGREEN;
X_8:=LLV(N1,20)+(HHV(N1,20)-LLV(N1,20))/1000*750;
庄家运作区:REF(X_8*X_7,1),DOTLINE,COLORRED;
X_9:=LLV(N1,20)+(HHV(N1,20)-LLV(N1,20))/1000*500;
庄家洗盘区:REF(X_9*X_7,1),DOTLINE,COLORCYAN;
X_10:=LLV(N1,20)+(HHV(N1,20)-LLV(N1,20))/1000*250;
庄家杀跌区:REF(X_10*X_7,1),DOTLINE,COLORGREEN;
X_11:=LLV(N1,60)+(HHV(N1,60)-LLV(N1,60))/1000*500;
牛庄线:REF(X_11*X_7,1),COLORWHITE,LINETHICK2;
IF(N1 牛庄线,牛庄线,DRAWNULL),COLORRED,LINETHICK2;
IF(N1 牛庄线,牛庄线,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(N1 庄家运作区ANDN1 X_2,N1*X_7,X_5*X_7,3,0),COLORMAGENTA;
增减值:(N1/REF(N1,1)-1)*100*X_7,NODRAW,COLORRED;
比:(AMOUNT/REF(AMOUNT,1)-1)*100,NODRAW,COLORRED;
累积:AMOUNT/100000000/N1*100*X_7,NODRAW,COLORMAGENTA;
均值:MA(增减值,3)*X_7,NODRAW,COLORWHITE;
天数:BArslAST(均值 0)-BARSLAST(均值 0),NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家运作区ANDN1 X_2),0,0,0,17),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家运作区ANDN1 X_2),0.1,0,0,18),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家运作区ANDN1 X_2),0,0,0,19),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家运作区ANDN1 X_2),0.1,0,0,20),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家运作区ANDN1 庄家洗盘区ANDN1 X_2),0,0,0,21),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家运作区ANDN1 庄家洗盘区ANDN1 X_2),0.1,0,0,22),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家运作区ANDN1 庄家洗盘区ANDN1 X_2),0,0,0,23),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家运作区ANDN1 庄家洗盘区ANDN1 X_2),0.1,0,0,24),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家洗盘区ANDN1 庄家杀跌区ANDN1 X_2),0,0,0,25),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家洗盘区ANDN1 庄家杀跌区ANDN1 X_2),0.1,0,0,26),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家洗盘区ANDN1 庄家杀跌区ANDN1 X_2),0,0,0,27),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家洗盘区ANDN1 庄家杀跌区ANDN1 X_2),0.1,0,0,28),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家杀跌区ANDN1 X_2),0,0,0,29),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家杀跌区ANDN1 X_2),0.1,0,0,30),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家杀跌区ANDN1 X_2),0,0,0,31),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(N1 庄家杀跌区ANDN1 X_2),0.1,0,0,32),COLORGREEN;
X_12:=X_6-1000000;
到期日:X_12,NODRAW,COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND1 0,0,0.95,0,15),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1AND1 0,0.05,0.95,0,到期日),COLORYELLOW;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
撤:IF(V4 =0,V4,0),COLORBLUE;
主力进:IF(V4 =0,V4,0),COLORFF00FF;
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),COLORRED;
大盘资金撤走:IF(VB =0,VB,0),COLORGREEN;
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(V3,3)-10;
趋势线:EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金:STICKLINE(趋势线 =13,0,20,5,0),COLORCC9900;
AA:=(趋势线 =13)ANDFILTER((趋势线 =13),15);
DRAWTEXT(AA,30,'准备现金'),COLORCC9900;
买入股票:STICKLINE(趋势线 =13ANDV12 13,0,50,4,0),COLOR0099FF;
BB:=(趋势线 =13ANDV12 13)ANDFILTER((趋势线 =13ANDV12 13),10);
DRAWTEXT(BB,60,'买入股票'),COLOR0099FF;
卖临界:STICKLINE(趋势线 90AND趋势线 REF(趋势线,1),100,95,15,1),COLORFFFF00;
顶:FILTER(趋势线 90AND趋势线 REF(趋势线,1)AND主力进 REF(主力进,1),8);
DRAWTEXT(顶,60,''),COLORYELLOW;
CC:=(趋势线 =90ANDV12)ANDFILTER((趋势线 =90ANDV12),10);
STICKLINE(大盘资金进场AND趋势线 13,0,30,4,0),COLORRED;
STICKLINE(大盘资金撤走AND趋势线 90,0,30,4,0),COLORGREEN;
STICKLINE(主力进AND趋势线 13,0,40,4,0),COLORFF00FF;
STICKLINE(主力撤AND趋势线 90,0,40,4,0),COLORBLUE;
V13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
V14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
V15:=MAX(EMA(V13,2)-EMA(V14,5),0)*200;
V16:=EMA(V15,5);
峰:V16,STICK,COLORFF00FF;
STICKLINE(V16 REF(V16,1),0,V16,1,0),COLOR00FF00;
VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);
VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21);
VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);
VAR10:=IF(MA(CLOSE,58),1,0);
VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;
VARD:=EMA(IF(CLOSE*1.35 =VARA,VARC*10,VARC/10),3);
VARE:=LLV(LOW,30);
VARF:=HHV(VARD,30);
火焰山:EMA(IF(LOW =VARE,(VARD+VARF*2)/2,0),3)/618*VAR10,COLORRED;
火焰:STICKLINE(火焰山 0,0,火焰山,4,1);
今量:火焰山;
STICKLINE(火焰山 0,0,今量*1.2,8,0),COLOR0000FF;
STICKLINE(火焰山 0,0,今量*0.8,8,0),COLOR0066FF;
STICKLINE(火焰山 0,0,今量*0.6,8,0),COLOR0099FF;
STICKLINE(火焰山 0,0,今量*0.4,8,0),COLOR00CCFF;
STICKLINE(火焰山 0,0,今量*0.2,8,0),COLOR00FFFF;
VAR28:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR29:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR30:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR31:=REF(CLOSE,1);
VAR32:=SMA(MAX(CLOSE-VAR31,0),5,1)/SMA(ABS(CLOSE-VAR31),5,1)*100;
VAR33:=(HIGH+LOW+CLOSE)/3;
VAR34:=(VAR33-MA(VAR33,14))/(0.015*AVEDEV(VAR33,14));
VA1:=REF(CLOSE,1);
VA2:=SMA(MAX(CLOSE-VA1,0),7,1)/SMA(ABS(CLOSE-VA1),7,1)*100,COLORYELLOW;
地:IF(VA2 20,40,20),COLORRED;
天:IF(VA2 80,60,80),COLORFFFF50;
VAR2↑:STICKLINE(FILTER(REF(VA2,1) 20ANDVA2 REF(VA2,1),5),20,-20,4,0),COLORRED;
VAR2↓:STICKLINE(FILTER(REF(VA2,1) 80ANDVA2 REF(VA2,1),5),60,80,3,0),COLORFFFF50;
DRAWTEXT(FILTER(REF(VA2,1) 20ANDVA2 REF(VA2,1),5),-10,'买入'),COLORFFFFFF;
DRAWTEXT(FILTER(REF(VA2,1) 80ANDVA2 REF(VA2,1),5),100,'卖出'),COLORFFFFFF;
80,COLORGREEN;
20,COLORRED;
通达信跟庄趋势指标公式截图