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

同花顺源码:找低点,组合副图,趋势拐点买卖

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

1、找低点

Var1:=EMA(HHV(HIGH,500),21);

Var2:=EMA(HHV(HIGH,250),21);

Var3:=EMA(HHV(HIGH,90),21);

Var4:=EMA(LLV(LOW,500),21);

Var5:=EMA(LLV(LOW,250),21);

Var6:=EMA(LLV(LOW,90),21);

Var7:=EMA((Var4*0.96+Var5*0.96+Var6*0.96+Var1*0.558+Var2*0.558+Var3*0.558)/6,21);

Var8:=EMA((Var4*1.25+Var5*1.23+Var6*1.2+Var1*0.55+Var2*0.55+Var3*0.65)/6,21);

Var9:=EMA((Var4*1.3+Var5*1.3+Var6*1.3+Var1*0.68+Var2*0.68+Var3*0.68)/6,21);

VarA:=EMA((Var7*3+Var8*2+Var9)/6*1.738,21);

VarB:=REF(LOW,1);

VarC:=SMA(ABS(LOW-VarB),3,1)/SMA(MAX(LOW-VarB,0),3,1)*100;

VarD:=EMA(IF(CLOSE*1.35<=VarA,VarC*10,VarC/10),3);

VarE:=LLV(LOW,30);

VarF:=HHV(VarD,30);

Var10:=IF(MA(CLOSE,58),1,0);

QZG: EMA(IF(LOW<=VarE,(VarD+VarF*2)/2,0),3)/618*Var10, colorred;

QZG2:EMA(IF(LOW<=VarE,(VarD+VarF*2)/2,0),3)/-618*Var10, coloryellow;

RSV:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;

Km:=SMA(RSV,3,1);

Kt:=SMA(Km,3,1),linethick1;

Dt:=SMA(Km,11,1),linethick1;

LOWV:=LLV(LOW,8);

HIGHV:=HHV(HIGH,8);

RSV2:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);

At:=EMA(RSV,3),colorffff00,linethick1;

BT:=MA(At,3),colorffff00,linethick1;

VAR1j:=3;

VAR2j:=((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1),3,1)));

底:=IF(CROSS(VAR2j,VAR1j),1,0),colorffffff;

STICKLINE(底,0,10,2,0),colorffffff;



2、组合副图

MA60:=MA(C,60);

MA90:=MA(C,90);
MA120:=MA(C,120);
MA250:=MA(C,250);
REFLINE: 0, 20, 50, 80, 100;
RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
K:SMA(RSV,5,1);
D:SMA(K,3,1);
J:3*K-2*D;
WE:=MA60>=REF(MA60,1) AND MA90>=REF(MA90,1) AND MA120>=REF(MA120,1) AND MA250>=REF(MA250,1);
WR:=CROSS(MA60,MA90) OR CROSS(MA60,MA120) OR CROSS(MA60,MA250);
WT:=CROSS(MA90,MA120) OR CROSS(MA90,MA250);
WY:=CROSS(MA120,MA250);
PARTLINE(j,j>=REF(j,1),RGB(255,0,0),j<REF(j,1),RGB(0,255,0)),linethick2;
Var1:=EMA(HHV(HIGH,500),21);
Var2:=EMA(HHV(HIGH,250),21);
Var3:=EMA(HHV(HIGH,90),21);
Var4:=EMA(LLV(LOW,500),21);
Var5:=EMA(LLV(LOW,250),21);
Var6:=EMA(LLV(LOW,90),21);
Var7:=EMA((Var4*0.96+Var5*0.96+Var6*0.96+Var1*0.558+Var2*0.558+Var3*0.558)/6,21);
Var8:=EMA((Var4*1.25+Var5*1.23+Var6*1.2+Var1*0.55+Var2*0.55+Var3*0.65)/6,21);
Var9:=EMA((Var4*1.3+Var5*1.3+Var6*1.3+Var1*0.68+Var2*0.68+Var3*0.68)/6,21);
追涨:IF((WE AND (WR OR WT OR WY)),80,0);
主力:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),color1010FF;
VarA:=EMA((Var7*3+Var8*2+Var9)/6*1.738,21);
VarB:=REF(LOW,1);
VarC:=SMA(ABS(LOW-VarB),3,1)/SMA(MAX(LOW-VarB,0),3,1)*100;
VarD:=EMA(IF(CLOSE*1.35<=VarA,VarC*10,VarC/10),3);
VarE:=LLV(LOW,30);
VarF:=HHV(VarD,30);
散户:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorE67010,linethick2;
黑马初现:IF(CROSS(主力,9),50,0),STICK,linethick3,color00ff00;
Var10:=IF(MA(CLOSE,58),1,0);
DRAWTEXT(CROSS(主力,9),40,'黑马初现!'),color00ff00;
火焰山:EMA(IF(LOW<=VarE,(VarD+VarF*2)/2,0),3)/618*Var10,coloryellow;
火焰:=STICKLINE(火焰山>0 ,0 ,火焰山 ,4 ,1);
今量:火焰山;
Vard1:=EMA(CLOSE,3);
Vard2:=EMA(CLOSE,21);
Vard3:=BARSLAST(CROSS(Vard2,Vard1))>15;
Vard4:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;
Vard5:=CROSS(Vard1,Vard2) AND Vard4 AND Vard3;
STICKLINE(火焰山>0,0 ,今量*1.2,8,0 ),COLOR00EEff;
STICKLINE(火焰山>0,0 ,今量*0.8,8,0 ),COLOR00BBff;
STICKLINE(火焰山>0,0 ,今量*0.6,8,0 ),COLOR0099ff;
STICKLINE(火焰山>0,0 ,今量*0.4,8,0 ),COLOR0066ff;
STICKLINE(火焰山>0,0 ,今量*0.2,8,0 ),COLOR0000ff;
黑马:IF(Vard5,80,0),STICK,linethick4,colorf00ff0;
DRAWTEXT(Vard5,70,'黑马!'),colorf00ff0;



3、趋势拐点买卖

//_20日趋势拐点买卖( 顶尖 财经 股票学院: http://www.58188.com )

MA5:MA(CLOSE,5),LINETHICK1,colorwhite;
MA10:MA(CLOSE,10),LINETHICK1,coloryellow;
MA20:MA(CLOSE,20),LINETHICK2,colormagenta;
MA60:MA(CLOSE,60),LINETHICK1,colorgreen;
买线:=EMA(C,4);
卖线:=EMA(SLOPE(C,20)*10+C,35);
DRAWTEXT(CROSS(买线,卖线),LOW*1.00,'←买'),colorred,LINETHICK2;
DRAWTEXT(CROSS(卖线,买线),HIGH*1.01,'←卖'),colorgreen;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(90,RSI) , HIGH*1.01,'←逢高出局!'),COLOR00FF00 ;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;
ZZ:=(O+H+L)/3;
YC:=(H+L)/2;
YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;
今日买点:EMA(ZZ,3),coloryellow,LINETHICK0;
明日买点:YCHJX,LINETHICK0;
昨测今日买点:REF(YCHJX,1),LINETHICK0;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'←拐点卖'),COLOR00FF00;
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←拐点买'),COLOR00FFFF;

上一篇:同花顺源码:主力洗盘进场,寻找庄家,macd背离量柱

下一篇:同花顺源码:SKDJ顶底背离,梦想回归,超准的顶底参考指标