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

同花顺指标:趋势启动线+G顶底+阻力线-操作线

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

趋势启动线:

RSV:=((HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13)))*(100);
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,5,1);
STICKLINE((LWR1>=LWR2),HIGH,LOW,0.05,0),colorgreen;
STICKLINE((LWR1>=LWR2),OPEN,CLOSE,5,0),colorgreen;
STICKLINE((LWR1<LWR2),HIGH,LOW,0.05,0),color0000FF;
STICKLINE((LWR1<LWR2),OPEN,CLOSE,5,1),color0000FF;
VAR1aa:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);
VAR2aa:=VOL;
上升价格线:(SUM((VAR1aa)*(VAR2aa),8))/(SUM(VAR2aa,8)),Color0000FF;
下降价格线:LLV(上升价格线,8),Color00FF00;
VAR3aa:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4aa:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3aa>0),91,0);
DRAWTEXT(FILTER((VAR4aa>90),34),(LOW)*(0.94999998),'加仓'),colorred;
A1aa:=9;
A2aa:=(REF(CLOSE,A1aa+1)<CLOSE);
Var1:=REF(CLOSE,1);
Var2:=MA(CLOSE,5);
Var3:=SMA(MAX(CLOSE-Var1,0),6,1)/SMA(ABS(CLOSE-Var1),6,1)*100;
Var4:=SMA(MAX(CLOSE-Var1,0),12,1)/SMA(ABS(CLOSE-Var1),12,1)*100;
Var5:=SMA(MAX(CLOSE-Var1,0),24,1)/SMA(ABS(CLOSE-Var1),24,1)*100;
Var6:=IF(CROSS(Var3,Var5),LOW,REF(LOW,BARSLAST(CROSS(Var3,Var5))));
Var7:=IF(CROSS(Var5,Var3),HIGH,REF(HIGH,BARSLAST(CROSS(Var5,Var3))));
Var8:=IF(CLOSE>=MA(CLOSE,20),80,50);
Var9:=IF(CLOSE>=MA(CLOSE,20),50,20);
VarA:=IF(Var3<Var8 AND REF(Var3,1)>=Var8,HHV(REF(HIGH,1),BARSLAST(Var3>=Var8 AND REF(Var3,1)<Var8)-1),REF(HHV(REF(HIGH,1),BARSLAST(Var3>=Var8 AND REF(Var3,1)<Var8)-1),BARSLAST(Var3<Var8 AND REF(Var3,1))));
VarB:=IF(HIGH>VarA,LOW,REF(LOW,BARSLAST(HIGH>VarA)));
VarC:=IF(HIGH>VarA,Var3,REF(Var3,BARSLAST(HIGH>VarA)));
VarD:=IF(HIGH>VarB AND Var3<VarC AND Var3<Var5,HIGH,REF(HIGH,BARSLAST(HIGH>VarB AND Var3<VarC AND Var3<Var5)));
VarE:=IF(Var3>Var9 AND REF(Var3,1)<=Var9,LLV(REF(LOW,1),BARSLAST(Var3<=Var9 AND REF(Var3,1)>Var9)-1),REF(LLV(REF(LOW,1),BARSLAST(Var3<=Var9 AND REF(Var3,1)>Var9)-1),BARSLAST(Var3>Var9 AND REF(Var3,1))));
VarF:=IF(LOW<VarE,HIGH,REF(HIGH,BARSLAST(LOW<VarE)));
Var10:=IF(LOW<VarE,Var3,REF(Var3,BARSLAST(LOW<VarE)));
Var11:=IF(LOW<VarF AND Var3>Var10 AND Var3>Var5,LOW,REF(LOW,BARSLAST(LOW<VarF AND Var3>Var10 AND Var3>Var5)));
压力线: Var11,COLORFF00FF ,LINETHICK1 ;
支撑线: VarD, coloryellow,LINETHICK1 ;




G顶底:

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

做空:=SMA(VAR4,2,1);
VAR5:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
做多:=SMA(VAR5,5,1)-8;
动能:(做多-做空)+80,colorliblue;
IF(动能>REF(动能,1),动能,DRAWNULL),coloryellow;
界:80,coloryellow,POINTDOT;
吸:0,colorliblue,POINTDOT;
抛:160,colorgreen,POINTDOT;



阻力线-操作线(顶尖财经 股票学院: http://58188.com):

阻力线:MA(CLOSE,5),coloryellow,LINETHICK2;

操作线:MA(CLOSE,13),colorred,LINETHICK2;
DRAWTEXT(CROSS(阻力线,操作线),阻力线*0.98,'突破'),coloryellow;
DRAWTEXT(CROSS(操作线,阻力线),操作线*1.02,'破位'),colormagenta;
T:=阻力线-操作线;
//红绿棒:(阻力线-操作线),COLORSTICK;
STICKLINE(T>=0,阻力线,操作线,2,0),colormagenta;
STICKLINE(T<0,操作线,阻力线,2,0),colorcyan;

上一篇:同花顺指标:运达茅台+蓝黄测试+猎庄利器

下一篇:同花顺源码:买卖点提示+小均线+GC低吸技巧