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

同花顺源码:波段趋势,趋势买卖点

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

波段趋势:

价在多空线上,多空线桔色表示正处于上行趋势,入场操作。

价在多空线下,多空线蓝色提示现在正处于下跌趋势,场外观望。
黄托底买,绿压顶卖。( 顶尖财经 股票学院: http://www.58188.com )
三平底买进,三平顶卖出。

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;




趋势买卖点:

DRAWICON (  REF( ((ZIG(3,P1)>REF(ZIG(3,P1),1)) AND (REF(ZIG(3,P1),1)<=REF(ZIG(3,P1),2)) AND (REF(ZIG(3,P1),2)<=REF(ZIG(3,P1),3))),K-1) ,LOW*0.98,1);

DRAWICON (  REF( ((ZIG(3,P1)<REF(ZIG(3,P1),1)) AND (REF(ZIG(3,P1),1)>=REF(ZIG(3,P1),2)) AND (REF(ZIG(3,P1),2)>=REF(ZIG(3,P1),3))),K-1) ,HIGH*1.01,2);
//DRAWICON((ZIG(3,P1)>REF(ZIG(3,P1),1)) AND (REF(ZIG(3,P1),1)<=REF(ZIG(3,P1),2)) AND (REF(ZIG(3,P1),2)<=REF(ZIG(3,P1),3)),LOW*0.98,1) ;
//DRAWICON((ZIG(3,P1)<REF(ZIG(3,P1),1)) AND (REF(ZIG(3,P1),1)>=REF(ZIG(3,P1),2)) AND (REF(ZIG(3,P1),2)>=REF(ZIG(3,P1),3)),HIGH*1.01,2);
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR8:=IF(VAR6<=-20,10,0);
VAR9:=HHV(VAR8,10);
VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:=EMA(VAR7,5)*2, , COLORFF00FF;
D:=EMA(K,5), , colorwhite;
J:=K*3-D*2, ,coloryellow;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),LOW*0.93,'接近底部');
DRAWTEXT(VARA=20,LOW*0.95,'底部');
保护线:MA(C,3),coloryellow;
生命线:MA(C,21),colorgreen;
趋势线:MA(C,12),colorblue;
牛熊分界线:MA(C,55),colorred;
VAR1:=ZIG(3,P2)<REF(ZIG(3,P2),1) AND REF(ZIG(3,P2),1)>REF(ZIG(3,P2),2);
VAR2:=ZIG(3,P2)>REF(ZIG(3,P2),1) AND REF(ZIG(3,P2),1)<REF(ZIG(3,P2),2);
STICKLINE(VAR1,C,O,8,0),colorgreen,LINETHICK2;
STICKLINE(VAR1,C,O,3,0),colorgreen,LINETHICK2;
STICKLINE(VAR1,H,L,1,0),colorgreen,LINETHICK2;
STICKLINE(VAR2,C,O,8,0),coloryellow,LINETHICK2;
STICKLINE(VAR2,C,O,3,0),coloryellow,LINETHICK2;
STICKLINE(VAR2,H,L,1,0),coloryellow,LINETHICK2;

上一篇:同花顺源码:XL自用均线系统,红买蓝卖,必涨买入

下一篇:同花顺公式下载:多空量能,主力筹码锁持,精确核价,舍得线