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

同花顺源码:可以赚三点,吃鸡,多空线

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

1、可以赚三点,每天盈利3%

Var1:=(2*CLOSE+HIGH+LOW)/4;

Var2:=LLV(LOW,34);
Var3:=HHV(HIGH,34);
xx:EMA((Var1-Var2)/(Var3-Var2)*100,13);
yy:EMA(0.667*REF(xx,1)+0.333*xx,2) , ;
STICKLINE(CROSS(xx,20) AND yy<xx,xx+19,xx-10,4,0),colorred;
DRAWTEXT(CROSS(xx,20) AND yy<xx,xx-5,'百分之三! ');
STICKLINE(yy<xx,xx,yy,4,0),colorred;
选股:IF(CROSS(xx,yy) AND xx<20 ,30,0);
逃顶:IF(FILTER(CROSS(YY,XX) AND xx>80 ,3),60,90),COLORFF0000;



2、吃鸡

夏天吃鸡:-30,colormagenta,NODRAW;

汽枪:=SMA(SMA((C-LLV(L,80))/(HHV(H,80)-LLV(L,80))*100,10,1),10,1),LINETHICK2;
收兵:=SMA(汽枪,10,1),LINETHICK2,COLOR808000;
W1:=SMA((HHV(H,80)-C)/(HHV(H,80)-LLV(L,80))*100,10,1);
瞄准线:SMA(W1,10,1),CIRCLEDOT,COLOR00DD00,LINETHICK1;
天空:STICKLINE(C,85,85,5,1);
大地:STICKLINE(C,9,9,5,1);
W2:=(CROSS(收兵,汽枪) AND 收兵>20);
W3:=(CROSS(汽枪,收兵) AND 收兵<20);
DRAWTEXT(CROSS(收兵,汽枪) AND 收兵>20,58,'开杀'),COLORFF00FF;
DRAWTEXT(CROSS(收兵,汽枪) AND 收兵<50 AND 收兵>20,汽枪,' 留意!'),COLOR00FFFF;
N99:=26,NODRAW;
N199:=9 ,NODRAW;
P99:=2 ,NODRAW;
LC:= REF(CLOSE,1) ,NODRAW;
日强弱线:=SMA(MAX(CLOSE-LC,0),N199,1)/SMA(ABS(CLOSE-LC),N199,1)*100 ,NODRAW;
月线强弱:=MA(日强弱线,N99) ,NODRAW;
月强高:=月线强弱 + P99*STD(日强弱线,N99) ,NODRAW;
月弱低:=月线强弱 - P99*STD(日强弱线,N99) ,NODRAW;
牛熊:=IF(日强弱线<月线强弱,0,1) ,colorlired,NODRAW,NODRAW;
连杀多少天:=BARSLASTCOUNT(牛熊=1),CROSSDOT,COLOR0000FF,NODRAW;
连牛线:=IF(连杀多少天>1,1,0),CROSSDOT,COLOR0000FF,NODRAW;
VAR1:=WINNER(CLOSE*0.900)*100;
VAR2:=VOL/CAPITAL*100;
VAR3:=VAR1-VAR2;
VAR4:=VAR3<1;
VAR5:=VAR3>=1 AND VAR3<5;
VAR6:=VAR3>=5 AND VAR3<10;
VAR7:=VAR3>=10 AND VAR3<25;
VAR8:=VAR3>=25;
极弱股:=IF(VAR4, -3, 0),colorlicyan, STICK,NODRAW;
弱势股:=IF(VAR5,-5,0),LINETHICK3,colorbrown,STICK,NODRAW;
转型股:=IF(VAR6, 5, 0),LINETHICK2,colormagenta, STICK,NODRAW;
强势股:=IF(VAR7, 10, 0),LINETHICK3,colorred, STICK,NODRAW;
主升浪:=IF(VAR8, 15, 0),LINETHICK4,colorlired, STICK,NODRAW;
XG1:=(主升浪 AND REF(转型股,1)) OR (主升浪 AND REF(弱势股,1)) OR (主升浪 AND REF(极弱股,1)),NODRAW;
XG2:=(强势股 AND REF(转型股,1)) OR (强势股 AND REF(弱势股,1)) OR (强势股 AND REF(极弱股,1)),NODRAW;
XG3:=(转型股 AND REF(弱势股,1)) OR (转型股 AND REF(极弱股,1)),NODRAW;
XG:=(XG1 OR XG2 OR XG3) AND V/REF(V,1)>1.8 AND C/REF(C,1)>1.035,NODRAW;
DRAWICON(XG,0,1);
极弱转:=IF(REF(极弱股,1)=-3 AND 转型股=5,1,0),colorlicyan,NODRAW;
弱势转:=IF(REF(弱势股,1)=-5 AND 转型股=5,1,0),colorbrown,NODRAW;
强势转:=IF(REF(强势股,1)=10 AND 转型股=5,1,0),colorred,NODRAW;
主升转:=IF(REF(主升浪,1)=15 AND 转型股=5,1,0),COLOR8080FF,NODRAW;
极弱反转:=IF(REF(转型股,1)=5 AND 极弱股=-3,1,0),colorlicyan,NODRAW;
弱势反转:=IF(REF(转型股,1)=5 AND 弱势股=-5,1,0),colorbrown,NODRAW;
强势反转:=IF(REF(转型股,1)=5 AND 强势股=10,1,0),colorred,NODRAW;
主升反转:=IF(REF(转型股,1)=5 AND 主升浪=15,1,0),COLOR8080FF,NODRAW;
昨日主升浪:=REF(主升浪,1) ,NODRAW;
主升浪被破:=IF(昨日主升浪=15 AND 强势股=5,1,0),NODRAW;
昨日为极弱股:=REF(极弱股,1),NODRAW;
昨日为弱势股:=REF(弱势股,1),NODRAW;
昨日为强势股:=REF(强势股,1),NODRAW;
昨日为转型股:=REF(转型股,1),NODRAW;
昨日为主升浪:=REF(主升浪,1),NODRAW;
昨日牛熊:=REF(牛熊,1) ,NODRAW;
昨日连牛:=REF(连杀多少天,1) ,NODRAW;
直转极弱:=IF(极弱股=-3 AND REF(极弱股,1)=-3  OR  极弱股=-3 AND REF(弱势股,1)=-5  OR 极弱股=-3 AND REF(强势股,1)=10   OR 极弱股=-3 AND REF(主升浪,1)=15,1,0),colorlicyan ,NODRAW;
直转弱势:=IF(弱势股=-5 AND REF(极弱股,1)=-3  OR  弱势股=-5 AND REF(弱势股,1)=-5  OR 弱势股=-5 AND REF(强势股,1)=10   OR 弱势股=-5 AND REF(主升浪,1)=15,1,0), colorbrown ,NODRAW;
直转强势:=IF(强势股=10 AND REF(极弱股,1)=-3  OR  强势股=10 AND REF(弱势股,1)=-5  OR 强势股=10 AND REF(强势股,1)=10   OR 强势股=10 AND REF(主升浪,1)=15,1,0), colorred ,NODRAW;
直转主升:=IF(主升浪=15 AND REF(极弱股,1)=-3  OR  主升浪=15 AND REF(弱势股,1)=-5  OR 主升浪=15 AND REF(强势股,1)=10   OR 主升浪=15 AND REF(主升浪,1)=15,1,0), COLOR8080FF ,NODRAW;
风险区:IF(极弱股=-3 OR 弱势股=-5,80,0),coloryellow;
风险区走势线:=极弱股+弱势股,colorgray,NODRAW;
安全区:IF(强势股=10 OR 转型股=5 OR 主升浪=15,80,0),COLORFF0080;
风险减弱:=IF(昨日为极弱股=-3 AND 弱势股=-5 OR 牛熊=1,1,0),colorligreen ,POINTDOT ,NODRAW;
风险加强:=IF(昨日为弱势股=-5 AND 极弱股=-3 OR 牛熊<1 AND 风险减弱=0,19.5,0),COLOR00FF00,POINTDOT ,NODRAW;
昨日强势股:=REF(强势股,1) ,NODRAW;
ZDB:=(CLOSE-REF(CLOSE,1))/(REF(CLOSE,1))*100 ,NODRAW;
ZDBZ:=(REF(CLOSE,1)-REF(CLOSE,2))/(REF(CLOSE,2))*100 ,NODRAW;
当日:=ZDB* REF(CLOSE,1)*0.01 ,NODRAW;
昨日:=ZDBZ* REF(CLOSE,2)*0.01 ,NODRAW;
涨跌差:=当日-昨日 ,NODRAW;
涨幅:=(C/REF(C,1)-1)*100 ,NODRAW;
掩体击杀:=IF(弱势股=-5 AND 牛熊>0,1,0),colorlimagenta ,NODRAW;
伏地击杀:=IF(极弱股=-3 AND 牛熊>0,1,0),colorbrown ,NODRAW;
DRAWTEXT(伏地击杀=1,90,'★'),COLORFF8000;
DRAWTEXT(伏地击杀=1,85,'S'),colorred;
DRAWTEXT(掩体击杀=1,90,'★'),COLORFF8000;
DRAWTEXT(掩体击杀=1,85,'S'),colorred;
冒险刚枪:IF(伏地击杀=1 OR 掩体击杀=1,1,0 ),COLOR00FF00;
打绷带1:=IF(当日>0,1,0) ,NODRAW;
但打了绷带:BARSLASTCOUNT(打绷带1=1),COLOR008000,NODRAW;
止痛药:IF(打绷带1=1 AND 涨幅>5,1,0),COLOR0000FF ,NODRAW;
DRAWTEXT(止痛药=1,95,'★'),COLOR0000FF;
DRAWTEXT(止痛药=1,93,'+'),colorred;
DRAWTEXT(但打了绷带=1,95,'★'),COLOR408000;
DRAWTEXT(但打了绷带=1,93,'+'),colorred;
猎杀:瞄准线<REF(瞄准线,1) AND REF(瞄准线,2)<REF(瞄准线,1) AND 瞄准线>=90,NODRAW;
DRAWTEXT(猎杀=1,95,'★'),coloryellow;
DRAWTEXT(猎杀=1,93,'猎杀'),colorred;
V9:=TROUGHBARS(3,15,1)<10,NODRAW;
V10:=PEAKBARS(3,15,1)<10,NODRAW;
V11:=IF(V9=1,50,0),NODRAW;
V12:=IF(V10=1,50,0),NODRAW;
TTT:=IF(V12=50,100,0),NODRAW;
DDD:=IF(V11=50,50,0),NODRAW;
DRAWTEXT(DDD>REF(DDD,1),95,'★'),coloryellow;
DRAWTEXT(DDD>REF(DDD,1),93,'安全'),colorred;
DRAWTEXT(TTT>REF(TTT,1),95,'★'),coloryellow;
DRAWTEXT(TTT>REF(TTT,1),93,'吃鸡'),colorred;
吃鸡:IF(TTT>REF(TTT,1),1,0),COLOR00FFFF,NODRAW;



