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

软件名称:[B]长短趋势主图(通达信公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:15.0 KB
官方主页:Home Page
更新时间:2022-09-03 00:14:39
软件简介:

 长短趋势主图

X_1:=STRCAT(5388,STRCAT(STRCAT(STRCAT(5389,HYBLOCK),STRCAT(5390,DYBLOCK)),STRCAT(5391,GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,'分析家公式网'),COLORMAGENTA;
X_2:=REF(CLOSE,1);
X_3:=REF(CLOSE,1)*1.097;
X_4:=CLOSE>=X_3 AND CLOSE=HIGH;
STICKLINE(X_4,OPEN,CLOSE,2.5,0),COLORYELLOW;
X_5:=IF(DTPRICE(REF(CLOSE,1),0.1)=CLOSE,2,0);
STICKLINE(X_5,OPEN,CLOSE,2.5,0),COLORGREEN;
X_6:=LOW<REF(LOW,1) AND HIGH<REF(HIGH,1);
X_7:=LOW>REF(LOW,1) AND HIGH>REF(HIGH,1);
X_8:=LOW<REF(LOW,1) AND HIGH>=REF(HIGH,1) AND REF(LOW,1)>=REF(LOW,2) AND REF(HIGH,1)<=REF(HIGH,2) AND HIGH<REF(HIGH,2) AND COUNT(X_6,BARSLAST(X_7))=0;
X_9:=HIGH>REF(HIGH,1) AND LOW<=REF(LOW,1) AND REF(HIGH,1)<=REF(HIGH,2) AND REF(LOW,1)>=REF(LOW,2) AND LOW>REF(LOW,2) AND COUNT(X_7,BARSLAST(X_6))=0;
X_10:=HIGH<REF(HIGH,1) AND REF(LOW,1)<=REF(LOW,2) AND REF(HIGH,1)>=REF(HIGH,2) AND LOW<REF(LOW,2) AND COUNT(X_6,BARSLAST(X_7))=0;
X_11:=LOW>REF(LOW,1) AND REF(HIGH,1)>=REF(HIGH,2) AND REF(LOW,1)<=REF(LOW,2) AND HIGH>REF(HIGH,2) AND COUNT(X_7,BARSLAST(X_6))=0;
X_12:=X_6 OR X_8 OR X_10;
X_13:=X_7 OR X_9 OR X_11;
X_14:=X_13 AND COUNT(X_13,BARSLAST(X_12))=1;
X_15:=X_12 AND COUNT(X_12,BARSLAST(X_13))=1;
X_16:=IF(X_14,LLV(LOW,1+BARSLAST(X_15)),0);
X_17:=IF(X_16,X_16,REF(X_16,BARSLAST(X_16)));
X_18:=IF(X_15,HHV(HIGH,1+BARSLAST(X_14)),0);
X_19:=IF(X_18,X_18,REF(X_18,BARSLAST(X_18)));
X_20:=HIGH>=REF(HIGH,1) AND LOW<=REF(LOW,1);
X_21:=HIGH<=REF(HIGH,1) AND LOW>=REF(LOW,1);
X_22:=X_20 OR X_21;
X_23:=HIGH>=REF(HIGH,1) AND LOW<=REF(LOW,1) AND REF(LOW,1)>=REF(HIGH,2) AND REF(HIGH,1)<=REF(HIGH,2) AND HIGH>=REF(HIGH,2);
X_24:=HIGH<=REF(HIGH,1) AND LOW>=REF(LOW,1) AND REF(HIGH,1)>=REF(HIGH,2) AND REF(LOW,1)<=REF(LOW,2) AND LOW<=REF(LOW,2);
X_25:=X_23 OR X_24 AND (COUNT(X_15,BARSLAST(X_14))=0 OR X_15);
X_26:=HIGH>=REF(HIGH,1) AND LOW<=REF(LOW,1) AND REF(HIGH,1)<=REF(HIGH,2) AND REF(LOW,1)>=REF(LOW,2) AND LOW>=REF(LOW,2);
X_27:=HIGH<=REF(HIGH,1) AND LOW>=REF(LOW,2) AND REF(LOW,1)<=REF(LOW,2) AND REF(HIGH,1)>=REF(HIGH,2) AND HIGH>=REF(HIGH,2);
X_28:=X_26 OR X_27 AND (COUNT(X_14,BARSLAST(X_15))=0 OR X_14);
X_29:=X_25 OR X_28;
X_30:=BARSLAST(X_17!=REF(X_17,1))-COUNT(X_22,BARSLAST(X_17!=REF(X_17,1)))+COUNT(X_29,BARSLAST(X_17!=REF(X_17,1)))>2 AND HIGH=HHV(HIGH,1+BARSLAST(X_17!=REF(X_17,1))) AND COUNT(LOW<REF(X_17,BARSLAST(X_17!=REF(X_17,1))),BARSLAST(X_17!=REF(X_17,1)))=0 AND BARSLAST(X_17!=REF(X_17,1))>0;
X_31:=SUMBARS(X_17!=REF(X_17,1),2)-COUNT(X_22,SUMBARS(X_17!=REF(X_17,1),2))+COUNT(X_29,SUMBARS(X_17!=REF(X_17,1),2))>3 AND HIGH=HHV(HIGH,SUMBARS(X_17!=REF(X_17,1),2)) AND REF(X_17,SUMBARS(X_17!=REF(X_17,1),2)-1)<=LLV(LOW,SUMBARS(X_17!=REF(X_17,1),2));
X_32:=SUMBARS(X_17!=REF(X_17,1),3)-COUNT(X_22,SUMBARS(X_17!=REF(X_17,1),3))+COUNT(X_29,SUMBARS(X_17!=REF(X_17,1),3))>3 AND HIGH=HHV(HIGH,SUMBARS(X_17!=REF(X_17,1),3)) AND REF(X_17,SUMBARS(X_17!=REF(X_17,1),3)-1)<=LLV(LOW,SUMBARS(X_17!=REF(X_17,1),3));
X_33:=SUMBARS(X_17!=REF(X_17,1),4)-COUNT(X_22,SUMBARS(X_17!=REF(X_17,1),4))+COUNT(X_29,SUMBARS(X_17!=REF(X_17,1),4))>3 AND HIGH=HHV(HIGH,SUMBARS(X_17!=REF(X_17,1),4)) AND REF(X_17,SUMBARS(X_17!=REF(X_17,1),4)-1)<=LLV(LOW,SUMBARS(X_17!=REF(X_17,1),4));
X_34:=SUMBARS(X_17!=REF(X_17,1),5)-COUNT(X_22,SUMBARS(X_17!=REF(X_17,1),5))+COUNT(X_29,SUMBARS(X_17!=REF(X_17,1),5))>3 AND HIGH=HHV(HIGH,SUMBARS(X_17!=REF(X_17,1),5)) AND REF(X_17,SUMBARS(X_17!=REF(X_17,1),5)-1)<=LLV(LOW,SUMBARS(X_17!=REF(X_17,1),5));
X_35:=SUMBARS(X_17!=REF(X_17,1),6)-COUNT(X_22,SUMBARS(X_17!=REF(X_17,1),6))+COUNT(X_29,SUMBARS(X_17!=REF(X_17,1),6))>3 AND HIGH=HHV(HIGH,SUMBARS(X_17!=REF(X_17,1),6)) AND REF(X_17,SUMBARS(X_17!=REF(X_17,1),6)-1)<=LLV(LOW,SUMBARS(X_17!=REF(X_17,1),6));
X_36:=BARSLAST(X_19!=REF(X_19,1))-COUNT(X_22,BARSLAST(X_19!=REF(X_19,1)))+COUNT(X_29,BARSLAST(X_19!=REF(X_19,1)))>2 AND COUNT(HIGH>REF(X_19,BARSLAST(X_19!=REF(X_19,1))),BARSLAST(X_19!=REF(X_19,1)))=0 AND LOW=LLV(LOW,BARSLAST(X_19!=REF(X_19,1))) AND BARSLAST(X_19!=REF(X_19,1))>0;
X_37:=SUMBARS(X_19!=REF(X_19,1),2)-COUNT(X_22,SUMBARS(X_19!=REF(X_19,1),2))+COUNT(X_29,SUMBARS(X_19!=REF(X_19,1),2))>3 AND LOW=LLV(LOW,SUMBARS(X_19!=REF(X_19,1),2)) AND REF(X_19,SUMBARS(X_19!=REF(X_19,1),2)-1)>=HHV(HIGH,SUMBARS(X_19!=REF(X_19,1),2));
X_38:=SUMBARS(X_19!=REF(X_19,1),3)-COUNT(X_22,SUMBARS(X_19!=REF(X_19,1),3))+COUNT(X_29,SUMBARS(X_19!=REF(X_19,1),3))>3 AND LOW=LLV(LOW,SUMBARS(X_19!=REF(X_19,1),3)) AND REF(X_19,SUMBARS(X_19!=REF(X_19,1),3)-1)>=HHV(HIGH,SUMBARS(X_19!=REF(X_19,1),3));
X_39:=SUMBARS(X_19!=REF(X_19,1),4)-COUNT(X_22,SUMBARS(X_19!=REF(X_19,1),4))+COUNT(X_29,SUMBARS(X_19!=REF(X_19,1),4))>3 AND LOW=LLV(LOW,SUMBARS(X_19!=REF(X_19,1),4)) AND REF(X_19,SUMBARS(X_19!=REF(X_19,1),4)-1)>=HHV(HIGH,SUMBARS(X_19!=REF(X_19,1),4));
X_40:=SUMBARS(X_19!=REF(X_19,1),5)-COUNT(X_22,SUMBARS(X_19!=REF(X_19,1),5))+COUNT(X_29,SUMBARS(X_19!=REF(X_19,1),5))>3 AND LOW=LLV(LOW,SUMBARS(X_19!=REF(X_19,1),5)) AND REF(X_19,SUMBARS(X_19!=REF(X_19,1),5)-1)>=HHV(HIGH,SUMBARS(X_19!=REF(X_19,1),5));
X_41:=SUMBARS(X_19!=REF(X_19,1),6)-COUNT(X_22,SUMBARS(X_19!=REF(X_19,1),6))+COUNT(X_29,SUMBARS(X_19!=REF(X_19,1),6))>3 AND LOW=LLV(LOW,SUMBARS(X_19!=REF(X_19,1),6)) AND REF(X_19,SUMBARS(X_19!=REF(X_19,1),6)-1)>=HHV(HIGH,SUMBARS(X_19!=REF(X_19,1),6));
X_42:=X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35;
X_43:=X_36 OR X_37 OR X_38 OR X_39 OR X_40 OR X_41;
X_44:=X_42 AND COUNT(X_42,1+BARSLAST(X_43))=1;
X_45:=X_43 AND COUNT(X_43,1+BARSLAST(X_42))=1;
X_46:=IF(X_44,LLV(LOW,1+BARSLAST(X_45)),0);
X_47:=IF(X_46,X_46,REF(X_46,BARSLAST(X_46)));
X_48:=IF(X_45,HHV(HIGH,1+BARSLAST(X_44)),0);
X_49:=IF(X_48,X_48,REF(X_48,BARSLAST(X_48)));
X_50:=HHV(HIGH,1+BARSLAST(X_46))=HIGH;
X_51:=LLV(LOW,1+BARSLAST(X_48))=LOW;
X_52:=FILTERX(X_50,BARSLAST(X_51));
X_53:=FILTERX(X_51,BARSLAST(X_50));
X_54:=IF(X_53,LOW,0);
X_55:=IF(X_52,HIGH,0);
X_56:=IF(X_54>0,X_54,REF(X_54,BARSLAST(X_54>0)));
X_57:=IF(X_55>0,X_55,REF(X_55,BARSLAST(X_55>0)));
X_58:=BARSLAST(X_53)-COUNT(X_22,BARSLAST(X_53))+COUNT(X_29,BARSLAST(X_53))>3 AND COUNT(LOW<REF(X_56,BARSLAST(X_53)),BARSLAST(X_53))=0 AND HIGH=HHV(HIGH,1+BARSLAST(X_53)) AND BARSLAST(X_53)>0;
X_59:=BARSLAST(X_52)-COUNT(X_22,BARSLAST(X_52))+COUNT(X_29,BARSLAST(X_52))>3 AND COUNT(HIGH>REF(X_57,BARSLAST(X_52)),BARSLAST(X_52))=0 AND LOW=LLV(LOW,BARSLAST(X_52)) AND BARSLAST(X_52)>0;
X_60:=FILTERX(X_58,BARSLAST(X_59));
X_61:=FILTERX(X_59,BARSLAST(X_58));
X_62:=IF(X_61,LOW,0);
X_63:=IF(X_60,HIGH,0);
X_64:=IF(X_62>0,X_62,REF(X_62,BARSLAST(X_62>0)));
X_65:=IF(X_63>0,X_63,REF(X_63,BARSLAST(X_63>0)));
X_66:=LLV(LOW,1+BARSLAST(X_64!=REF(X_64,1) OR (X_62>0 AND X_64=REF(X_64,1))))=LOW AND COUNT(X_65!=REF(X_65,1),BARSLAST(X_64!=REF(X_64,1) OR (X_62>0 AND X_64=REF(X_64,1))))=0;
X_67:=HHV(HIGH,1+BARSLAST(X_65!=REF(X_65,1) OR (X_63>0 AND X_65=REF(X_65,1))))=HIGH AND COUNT(X_64!=REF(X_64,1),BARSLAST(X_65!=REF(X_65,1) OR (X_63>0 AND X_65=REF(X_65,1))))=0;
X_68:=FILTERX(X_67,BARSLAST(X_66));
X_69:=FILTERX(X_66,B
[url=http://www.70822.com/soft/sort013/sort05/down-163986.html]长短趋势主图(通达信公式 主图 源码 测试图)[/url]

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