同花顺指标代码Word下载.docx
《同花顺指标代码Word下载.docx》由会员分享,可在线阅读,更多相关《同花顺指标代码Word下载.docx(30页珍藏版)》请在冰豆网上搜索。
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(V11,3);
V12:
=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金:
STICKLINE(趋势线<
=13,0,20,5,0),COLORCC9900;
AA:
=(趋势线<
=13)ANDFILTER((趋势线<
=13),15);
DRAWTEXT(AA,30,'
准备现金'
),COLORCC9900;
买入股票:
=13ANDV12>
13,0,50,5,0),COLOR0099FF;
BB:
=(趋势线<
13)ANDFILTER((趋势线<
13),10);
DRAWTEXT(BB,60,'
买入股票'
),COLOR0099FF;
卖临界:
STICKLINE(趋势线>
90AND趋势线>
REF(趋势线,1),100,95,15,1),COLORFFFF00;
见顶清仓:
FILTER(趋势线>
90AND趋势线<
REF(趋势线,1)AND主力进<
REF(主力进,1),8);
DRAWTEXT(见顶清仓,90,'
逃顶'
),coloryellow;
CC:
=(趋势线>
=90ANDV12)ANDFILTER((趋势线>
=90ANDV12),10);
STICKLINE(大盘资金进场AND趋势线<
13,0,30,10,0),colorred;
STICKLINE(大盘资金撤走AND趋势线>
90,0,30,10,0),colorgreen;
DRAWICON(CROSS(生命禁区,短期)ANDREF(短期,1)>
短期,短期*1.1,11);
DRAWTEXT(CROSS(生命禁区,短期)ANDREF(短期,1)>
短期,短期*1.1,'
←卖'
),colorcyan;
DRAWICON(CROSS(生命线,短期)ANDREF(短期,1)>
短期,短期*1.2,12);
DRAWTEXT(CROSS(生命线,短期)ANDREF(短期,1)>
短期,短期*1.2,'
DRAWTEXT(CROSS(短期,生命禁区),85,'
警惕!
!
'
),colorwhite;
DRAWTEXT(CROSS(中期,生命禁区),95,'
减磅'
),ColorFF6800;
DRAWTEXT(CROSS(长期,生命禁区),100,'
出局'
),colormagenta;
DRAWICON(CROSS(短期,生命禁区),85,4);
DRAWICON(CROSS(中期,生命禁区),95,8);
DRAWICON(CROSS(长期,生命禁区),100,3);
--------------------------------------------------------------------------
吸筹快慢
N:
=9;
M1:
=3;
M2:
P:
RSV:
=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
=SMA(RSV,M1,1),colorred,LINETHICK2;
=SMA(K,M2,1),COLOR00FF00;
JJ:
=P*(3*D-2*K),COLOR00FF00;
=((3*K)-(2*D));
MAIRU:
=CROSS(K,D)ANDK<
20;
MAICHU:
=CROSS(D,K)ANDD>
80;
VAR2:
=REF(LOW,1);
VAR3:
=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:
=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:
=LLV(LOW,30);
VAR6:
=HHV(VAR4,30);
VAR7:
=IF(MA(CLOSE,58),1,0);
VAR8:
=EMA(IF(LOW<
=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:
=IF(VAR8>
100,100,VAR8);
吸筹:
STICKLINE(VAR9>
-120,0,VAR9,6,1),COLORF00FF0;
快线:
(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORFF937F;
慢线:
SMA(快线,M1,1),colorred,LINETHICK2;
空:
SMA(慢线,M2,1),COLOR00FF00;
牛股:
IF(BARSLAST(CROSS(慢线,空))<
PANDBARSLAST(CROSS(空,慢线))<
PANDCROSS(慢线,空)AND慢线<
20,90,0),STICK,COLORFF937F;
STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F;
=IF(BARSLAST(CROSS(慢线,快线))>
=3ANDCROSS(快线,慢线)AND慢线<
30,20,0);
买:
STICKLINE(BB,0,20,7,1),coloryellow;
=IF(BARSLAST(CROSS(快线,慢线))>
=4ANDCROSS(慢线,快线)AND快线>
50,20,0);
卖:
STICKLINE(AA,80,100,7,1),COLOR00FF00;
DRAWTEXT(CROSS(快线,慢线),快线,'
始'
);
DRAWTEXT(CROSS(慢线,快线),慢线,'
终'
同花顺逃顶王
=LLV(LOW,10);
=HHV(HIGH,25);
阶段卖出:
3.2,COLORC6C600;
3.5,COLOR0088FF;
清仓卖出:
3.5,COLORFF75FF;
动力线:
=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
STICKLINE(动力线>
REF(动力线,1),动力线,REF(动力线,1),3,1),colorred;
STICKLINE(动力线<
=REF(动力线,1),动力线,REF(动力线,1),3,1),COLOR00FF00;
加速度:
=(动力线-REF(动力线,1))*5;
底部:
0.2,COLOR70DB93;
关注:
0.5,coloryellow;
DRAWICON(FILTER(CROSS(动力线,关注),20),动力线+0.02,1);
DRAWICON(FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2);
DRAWICON(FILTER(CROSS(动力线,底部),20),动力线+0.02,1);
DRAWICON(FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);
数值:
动力线,COLORA8A8A8;
速度:
加速度,colorred;
买卖点雷达
LC:
=REF(CLOSE,1);
RSI1:
=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:
=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
卖点雷达:
=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;
DRAWTEXT(CROSS(85,RSI1),20,'
顶'
),COLOR00FF00;
STICKLINE(卖点雷达,0,20,3,0),COLOR00FF00;
VARB:
=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
VARC:
=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
VARD:
=BARSCOUNT(CLOSE);
买点雷达:
(VARB<
20ANDVARC<
25ANDVARD>
50ANDAR<
70)*30,LINETHICK2,COLOR0078FF;
BT1:
=CROSS(RSI1,25);
DRAWTEXT(BT1,-80,'
底'
),COLOR0000FF;
STICKLINE(BT1,-100,-80,3,0),COLOR0000FF;
主力:
EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF;
散户:
EMA((CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800;
BT2:
=CROSS(主力,散户)AND主力<
-10;
DRAWICON(CROSS(RSI1,25),主力,26);
DRAWICON(CROSS(主力,散户)AND主力<
-10,主力,23);
BT:
=FILTER(COUNT(BT1ORBT2,3)>
=2,3);
STICKLINE(BT,0,50,4,1),COLOR0000FF;
DRAWTEXT(BT,50,'
金底'
STICKLINE(BT2,0,20,3,0),COLORFF00FF;
DRAWTEXT(BT2,20,'
升'
),COLORFF00FF;
底红顶绿
RSI5:
=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*100);
TR:
=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
HD:
=(HIGH-REF(HIGH,1));
LD:
=(REF(LOW,1)-LOW);
DMP:
=SUM(IF(((HD>
0)AND(HD>
LD)),HD,0),10);
DMM:
=SUM(IF(((LD>
0)AND(LD>
HD)),LD,0),10);
PDI:
=((DMP*100)/TR);
MDI:
=((DMM*100)/TR);
ADX:
=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);
AV:
=(RSI5+ADX);
DXR:
=(((ADX+REF(ADX,5))/2)+RSI5);
0,COLORFF00FF;
WR10:
=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
NEWVOL:
=(RSI5-WR10);
阶段底部:
=(AV+NEWVOL);
STICKLINE((阶段底部>
=0),0,阶段底部,0.3,1),LINETHICK2,COLORCC6600;
STICKLINE((阶段底部<
0),0,阶段底部,0.8,1),LINETHICK6,colorred;
LLV(阶段底部,1),COLORFFFFFF;
STICKLINE((趋势线>
230),250,趋势线,0.8,1),LINETHICK6,colorgreen;
买点:
IF((阶段底部<
0),1,0);
卖点:
IF((趋势线>
230),1,0);
230,COLORFFFFFF;
突破信号
=19;
VAR1:
=HHV(HIGH,N);
=LLV(LOW,N);
阻力线:
EMA((CLOSE-VAR2)/(VAR1-VAR2),21)-0.5,COLORF0F000,LINETHICK2;
操作线:
EMA((CLOSE-VAR2)/(VAR1-VAR2),5)-0.5,colorred,LINETHICK2;
DRAWTEXT(CROSS(操作线,阻力线)AND阻力线<
0.1,阻力线,'
突破'
DRAWTEXT(CROSS(阻力线,操作线)AND阻力线>
0.25,阻力线,'
破位'
),colorgreen;
红绿棒:
(操作线-阻力线),COLORSTICK;
买卖机会
=EMA(C,2);
=EMA(SLOPE(C,21)*20+C,42);
=CROSS(VAR1,VAR2);
=CROSS(VAR2,VAR1);
MA(C,20),colorgreen,LINETHICK1;
CAR6:
MA(C,10),COLORFA05FF,LINETHICK2;
DRAWTEXT(VAR3,LOW*0.95,'
买'
),coloryellow,LINETHICK3;
DRAWTEXT(VAR4,HIGH*1.028,'
卖'
),colorgreen,LINETHICK3;
STICKLINE(VAR1=VAR2,LOW,HIGH,0,0),colorred;
STICKLINE(VAR1>
=VAR2,CLOSE,OPEN,2,0),colorred;
STICKLINE(VAR1<
VAR2,CLOSE,OPEN,2,0),colorgreen;
VAR2,LOW,HIGH,0,0),colorgreen;
买卖奇准3
来势线:
EMA(CLOSE,7)-EMA(CLOSE,21),coloryellow;
福星:
EMA(来势线,7),COLORSTICK,colorred;
=CLOSE/REF(LLV(LOW,35),5)<
1;
决策:
IF(VAR1,0.5,0),STICK,coloryellow;
必买:
IF(TROUGHBARS(3,15,1)=0ANDHIGH>
LOW+0.01,1,-1),colorred,LINETHICK1;
必卖:
IF(PEAKBARS(3,15,1)=1,1,2),colorgreen,LINETHICK1;
(EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,colorwhite;
逃顶线:
EMA(CLOSE/REF(HHV(CLOSE,7),50),1),colorcyan,LINETHICK1;
买卖奇准A6
买卖奇准先锋:
CLOSE,colorred;
=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
绝对值昨天收盘价日均线
=HIGH-REF(HIGH,1);
=REF(LOW,1)-LOW;
=SUM(IF(VAR2>
0ANDVAR2>
VAR3,VAR2,0),25);
=SUM(IF(VAR3>
0ANDVAR3>
VAR2,VAR3,0),25);
=VAR4*100/VAR1;
=VAR5*100/VAR1;
=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
=(VAR8+REF(VAR8,15))/2;
A:
=(VAR7>
VAR6ANDVAR7>
25ANDVAR6<
25);
B:
=ZIG(3,51/5)*100,colorwhite;
G:
=MA(B,2),coloryellow;
=CROSS(B,G)*1000,colorred;
W:
=CROSS(G,B)*1000,colorblue;
E:
=REF(INDEXC,1);
F:
=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
VAR10:
=FANDF<
8;
VAR11:
=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:
=SMA(VAR11,3,1);
VAR13:
=SMA(VAR12,3,1);
VAR14:
=VAR13ANDVAR13<
MM:
=AANDDANDVAR10ANDVAR14;
ABF11:
=PEAK(3,4,1)*0.9;
Ba1:
=ZIG(3,4)*100;
Ga1:
=MA(Ba1,2);
Da1:
=CROSS(Ba1,Ga1)*1000,colorred;
Wa1:
=CROSS(Ga1,Ba1)*1000,colorblue;
/*DRAWTEXT(Wa1=1000,B*0.97,'
卖★'
),coloryellow;
*/
/*DRAWTEXT(Da1=1000ANDREF(CLOSE,1)<
REF(ABF11,1),B*0.97,'
买★'
A30:
=MA(C,30);
angleA30:
=ATAN((A30/REF(A30,1)-1)*100)*57.3;
angle30:
=angleA30>
40ORangleA30<
-48;
A10:
=MA(C,10);
angleA10:
=ATAN((A10/REF(A10,1)-1)*100)*57.3;
angle10:
=angleA10>
20ORangleA10<
-25ANDCLOSE>
MA(CLOSE,20);
A3010:
=angle30ORangle10;
aazt:
=COUNT(CLOSE>
REF(CLOSE,1)*1.097,20)>
0;
DRAWGBK(W=1000),colorcyan;
DRAWGBK(D=1000),color0099FF;
DRAWTEXT(W=1000,买卖奇准先锋,'
--卖'
),colorcyan;
DRAWTEXT(D=1000,买卖奇准先锋,'
--买'
DRAWGBK(W=1000ANDaazt),colorgreen;
DRAWGBK(D=1000ANDaazt),colorred;
DRAWTEXT(W=1000ANDaazt,买卖奇准先锋,'
--卖全仓'
),colorgreen;
DRAWTEXT(D=1000ANDaazt,买卖奇准先锋,'
--买全仓'
),colorred;
KU1:
=IF(HIGH=HHV(HIGH,3),1,0);
KD1:
=IF(LOW=LLV(LOW,3),1,0);
UL:
=IF(REF(KU1,2)=1ANDREF(KU1,1)=0
ANDKU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1
ANDREF(KU1,1)=0ANDKU1=0)));
DL:
=IF(REF(KD1,2)=1ANDREF(KD1,1)=0ANDKD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1
ANDREF(KD1,1)=0ANDKD1=0)));
HV:
=H>
ULANDH>
REF(H,1);
LV:
=L<
DLANDL<
REF(L,1);
GP:
=BARSLAST(HV);
DP:
=BARSLAST(LV);
IP:
=IF(GP=0,DP,GP)>
3;
HV1:
=HVANDIPANDH>
=HHV(H,BARSLAST(LV));
LV1:
=LVANDIPANDL<
=LLV(L,BARSLAST(HV));
DRAWLINE(LV1,LOW,HV1,HIGH,0),coloryellow,LINETHICK2;
DRAWLINE(HV1,HIGH,LV1,LOW,0),colormagenta,LINETHICK2;
------------------------------------------------------------------------------
///加入中枢判定
//简化版
N1:
=10;
N2:
DISP:
=2;
=1;
P1:
=PEAK(1,K*N1,1);
P2:
=PEAK(1,K*N1,2);
WP1:
=PEAKBARS(1,K*N1,1);
WP2:
=PEAKBARS(1,K*N1,2);
T1:
=TROUGH(2,K*N2,1);
T2:
=TROUGH(2,K*N2,2);
WT1:
=TROUGHBARS(2,K*N2,1);
WT2:
=TROUGHBARS(2,K*N2,2);
TJ1:
=P1>
T1ANDP2>
T2;
ZD:
=MAX(T