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

同花顺源码精选:启动与回调,坚定看底,ATR通道线

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

1、启动与回调

//启动与回调
VAR2:=EMA(SLOPE(EMA(CLOSE,20),10)*34+CLOSE,30);
VAR3:=EMA(VAR2,3);
VAR4:=EMA(VAR3,3);
VAR5:=EMA(VAR4,3);
VAR6:=EMA(VAR5,3);
VA7:=EMA(VAR6,3);
VAR7:=EMA(VA7,3);
VA8:=EMA(VAR7,3);
VAR8:=EMA(VA8,3);
VAR9:=EMA(VAR8,3);
VARA:=BARSLAST(CROSS(CLOSE,VAR9));
VARB:=BARSLAST(CROSS(VAR9,CLOSE));
启动位:IF(CLOSE>VAR9 AND CLOSE>REF(CLOSE,VARA),REF(CLOSE,VARA),REF(CLOSE,VARA)),colorred,POINTDOT,LINETHICK3;
DRAWTEXT(ISLASTBAR AND 启动位,启动位,'____【升浪启动位】'),colorred;
DRAWNUMBER(ISLASTBAR AND 启动位,启动位,启动位),colorred;
STICKLINE(CLOSE>VAR9 AND CLOSE>REF(CLOSE,VARA),REF(CLOSE,VARA),LOW*1,5,0),colorred,LINETHICK2;
强:=IF(CLOSE<VAR9 AND CLOSE<REF(CLOSE,VARB),REF(CLOSE,VARB),REF(CLOSE,VARB)),colorred,POINTDOT,LINETHICK1;;
STICKLINE(CLOSE<VAR9 AND CLOSE<REF(CLOSE,VARB),REF(CLOSE,VARB),HIGH*1,5,0),colorgreen,LINETHICK2;
势:=IF(CLOSE>VAR9 AND CLOSE<REF(CLOSE,VARA),REF(CLOSE,VARA),REF(CLOSE,VARA)),coloryellow,POINTDOT;
STICKLINE(CLOSE>VAR9 AND CLOSE<REF(CLOSE,VARA),REF(CLOSE,VARA),LOW*1.02,6,0),colorligray;
回调位:IF(CLOSE<VAR9,REF(CLOSE,VARB),REF(CLOSE,VARB)),colorliblue,POINTDOT,LINETHICK3;
DRAWTEXT(ISLASTBAR AND 回调位,回调位,'____回调位'),colorliblue;
DRAWNUMBER(ISLASTBAR AND 回调位,回调位,回调位),colorliblue;
STICKLINE(CLOSE<VAR9,REF(CLOSE,VARB),REF(CLOSE,VARB),16,0),colorliblue,LINETHICK5;
STICKLINE(CLOSE>VAR9,REF(CLOSE,VARA),REF(CLOSE,VARA),16,0),colorred,LINETHICK5;
STICKLINE(C>=O,H,L,0,0),colormagenta,LINETHICK2;
MA1:=MA(C,1);
启动比:(MA1-启动位)/启动位*100,coloryellow,nodraw;
回调比:(MA1-回调位)/回调位*100,colorgreen,nodraw;C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0),Color2DFFFF;
STICKLINE(涨停,OPEN,CLOSE,10,0),Color008C8C;
STICKLINE(涨停,OPEN,CLOSE,8,0),Color00AAAA;
STICKLINE(涨停,OPEN,CLOSE,6,0),Color00CACA;
STICKLINE(涨停,OPEN,CLOSE,5,0),Color00E3E3;
STICKLINE(涨停,OPEN,CLOSE,4,0),Color02FFFF;
STICKLINE(涨停,OPEN,CLOSE,3,0),Color02FFFF;
STICKLINE(涨停,OPEN,CLOSE,2,0),Color2DFFFF;
STICKLINE(涨停,OPEN,CLOSE,1,0),Color2DFFFF;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0),Color33FF33;
STICKLINE(跌停,OPEN,CLOSE,10,0),Color009B00;
STICKLINE(跌停,OPEN,CLOSE,8,0),Color00B700;
STICKLINE(跌停,OPEN,CLOSE,6,0),Color00D200;
STICKLINE(跌停,OPEN,CLOSE,5,0),Color00EA00;
STICKLINE(跌停,OPEN,CLOSE,4,0),Color0FFF0F;
STICKLINE(跌停,OPEN,CLOSE,3,0),Color0FFF0F;
STICKLINE(跌停,OPEN,CLOSE,2,0),Color33FF33;
STICKLINE(跌停,OPEN,CLOSE,1,0),Color33FF33;
ZT:=C/REF(C,1)>1.097;
BH:=BARSLAST(ZT);
STICKLINE(C,REF(L,BH),REF(L,BH),15,0),colorligray,LINETHICK1;
涨停启动位:=C,REF(L,BH),REF(L,BH);
DRAWTEXT(ISLASTBAR AND 涨停启动位,涨停启动位,'____【启动涨停位】'),colorligray;
DRAWNUMBER(ISLASTBAR AND 涨停启动位,涨停启动位,涨停启动位),colorwhite;
 



