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

同花顺弘历背离王,波浪买卖点,长趋势线指标

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

弘历背离王:

该指标由弘历背离王指标改写而成,出现红箭头为买入信号,出现绿箭头为卖出信号。

AAA:=CLOSE*9.81987-14.18013*REF(CLOSE,1)-1.68013*REF(CLOSE,2)-1.3468*REF(CLOSE,3)-1.0968*REF(CLOSE,4)-0.8968*REF(CLOSE,5)-0.73013*REF(CLOSE,6)-0.58728*REF(CLOSE,7)-0.46228*REF(CLOSE,8)-0.35117*REF(CLOSE,9)-0.25117*REF(CLOSE,10)-0.16026*REF(CLOSE,11)-0.07692*REF(CLOSE,12);

BBB:=CLOSE*29.88179-36.11821*REF(CLOSE,1)-2.61821*REF(CLOSE,2)-2.28488*REF(CLOSE,3)-2.03488*REF(CLOSE,4)-1.83488*REF(CLOSE,5)-1.66821*REF(CLOSE,6)-1.52535*REF(CLOSE,7)-1.40035*REF(CLOSE,8)-1.28924*REF(CLOSE,9)-1.18924*REF(CLOSE,10)-1.09833*REF(CLOSE,11)-1.015*REF(CLOSE,12)-0.93808*REF(CLOSE,13)-0.86665*REF(CLOSE,14)-0.79998*REF(CLOSE,15)-0.73748*REF(CLOSE,16)-0.67866*REF(CLOSE,17)-0.6231*REF(CLOSE,18)-0.57047*REF(CLOSE,19)-0.52047*REF(CLOSE,20)-0.47285*REF(CLOSE,21)-0.4274*REF(CLOSE,22)-0.38392*REF(CLOSE,23)-0.34225*REF(CLOSE,24)-0.30225*REF(CLOSE,25)-0.26379*REF(CLOSE,26)-0.22675*REF(CLOSE,27)-0.19104*REF(CLOSE,28)-0.15656*REF(CLOSE,29)-0.12322*REF(CLOSE,30)-0.09096*REF(CLOSE,31)-0.05971*REF(CLOSE,32)-0.02941*REF(CLOSE,33);

高:=(3-BBB/AAA)*100;

上:=HHV(高,2);

收:=MA(高,3)-STD(高,3);

开:=MA(高,5)-STD(高,4);

低:=MA(高,5)-STD(高,4);

MID1:=MA(收,26);

UPPER:=MID1+2*STD(高,26);

LOWER:=MID1-2*STD(低,26);

FILLRGN(UPPER,LOWER,CLOSE>0,color333311);

MID:=MID1;

STICKLINE(收>=开,高,低,1,0),colorFF00FF;

STICKLINE(收>=开,高,低,0,0),colorFFBBFF;

STICKLINE(收>=开,收,开,8,0),colorFF00FF;

STICKLINE(收>=开,收,开,7,0),colorFF22FF;

STICKLINE(收>=开,收,开,6,0),colorFF44FF;

STICKLINE(收>=开,收,开,5,0),colorFF66FF;

STICKLINE(收>=开,收,开,4,0),colorFF88FF;

STICKLINE(收>=开,收,开,3,0),colorFF99FF;

STICKLINE(收>=开,收,开,2,0),colorFFAAFF;

STICKLINE(收>=开,收,开,1,0),colorFFBBFF;

STICKLINE(收<开,高,低,1,0),color8800;

STICKLINE(收<开,高,低,0,0),colorFF00;

STICKLINE(收<开,收,开,8,0),color8800;

STICKLINE(收<开,收,开,7,0),color9900;

STICKLINE(收<开,收,开,6,0),colorAA00;

STICKLINE(收<开,收,开,5,0),colorBB00;

STICKLINE(收<开,收,开,4,0),colorCC00;

STICKLINE(收<开,收,开,3,0),colorDD00;

STICKLINE(收<开,收,开,2,0),colorEE00;

STICKLINE(收<开,收,开,1,0),colorFF00;

STICKLINE(上=高,高,低,1,0),colorFF;

STICKLINE(上=高,高,低,0,0),colorEEFF;

STICKLINE(上=高,收,开,8,0),colorFF;

STICKLINE(上=高,收,开,7,0),color22FF;

STICKLINE(上=高,收,开,6,0),color44FF;

STICKLINE(上=高,收,开,5,0),color66FF;

STICKLINE(上=高,收,开,4,0),color88FF;

STICKLINE(上=高,收,开,3,0),colorAAFF;

STICKLINE(上=高,收,开,2,0),colorCCFF;

STICKLINE(上=高,收,开,1,0),colorEEFF;
............




波浪买卖点:

波浪线:ZIG(C,13),LINETHICK1,colorwhite;

DRAWTEXT(CROSS(ZIG(3,5) ,REF(ZIG(3 ,5),1)) ,LOW*1.00,'★'),colorred;
DRAWTEXT(CROSS(REF(ZIG(3,5),1),ZIG(3,5)) ,HIGH*1.00,'★'),colorgreen;
ZJ1953:=ZIG(C,15);
粉丝:=MA(ZJ1953,3);
DRAWTEXT(CROSS(ZJ1953,粉丝),LOW*0.95,'建仓'),colorblue;
DRAWTEXT(CROSS(粉丝,ZJ1953),HIGH*1.05,'清仓 '),colormagenta;
阻力价:HHV(HIGH,19),colormagenta,LINETHICK1,NODRAW;
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),LINETHICK1,coloryellow;
UR:=2; LR:=4;
TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);
TC2:=CONST(BARSLAST(TC1=H))+1;
UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));
BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);
BC2:=CONST(BARSLAST(BC1=L))+1;
LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;
HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;
NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));
LR1:=FORCAST(C,NOD+1);
NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-
1))),DRAWNULL),POINTDOT,COLOR93BDA8,NODRAW;
LR2:=SLOPE(C,NOD+1);
LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));
FP:=NP-LR3*(NOD),POINTDOT,COLOR93BDA8,NODRAW;
EQU:=(NP+FP)/2,POINTDOT,COLOR93BDA8,NODRAW;
AD:=ABS(NP-FP);
DBL:=BARSLAST(BC1!=DRAWNULL)+1;
DBH:=BARSLAST(TC1!=DRAWNULL)+1;
BSP:=IF(BC2>TC2,DBL,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC2));
AT3:=CONST(BARSLAST(AT1-LRL=AT2));
AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));
AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC2));
UT3:=CONST(BARSLAST(LRL-UT1=UT2));
UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));
UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));
VAR1:=(C+H+O+L)/4;
顶阴影线:=XMA(VAR1,20)*(1+1/8),colorgreen,LINETHICK1;
DRAWTEXT(CROSS(HIGH,顶阴影线),HIGH*1.025,'顶'),colorblack;
 



长趋势线:

长趋势线(顶尖财经:股票学院 http://www.58188.com)

参数导入公式,可以看到


 DIF:=EMA(CLOSE,P)-EMA(CLOSE,S);

DEA:=EMA(DIF,N);
MACD:DIF,COLORSTICK;
DEA1:EMA(DIF,N),colorblue,LINETHICK2;
 

上一篇:同花顺箱体买入支撑压力,量比异动探底,趋势买卖顺势买入指标

下一篇:同花顺斐波那契数列,强弱变色指标红强黄弱,主力吸筹A指标