分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]趋势线,k线突破下降趋势买入(通达信公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:6.00 KB
官方主页:Home Page
更新时间:2020-07-20 12:10:43
软件简介:

 趋势线公式

公式用法说明:
 k线突破下降趋势买入,k线回档下降趋势持币或加仓
在趋势线下面的蓝色线上,并且趋势向上的,往往有一波涨幅!
重点是:不破大胆买

  
 
 市值:=STRCAT(STRCAT('      流通市值:   ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
 
盈利单:WINNER(C)*100,NODRAW,COLORRED;
 
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK),COLORGREEN;
实体:=(C-O)/REF(C,1)*100,COLORGREEN,NODRAW;
涨幅:=(C/REF(C,1)-1)*100,COLORRED,NODRAW;
 
SRQ:=CURRBARSCOUNT;
GZ1:=CONST(TROUGH(2,P/100,G1));
GZ2:=CONST(TROUGH(2,P/100,G2));
GCZ:=GZ1-GZ2;
GN1:=CONST(TROUGHBARS(2,P/100,G1));
GN2:=CONST(TROUGHBARS(2,P/100,G2));
 
GNC:=CONST(GN2-GN1);
Q1:=GN2-SRQ+1;
 
DWDS:=GCZ/GNC;
QSX:=DWDS*Q1+GZ2;
上升趋势线:IF(Q1>0,QSX,GZ2),COLORFF00F1;
 
 
FZ1:=CONST(PEAK(1,P/100,F1));
FZ2:=CONST(PEAK(1,P/100,F2));
FCZ:=FZ2-FZ1;
FN1:=CONST(PEAKBARS(1,P/100,F1));
FN2:=CONST(PEAKBARS(1,P/100,F2));
 
FNC:=CONST(FN1-FN2);
F1:=FN2-SRQ+1;
 
FGWDS:=FCZ/FNC;
QSX1:=FGWDS*F1+FZ2;
下降趋势线:IF(F1>0,QSX1,FZ2),COLOR00FF00;
 
STICKLINE(CROSS(上升趋势线,C),O,C,2,0),COLORGREEN;
STICKLINE(CROSS(C,下降趋势线),O,C,2,0),COLORRED;
DRAWICON(CROSS(上升趋势线,C),H*1.02,2);
DRAWICON(CROSS(C,下降趋势线),L*0.98,1);
 
 
N1:=13;
VARW1:=REF(C,1);
VARW2:=SMA(MAX(C-VARW1,0),N1,1)/SMA(ABS(C-VARW1),N1,1)*1000;
VARW3:=DRAWLINE(VARW2>=HHV(VARW2,N1),VARW2,VARW2<=LLV(VARW2,N1),VARW2,1);
VARW4:=VARW2=VARW3;
VARW5:=VARW2<REF(VARW2,1);
 
DRAWICON(VARW4 AND VARW5,L*0.97,9);
DRAWTEXT(VARW4 AND VARW5,L*0.97,' 福')COLORYELLOW;
 
 
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
买1:=VAR10;
买2:=(VAR11+VAR13+VAR15+VAR17);
卖1:=(VAR12+VAR14+VAR16+VAR18);
B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));
F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLORRED;
DRAWTEXT(CROSS(S,卖1),S,'←落袋'),COLORWHITE,LINETHICK1;
DRAWTEXT(CROSS(B,买1),B,'←不破大胆买'),COLORRED,LINETHICK1;
VAR2:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));
VAR31:=((REF(VAR2,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR41:=((REF(VAR31,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR51:=((REF(VAR41,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR61:=((REF(VAR51,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR71:=((REF(VAR61,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR81:=((REF(VAR71,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR91:=((REF(VAR81,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VARA1:=((REF(VAR91,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VARB:=((REF(VARA1,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VARC:=((REF(VARB,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VARD:=((REF(VARC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
{分析家公式网 WWW.70822.com 整理}
VARE:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));
VARF:=((REF(VARE,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR101:=((REF(VARF,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR111:=((REF(VAR101,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR121:=((REF(VAR111,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR131:=((REF(VAR121,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR141:=((REF(VAR131,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR151:=((REF(VAR141,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR161:=((REF(VAR151,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR171:=((REF(VAR161,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR181:=((REF(VAR171,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR191:=((REF(VAR181,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR1A:=(REF((((((((((((VARE OR VARF) OR VAR101) OR VAR111) OR VAR121) OR VAR131) OR VAR141) OR VAR151) OR VAR161) OR VAR171) OR VAR181) OR VAR191),1) AND VAR2);
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),WW,0)COLORYELLOW;



[url=http://www.70822.com/soft/sort013/sort05/down-149328.html]趋势线,k线突破下降趋势买入(通达信公式 主图 源码 测试图)[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:62.50000 毫秒