当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:中短趋势(副) 波段顶底,趋势指标(同花顺指标 副图 源码 测试图)
软件名称:[B]中短趋势(副) 波段顶底,趋势指标(同花顺指标 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2022-12-16 00:08:17
软件简介:
中短趋势(副)
波段顶底,趋势指标,上涨买入,下跌卖出,波段操作。
顶部:100;
高位:80;
分界:50;
低位:20;
底部:0;
/*双KD*/
VAR19:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
K1:=SMA(VAR19,3,1);
D1:=SMA(K1,3,1);
VAR27:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
K2:=SMA(VAR27,3,1);
D2:=SMA(K2,3,1);
VAR34:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K55:=SMA(VAR55,3,1);
D55:=SMA(K55,3,1);
DIBU:= K1<20 AND D1<20 AND K2<20 AND D2<20 AND D55<20;
STICKLINE(DIBU=1,-3,3,7,0),coloryellow,LINETHICK1;
TOBU:= K3>80 AND K2>80 ;
STICKLINE(TOBU=1,103,97,7,0),colorgreen,LINETHICK1;
/*实用的*/
RSV:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
上涨:IF(D>EMA(D,3),D,D),colorlired,LINETHICK1;
下跌:IF(D<EMA(D,3),D,DRAWNULL),colorligreen,LINETHICK1;
WRSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),RSIw,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),RSIw,1)*100;
卖出预警:STICKLINE( WRSI>82,100,92,6,0),colorwhite;
/*漂亮公主
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-C;
VAR3:=C-LLV(LOW,9);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(C-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*C+H+L)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7 ,3 ,1 )-SMA(VAR4 ,9 ,1);
VAR10:=IF(VAR9>100 ,VAR9-100 ,0 );
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VAR6- VAR8)/(VAR11-VAR8)*100,13 );
VAR13:=EMA(0.667*REF(VAR12 ,1) +0.333*VAR12,2 );
漂亮公主:=PARTLINE(VAR12,VAR12-VAR13 >0,colorred,VAR12-VAR13 <=0,colorgreen),LINETHICK2;
*/
/*万里寻花彩柱*/
HJ_1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
HJ_2:=SMA(SMA(HJ_1,3,1),3,1)/28.57;
HJ_3:=EMA(HJ_2,5);
HJ_4:=3*HJ_2-2*HJ_3;
HJ_5:=CROSS(HJ_4,HJ_2) AND HJ_2<2.1 AND CLOSE>OPEN;
HJ_6:=CROSS(HJ_4,HJ_2) AND HJ_2<2.1 AND CLOSE>OPEN;
HJ_7:=(2*CLOSE+HIGH+LOW)/4;
HJ_8:=LLV(LOW,13);
HJ_9:=HHV(HIGH,13);
HJ_10:=EMA((HJ_7-HJ_8)/(HJ_9-HJ_8)*100,13);
HJ_11:=EMA(0.667*REF(HJ_10,1)+0.333*HJ_10,2);
HJ_12:=HJ_10;
上升:IF(HJ_10>HJ_11,HJ_10,HJ_10),colormagenta,LINETHICK1;
下降:IF(HJ_10<=HJ_11,HJ_10,DRAWNULL),colorblue,LINETHICK1;
/*顺势而为*/
R:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
PERIODD:=9;
EMA1:=EMA(R,PERIODD);
EMA2:=EMA(EMA1,4);
DIFFERENCE:=EMA1-EMA2;
ZEROLAGEMA:=EMA1+DIFFERENCE;
看好了:=100-ABS(ZEROLAGEMA);
随行线:=MA(看好了,4);
K:=14;
FFILTER:=(K/100)*STD(看好了-REF(看好了,1),9);
XA:=IF(看好了<REF(看好了,1),看好了,0);
XN:=BARSLAST(XA>0 );
AMALOW:=REF(看好了,XN);
YA:=IF(看好了>REF(看好了,1),看好了,0);
YN:=BARSLAST(YA>0);
AMAHIGH:=REF(看好了,YN);
RR:=IF(AMAHIGH-看好了>FFILTER,-1,0);
TT:=IF(看好了-AMALOW>FFILTER,1,RR);
byx:=看好了;
升势:IF(byx>REF(byx,1),byx,byx), colorred,LINETHICK1;
降势:IF(byx<REF(byx,1),byx,DRAWNULL), colorwhite,LINETHICK1;
DRAWICON(byx>REF(byx,1) AND REF(byx,1)<=REF(byx,2) AND REF(byx,2)<=REF(byx,3) AND byx<20 ,50,1);
/*买卖明确*/
VAR1w:=HHV(HIGH,13)-LLV(LOW,13);
VAR2w:=HHV(HIGH,13)-CLOSE;
VAR3w:=CLOSE-LLV(LOW,13);
VAR4w:=VAR2w/VAR1w*100-70;
VAR5w:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6w:=(2*CLOSE+HIGH+LOW)/4;
VAR7w:=SMA(VAR3w/VAR1w*100,3,1);
VAR8w:=LLV(LOW,34);
VAR9w:=SMA(VAR7w,3,1)-SMA(VAR4w,9,1);
VAR10w:=IF(VAR9w>100,VAR9w-100,0);
VAR11w:=HHV(HIGH,34);
VAR12w:=EMA((VAR6w-VAR8w)/(VAR11w-VAR8w)*100,13);
VAR13w:=EMA(0.667*REF(VAR12w,1)+0.333*VAR12w,2);
STICKLINE(VAR12w-VAR13w>0,VAR12w,VAR13w,8,0),colorred,LINETHICK1;
STICKLINE(VAR12w-VAR13w<0,VAR12w,VAR13w,8,0),COLOR00FF0F,LINETHICK1;
/*
生命线:EMA(VAR13w,5), coloryellow;
出击:IF(CROSS(VAR12w,VAR13w) AND VAR12w>VAR13w AND VAR12w<18,20,0), STICK,colorwhite;
DRAWICON(出击>0,生命线,1 );
卖出:IF(CROSS(VAR13w,VAR12w) AND VAR12w<VAR13w AND VAR12w>60,VAR13w,88),POINTDOT,colorblue;
STICKLINE((CROSS(VAR13w,VAR12w) AND VAR12w<VAR13w AND VAR12w>60),VAR13w,88,2,1),colorblue;
DRAWICON(卖出<88,卖出,2);
排序:IF(出击>0,5,0),STICK,colorcyan;
*/
[url=http://www.70822.com/soft/sort013/sort036/down-165379.html]中短趋势(副) 波段顶底,趋势指标(同花顺指标 副图 源码 测试图)[/url]