2、坚定看底

VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;

VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5*100),4);
VAR8:=EMA(2/3*REF(VAR7,1)+1/3*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARa:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARb:=POW(MA(LOW,5),2)+MA(LOW,5);
VARc:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARd:=(VARa-LLV(VARb,64))/(HHV(VARc,64)-LLV(VARb,64))*150+65-10;
VARe:=SMA(VARd,3,1)*1.5-100;
VARf:=SMA(VARe,3,1);
VAR10:=3*VARe-2*VARf;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1a:=VAR2+VAR7+VAR17;
VAR1b:=VAR3+VAR8+VARf+VAR18;
VAR1c:=VAR4+VAR9+VAR10+VAR19;
VAR1d:=(HIGH+CLOSE+LOW)/3;
VAR20:=(VAR1d-MA(VAR1d,34))/(0.015*AVEDEV(VAR1d,34));
VAR22:=(HIGH+LOW+CLOSE+VAR1d)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1d-MA(VAR1d,24));
VAR27:=EMA(VAR25,5);
VAR2a:=((VAR27+VAR26+VAR20)/3+165)/4;
VAR2b:=(EMA(EMA(EMA(VAR2a,15),10),5)-25)*2;
VAR2c:=(VAR1a+VAR1b+VAR1c*30)/32/5-15;
VAR2d:=EMA(VAR2c,7);
VAR2e:=(VAR2a+VAR2c)/2/1.1;
超短线:EMA(VAR2e,3),colorred;
短线:EMA(超短线,5),colorgreen;
趋势线:EMA((VAR2b+VAR2d)/2,2),coloryellow;
DRAWICON(CROSS(趋势线,0),0,1);
DRAWICON(CROSS(100,超短线),100,2);
www58188com:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
DRAWTEXT(趋势线>REF(趋势线,1) AND REF(趋势线,1)<REF(趋势线,2) AND COUNT(CROSS(超短线,短线),3)=1 AND 短线<30,短线,'看底');




3、ATR通道线

ATR通道线,股价上涨到真实波幅的1/2/3倍或下跌到真实波幅的1/2/3倍时加减仓( 股 民 学 院 : http://www.58188.net )

 n:=13;

a=ATR(N);
b=2*a;
C=3*a;
d=CLOSE+a;
e=CLOSE-a;
f=CLOSE+b;
g=CLOSE-b;
H=CLOSE+C;
i=CLOSE-C;
ATR1:d;
ATR2:e;
ATR3:f;
ATR4:g;
ATR5:H;
ATR6:i;

上一篇:同花顺源码精选:光芒四射,主力洗盘建仓,多空趋势副图

下一篇:同花顺源码精选:KHAZIX波段,短线抄底