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

同花顺源码精选:落日地平,趋势黄金操盘,分时T十O

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

1、落日地平

持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,colorred;

空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,colorgreen ;
前低1:=BARSLASTCOUNT(CLOSE>=SAR(4,2,20)),NODRAW;
前低11:=BARSLASTCOUNT(CLOSE<=SAR(4,2,20)),NODRAW;
前低2:=REF(BARSLAST(CLOSE>=SAR(4,2,20)),前低1+1)+前低1+1;
XG:空仓 AND 前低11<9 AND C>O AND V>REF(V,1)*1.382,colorred;
XG2:持仓 AND REF(空仓,1) AND C>O AND V>REF(V,1)*1.382,coloryellow;
VAR22:=(CLOSE+HIGH+LOW)/(3);
VAR33:=EMA(VAR22,10);
VAR44:=REF(VAR33,1);
持仓1:IF(VAR33>VAR44,-VAR33,DRAWNULL),CIRCLEDOT,colorred;
空仓1:IF(VAR33<=VAR44,-VAR33,DRAWNULL),CIRCLEDOT,colorgreen ;
TJ1:=VAR33>VAR44;
TJ2:=CLOSE<=SAR(4,2,20) AND 前低11<9 AND C>O AND V>REF(V,1)*1.382 AND TJ1;
XG510:IF(TJ2,-2,0),colorblue;
XG3:持仓 AND REF(持仓,1) AND 空仓1 AND REF(持仓1,1);
STICKLINE(XG3,0,-VAR33/2,1,0),colorblue;
TJ3:=SAR(4,2,20);
STICKLINE(XG,0,TJ3/3,1,0),colorred;
STICKLINE(XG2,TJ3/3,TJ3/3*2,1,0),coloryellow;
A1:=MA(V,60);
A2:=COUNT(V<A1,10)>7;
A3:=EVERY(V<A1,3);
A4:=V>A1*0.985 OR V>REF(V,1)*1.618;
B:=V>A1*0.985 AND REF(A2,1) AND REF(A3,1) AND C>O;
B1:=V>REF(V,1)*1.618 AND REF(A3,1) AND C>O;
STICKLINE(B,TJ3,TJ3/3*2,1,0),colorwhite;
STICKLINE(B1,-VAR33,-VAR33/3*2,1,0),colorwhite;


2、趋势黄金操盘

VAR1A:=(EMA(C,12)-EMA(C,26))*100+50;

VAR2A:=EMA(VAR1A,9);
VAR3A:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
VAR4A:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5A:=SMA(VAR4A,13,8);
VAR6A:=SMA(VAR3A,21,8);
VAR7A:=MA(C,80)-MA(C,10)/7;
VAR8A:=EMA(C,5);
VAR9A:=MA((LLV(C,9))*1.1,14);
DRAWTEXT_FIX(C>O,0.01,0.9,0,''),colorred;
VAR10A:=2*VAR9A-VAR8A-C*0.1;
VAR11A:=IF(((VAR8A-VAR10A)*5>0),(POW((VAR8A-VAR10A)*5,2))/10,(-1*(POW((VAR8A-VAR10A)*(5),2)))/(10));
VAR12A:=IF((VAR11A>0),VAR11A-0,12);
VAR13A:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
趋势:CEILING(SMA(VAR5A,13,8)),LINETHICK2,COLOR0000FF;
黄金区: DRAWICON(IF(VAR13A<15,15,0),13,12),coloryellow;
操盘线: MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,colorblue;
LC:=REF(CLOSE,1);
AA:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
BB:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
AA1:=AA;
BB1:=REF(AA,1);



3、分时T十O,低买高卖( 股 民 学 院 : http://www.58188.net )

DRAWGBK(C>0, RGB(50,60,250),RGB(17,21,89),0,'11',0);

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,5,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,5,0),colorgreen;
DRAWICON(DD=1 AND C>中线,45,2);
DRAWTEXT(DD0,40,'★卖'),colorgreen;
DRAWTEXT (CC,84,'准备卖出'),colorwhite;
顶:89,colorgreen;
底:11,colorred;
中:50,POINTDOT,colorwhite;
DRAWTEXT(ISLASTBAR,顶,'顶'),colorgreen;
DRAWTEXT(ISLASTBAR,底,'底'),colorred;
DRAWTEXT(ISLASTBAR,中,'中'),colorwhite;

上一篇:同花顺源码精选:博士策略,抄底高抛低吸组合,顺势而为

下一篇:同花顺源码精选:LS金牌黑马,中短线买卖参考,同花顺组合副图