3、多空线( 股 民 学 院 : http://www.58188.net )

x:=(3*C+L+O+H)/6;
多空线:
(20*x+19*REF(x,1)+18*REF(x,2)+17*REF(x,3)+16*REF(x,4)+15*REF(x,5)+14*REF(x,6)
+13*REF(x,7)+12*REF(x,8)+11*REF(x,9)+10*REF(x,10)+9*REF(x,11)+8*REF(x,12)
+7*REF(x,13)+6*REF(x,14)+5*REF(x,15)+4*REF(x,16)+3*REF(x,17)+2*REF(x,18)+
REF(x,20))/210,colorwhite ,linethick1;
STICKLINE(REF(多空线,1)<多空线,多空线,REF(多空线,1),3,1),colorred;
STICKLINE(REF(多空线,1)>多空线,多空线,REF(多空线,1),3,1),colorcyan;
var1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
var2:=REF(var1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
var3:=REF(var2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
var4:=REF(var3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
var5:=REF(var4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
var6:=REF(var5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
var7:=REF(var6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
var8:=REF(var7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
var9:=REF(var8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
varA:=REF(var9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
varB:=REF(varA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
varC:=REF(varB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
STICKLINE(var1 OR var2 OR var3 OR var4 OR var5 OR var6 OR var7 OR
var8 OR var9 OR varA OR varB OR varC,CLOSE,REF(CLOSE,1),6,1),colorred;
varD: =CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
varE: =REF(varD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
varF: =REF(varE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
var10:=REF(varF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
var11:=REF(var10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
var12:=REF(var11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
var13:=REF(var12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
var14:=REF(var13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
var15:=REF(var14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
var16:=REF(var15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
var17:=REF(var16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
var18:=REF(var17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
STICKLINE(varD OR varE OR varF OR var10 OR var11 OR var12 OR var13 OR
var14 OR var15 OR var16 OR var17 OR var18,CLOSE,REF(CLOSE,1),6,0),COLOR00FF00;
var19:=REF(varD OR varE OR varF OR var10 OR var11 OR var12 OR var13 OR
var14 OR var15 OR var16 OR var17 OR var18,1) AND var1;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),6,1),coloryellow;
var1A:=REF(var1 OR var2 OR var3 OR var4 OR var5 OR var6 OR var7 OR
var8 OR var9 OR varA OR varB OR varC,1) AND varD;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),6,2),Color00ff00, LINETHICK5;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR00ffff, LINETHICK5;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR00c8ff, LINETHICK5;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR10ecff, LINETHICK5;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10ffff, LINETHICK5;
STICKLINE(var19,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR10f0ff, LINETHICK5;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),8,0),COLORff50ff, LINETHICK5;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),6,0),COLORff50ff, LINETHICK5;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),4,0),COLORff50ff, LINETHICK5;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORff50ff, LINETHICK5;
STICKLINE(var1A,REF(CLOSE,1),REF(CLOSE,2),0,0),COLORff50ff, LINETHICK5;

上一篇:同花顺源码:短买副图,快炒线上抓牛头,多指数共振钝化背离结构

下一篇:同花顺源码:战略家副图,抄底出现买入,MACD连红连绿