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

同花顺源码:XYX操盘线+买卖机会+短线主力

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

同花顺公式 XYX操盘线:

 红色B黄色S和买卖支撑阻力为一个系统   绿色BS和红色细线蓝色点线为一个系统

XX1:=EMA(SLOPE(1,1)+C,3),colorred;
YY1:=EMA(SLOPE(1,1)+C,7),colorblue;
DRAWTEXT(COUNT (XX1<YY1,5)=4 AND XX1>=YY1,C*0.95,'B'), colorred;
DRAWTEXT(COUNT (XX1>=YY1,5)=4 AND XX1<YY1,C*1.08,'S'), coloryellow;
操盘线:STRLEFT('★自用★',38),coloryellow;
ema13:=EMA(C,20),COLORFF8080;
ema34:=EMA(C,60),colorFFFF00;
ema55:=EMA(C,80),colorff00ff;
YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;
YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);
Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
YZ:=YZ1 AND YZ2 AND Y>10;
X11:DRAWTEXT(YZ,HIGH+0.2,'减仓'),COLORF00FF0;
gr1:=BARSLAST(BETWEEN("bias.bias2"(6,13,24),0,5) );
gr2:=ema13>ema34 AND ema34>ema55 AND ema13>REF(ema13,1);
gr3:=COUNT("bias.bias2"(6,13,24)>10 AND H=HHV(H,gr1),gr1);
gr4:=H=HHV(H,gr1);
gr5:="macd.macd"(12,26,9)<REF("macd.macd"(12,26,9),1);
gr6:=gr2 AND gr3 AND gr4;
gr7:=gr2 AND gr3 AND gr4 AND gr5;
DRAWTEXT(gr6 AND gr7,H+0.3,'保存利润'),color00ff00;
XX2:=EMA(SLOPE(1,1)+C,3),colorred;
YY2:=EMA(SLOPE(1,1)+C,7),colorblue;
XX3=MA(CLOSE, 5);
YY3=MA(CLOSE, 60);
XX4=CROSS(XX2,YY2) AND XX3>YY3;
YY4=CROSS(YY2,XX2) AND XX3>YY3 AND COUNT(CROSS(XX1,YY1) AND XX3>YY3 ,30);
DRAWTEXT(XX4,LOW/1.1,'↖买'),colorwhite;
DRAWTEXT(YY4,HIGH*1.06,'卖'),coloryellow;
A1:=EMA(C,14),colorwhite,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
支撑位:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),colorred,LINETHICK1;
阻力位:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),colorgreen,LINETHICK1;
DRAWICON(CROSS(XX1,YY1) AND CLOSE/REF(CLOSE,1)>1.03,LOW/1.06,25);
买线:EMA(C,5),color000999;
卖线:EMA(SLOPE(C,21)*20+C,42),POINTDOT,colorblue,linethick1;
BUY1:=CROSS(买线,卖线);
SEL1:=CROSS(卖线,买线);
DRAWTEXT(buy1,LOW*0.96,'B  '),colorlired;
限制:=EMA((((H+C)/2+L+(C+L)/2)/3-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2))/(EMA(HHV (((H+C)/2+L+(C+L)/2)/3,21),2)-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2)),8)*100;
平衡:=SMA(EMA(SMA((C+L)/2,3,1),3),5,1);
DRAWTEXT(FILTER(平衡>REF(平衡,1)AND HHV(MA((H+C)/2,13),10)<REF(HHV(MA((H+C)/2,13),10),1)AND((C+L)/2)>REF((C+L)/2,1),5)AND 限制<88,L*0.98,'    ------'),colorcyan;
 



买卖机会:

VAR1:=EMA(C,2);

VAR2:=EMA(SLOPE(C,21)*20+C,42);
VAR3:=CROSS(VAR1,VAR2);
VAR4:=CROSS(VAR2,VAR1);
VAR5: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),colorred;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),colorgreen;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),colorgreen;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),colorgreen;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),colorgreen;
STICKLINE(VAR1<VAR2,LOW,HIGH,0,0),colorgreen;




短线主力(顶尖财经 股票学院: www.58188.com):

N1:=5;N2:=9;

NMTM:=C-REF(C,1);
ZLGJ:100*EMA(EMA(NMTM,N1),N1)/EMA(EMA(ABS(NMTM),N1),N1),colorred,LINETHICK1;
MAZL:MA(ZLGJ,N2),COLORFFCAC5,LINETHICK1;
STICKLINE(REF(ZLGJ,1)<=ZLGJ,ZLGJ,REF(ZLGJ,1),2.5,0),COLORFF00FF;
STICKLINE(REF(ZLGJ,1)>ZLGJ,ZLGJ,REF(ZLGJ,1),2.5,0),coloryellow;
N:=5;//www.70822.com
VAR1:=MA((VOL-REF(VOL,1))/REF(VOL,1),5);
VAR2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
MY: VAR2*(1+VAR1);
SHT: MY, COLORSTICK;
SHTMA: MA(SHT,N);
建仓:IF(MY<0,MY,0),colormagenta,LINETHICK2;
加仓:IF(MY<0,0,MY),colorred,LINETHICK2;
白线破仓:IF(MY<SHTMA,MY,SHTMA),colorblue,LINETHICK2;
趋势强弱:IF(MY>SHTMA,SHTMA,SHTMA),colorwhite,LINETHICK1;
IF(MY<0,MY,DRAWNULL),colorgreen;
STICKLINE(((MY<REF(MY,1)) AND (MY>0)),0,SHT,1,0),colormagenta,LINETHICK2;
STICKLINE(((MY>REF(MY,1)) AND (MY<0)),0,SHT,1,0),colorblue,LINETHICK2;
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
AAA1:=(DIF1-DEA1)*2*60;
AAA上:IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL),
STICK,colorred,LINETHICK1;
AAA下:IF(AAA1<REF(AAA1,1),AAA1,DRAWNULL),STICK,coloryellow,LINETHICK1;
买入线:15;
银子:AAA1-REF(AAA1,1),colorred;
DRAWICON(CROSS(银子,买入线),买入线,1);

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

下一篇:同花顺源码:非凡之至尊起涨点+突破和撑压+麟龙量合