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

同花顺源码:BXS11背离,小杨温度计,看盘

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

1、BXS11背离

LOWV:=LLV(LOW,9);

HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:EMA(RSV,3);
D:MA(K,3);
STICKLINE(K>D , K,D ,2.5,0),colorred,LINETHICK2;
STICKLINE(D>K,K,D,2.5,0),colorgreen,LINETHICK2;
逃顶线:90,colorgreen;
中轴线: 50,colorred;
抄底线:10,coloryellow;
DRAWICON(CROSS(K,D) AND K<=50,12,11),colorred;
DRAWICON(CROSS(D,K) AND K>=80,88,4),colorgreen;
A1:=BARSLAST(REF(CROSS(K,D),1));
底背离:REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
DRAWLINE(A1=0,D,底背离,D,0),colorred,LINETHICK1;
A2:=BARSLAST(REF(CROSS(D,K),1));
顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(D,A2+1)>D AND CROSS(D,K);
DRAWLINE(A2=0,D,顶背离,D,0),colorgreen,LINETHICK1;
DRAWTEXT(底背离>0,D-5,'加仓'),colorred;
DRAWTEXT(顶背离>0,D-5,'减仓'),colorgreen;
DRAWTEXT(CROSS(K,D) AND (D < 8),30,'买'),colorred;
STICKLINE(CROSS(K,D) AND (D < 8)=1,3,20,8,0),colorred;
DRAWTEXT(CROSS(D,K) AND (D > 85),70,'卖'),colorgreen;
STICKLINE(CROSS(D,K) AND (D > 85)=1,85,70,8,0),colorgreen



2、小杨温度计,温度计高,表示调整要到了

STICKLINE(C,HHV(C,13),LLV(C,13),2,1),colorgray;

STICKLINE( C>=REF(C,1),C,LLV(C,13),2,0),colorred;
STICKLINE( C<REF(C,1),C,LLV(C,13),2,0),colorcyan;
量比:=V/REF(MA(V,13),1);
DRAWTEXT(O/LLV(C,13)<1.05 AND 量比>2.2 AND C>REF(C,1) ,REF(C,1)*1.02,'2~3个点买'),colormagenta;
买:O/LLV(C,13)<1.05 AND 量比>2.2 AND C>REF(C,1),coloryellow,;
温度值:(C-LLV(C,21))/(HHV(C,21)-LLV(C,21))*100,colorgreen,;
CPU:温度值=100,colorred,;
RSV1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));
RSV2:=(RSV1-0.5)/5*EMA(C,20);
RSVK:=SMA(RSV2,3,1);
RSVD:=SMA(RSVK,3,1);
RSVJ:=RSVK*3-RSVD*2;
K:RSVK+EMA(C,20),colorred;
D:RSVD+EMA(C,20),coloryellow;
J:RSVJ+EMA(C,20),colormagenta;



3、看盘

公式使用:

指标说明

柱状线,由红变绿(正变负),卖出信号参考;由绿变红,买入信号参考。( 顶尖财经 股票学院: http://58188.com )

H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8,colorgreen;
支撑:=L1+P1*0.5/8,colorred;
中线:=(支撑+阻力)/2,colorwhite,POINTDOT;
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),LINETHICK2,colorlimagenta;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备买入:STICKLINE(趋势线<11,趋势线,11,5,0),coloryellow;
AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线;
BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线;
BB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
BB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
BB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
BB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
BB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
下单买入:STICKLINE(BB=1 AND C<中线,11,50,3,0),colorred;
DRAWICON(BB=1 AND C<中线,55,1);
DRAWTEXT(BB0,60,'进'),colorred;
DRAWTEXT(AA,16,'底部'),coloryellow;
准备卖出:STICKLINE(趋势线>89,趋势线,89,5,0),colorwhite;
CC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中线;
DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线;
DD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);
DD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
DD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
DD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
DD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
下单卖出:STICKLINE(DD=1 AND C>中线,89,50,3,0),colorgreen;
DRAWICON(DD=1 AND C>中线,45,2);
DRAWTEXT(DD0,40,'走'),colorgreen;
DRAWTEXT (CC,84,'顶部'),colorwhite;

上一篇:同花顺源码:炒底必买,即将涨停,K线主图指标

下一篇:同花顺源码:短线看盘,超赢买点,短线CJ