当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:△买卖早提示+主力买卖+四项能量

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

△买卖早提示:

用于跌后买入,不适用于追高。

下跌建仓区与择机下手、庄家拉升重叠时,买入最佳。
阶段建仓,整跌不用。
提示减仓可能早,终点可能提前预告。


N:=5;
VAR1:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)) *100,5,1),3.2,1),coloryellow,LINETHICK0;
VAR2:8,colorgreen,LINETHICK0;
庄家拉升: IF(CROSS(VAR1,VAR2),80,0),STICK,colormagenta,LINETHICK2;
择机下手: IF(VAR1<=8,25,0),STICK,colorlired,LINETHICK2;
DRAWTEXT(CROSS(VAR1,VAR2),80,'up↑'),ccolorred;
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
下跌建仓区: IF((VARO7<10),80,100) ,COLOR00CCFF,LINETHICK1;
0,LINETHICK2 ,COLORFFCC00;
DRAWTEXT(VAR1<10,VAR1,'√');
DRAWTEXT(VAR1>90,VAR1,'×');
 



主力买卖A,准确率较高:

+号买入,顶A顶B卖出;个人使用一段时间毕竟理想,在此分享共勉。
 

VAR1:=PEAKBARS(2,13,1)<10;

VAR2:=IF(VAR1=1,2,0);
顶1:= IF(VAR2=2,1,0);
顶B:IF(顶1>REF(顶1,1),78,100),colorred,LINETHICK2;
VAR3:=PEAKBARS(3,8,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,1,0);
顶A:IF(顶>REF(顶,1),78,100),coloryellow,LINETHICK2;
DRAWTEXT(顶A=5,4.5,'↓'),coloryellow;
VARC:=(ZIG(3,8)>REF(ZIG(3,8),1)) AND (REF(ZIG(3,8),1)<=REF(ZIG(3,8),2)) AND (REF(ZIG
(3,8),2)<=REF(ZIG(3,8),3));
STICKLINE((VARC=1),48,0,4,1),colormagenta;
DRAWTEXT((VARC=1),28,'+买'),colorwhite;
LL:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
DRAWBAND(LL,90,LL>90,RGB(0,255,0));
DRAWBAND(LL,10,LL<10,RGB(255,0,0));
风险值:EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),LINETHICK2,colorcyan;
预警:90,,LINETHICK1;
安全区:10,,LINETHICK1;




四项能量:

MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
马线:=MA(牛线,6);
STICKLINE(C>牛线,2.5,4,8,0),colorred,LINETHICK;
STICKLINE(C<马线,2.5,4,8,0),colorgreen,LINETHICK2;
STICKLINE(牛线>=C AND C>=马线,2.5,4,8,0),colorgreen,LINETHICK;
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
STICKLINE(C>=A,0.5,2,8,0),colorred,LINETHICK2;
STICKLINE(C<=B,0.5,2,8,0),colorgreen,LINETHICK2;
STICKLINE(A>=C AND C>=B,0.5,2,8,0),colorgreen,LINETHICK2;
R:=0;
E:=MAX(MA(C,45),MA(C,90));
F:=MIN(MA(C,45),MA(C,90));
STICKLINE(C>E,-1.5,0,8,0),colorred,LINETHICK2;
STICKLINE(C<F,-1.5,0,8,0),colorgreen,LINETHICK2;
STICKLINE(E>=C AND C>=F,-1.5,0,8,0),colorgreen,LINETHICK2;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
STICKLINE(C>J,-3.5,-2,8,0),colorred,LINETHICK2;
STICKLINE(C<K,-3.5,-2,8,0),colorgreen,LINETHICK2;
STICKLINE(J>=C AND C>=K,-3.5,-2,8,0),colorgreen,LINETHICK2;
//////////////
ma5:=MA(C,5);
ma13:=MA(C,13);
ma21:=MA(C,21);
ma34:=MA(C,34);
ma55:=MA(C,55);
ma89:=MA(C,89);
ma144:=MA(C,144);
ma233:=MA(C,233);
tmp1:=IF(C>ma5,1,0);
tmp2:=IF(C>ma13,1,0);
tmp3:=IF(C>ma21,1,0);
tmp4:=IF(C>ma34,1,0);
tmp5:=IF(C>ma55,1,0);
tmp6:=IF(C>ma89,1,0);
tmp7:=IF(C>ma144,1,0);
tmp8:=IF(C>ma233,1,0);
强弱钝化线:tmp1+tmp2+tmp3+tmp4+tmp5+tmp6+tmp7+tmp8+-3.8,coloryellow,LINETHICK2;
买:IF(强弱钝化线>=4 AND REF(强弱钝化线<4,1),0.01,DRAWNULL),colorblue;
持股:IF(强弱钝化线>=4,0.01,DRAWNULL),colorblue;
DRAWTEXT_FIX(1,0.01,0.82,0,'由上至下:①散户%,②游资%,③机构%,④主力%,绿色为无量%--顶尖财经 股票学院: www.58188.com'),colorwhite;
//////////////
 

上一篇:同花顺源码:精准进出+抄底逃顶主图+沐阳东方

下一篇:同花顺源码:跟庄买进主图+市场筹码+奇准主力抄底出货