当前位置:首页 > 通达信公式 > 正文

「翔博精选指标」九转主图,好公式主图,修复部分(通达信公式

2020-06-18原创 编 辑:翔博软件

 {公式名称: 九转主图

公式描述: 
无参数
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:无
用法注释:无
公式源码:}
X_1:=BARSLAST(CURRBARSCOUNT=120);
X_2:=CONST(IF(ISLASTBAR=1,HHV(HIGH,X_1),0));
X_3:=CONST(IF(ISLASTBAR=1,LLV(LOW,X_1),0));
X_4:=X_2-X_3;
高区:IF(CURRBARSCOUNT<=120,X_2,DRAWNULL),COLOR004080,LINETHICK4;
低区:IF(CURRBARSCOUNT<=120,X_3,DRAWNULL),COLOR004080,LINETHICK2;
平衡:IF(CURRBARSCOUNT<=120,X_3+X_4/2,DRAWNULL),COLOR004080,LINETHICK2;
支撑:IF(CURRBARSCOUNT<=120/2,X_3+X_4*0.191,DRAWNULL),COLOR004080,LINETHICK2;
强势:IF(CURRBARSCOUNT<=120/2,X_3+X_4*0.382,DRAWNULL),COLOR004080,LINETHICK2;
突破:IF(CURRBARSCOUNT<=120,X_3+X_4/2,DRAWNULL),COLOR004080,LINETHICK2;
警示:IF(CURRBARSCOUNT<=120/2,X_3+X_4*0.618,DRAWNULL),COLOR004080,LINETHICK2;
压力:IF(CURRBARSCOUNT<=120/2,X_3+X_4*0.809,DRAWNULL),COLOR004080,LINETHICK2;
X_5:=CURRBARSCOUNT;
STICKLINE(X_5=60,HHV(高区,60),LLV(低区,60),0.01,0),COLOR004080;
STICKLINE(X_5=120,HHV(高区,60),LLV(低区,60),0.01,0),COLOR004080;
STICKLINE(X_5=1,HHV(高区,60),LLV(低区,60),0.01,0),COLOR004080;
 
DRAWTEXT(CURRBARSCOUNT=1,压力,'压力'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=1,警示,'警示'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=1,突破,'突破'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=1,强势,'强势'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=1,支撑,'支撑'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=120/4+30,X_2-X_4*0.09,'避险'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=120/4+30,X_2-X_4*0.3,'逢高减仓'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=120/4+30,X_2-X_4*0.45,'强力拉上'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=120/4+30,X_2-X_4*0.55,'强势蓄锐'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=120/4+30,X_3+X_4/3,'逢低买入'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=120/4+30,X_3+X_4/10,'大胆买入'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=120/2+6,X_2-X_4*0.25,'300'),COLOR004080;
DRAWTEXT(CURRBARSCOUNT=120/2+6,X_3+X_4*0.25,'301'),COLOR004080;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWTEXT_FIX(ISLASTBAR,0.005,0.05,0,HYBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.06,0.05,0,DYBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.12,0.05,0,GNBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.28,0.05,0,FGBLOCK),COLORWHITE;
DRAWTEXT_FIX(1,0.88,5,0,'35'),COLORRED;
 
ZK1:(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25),DOTLINE,COLORBLUE;
ZD1:XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1,COLORRED,LINETHICK2;
ZD2:EMA(ZD1,5),LINETHICK2;
DRAWBAND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_6:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
X_7:=DYNAINFO(5)<0.01 OR DYNAINFO(6)<0.01;
X_8:=IF(X_7,1,X_6<DYNAINFO(5)+0.01 AND X_6>DYNAINFO(6)-0.01);
X_9:=CLOSE>=REF(CLOSE,4);
X_10:=CLOSE<REF(CLOSE,4);
X_11:=CLOSE<REF(CLOSE,4) AND REF(X_9,1);
X_12:=BARSLAST(X_11);
X_13:=X_12=0 AND REFX(X_12=1 AND NOT(X_10),1) OR REFX(X_12=2 AND NOT(X_10),2) OR REFX(X_12=3 AND NOT(X_10),3) OR REFX(X_12=4 AND NOT(X_10),4) OR REFX(X_12=5 AND NOT(X_10),5) OR REFX(X_12=6 AND NOT(X_10),6) OR REFX(X_12=7 AND NOT(X_10),7) OR REFX(X_12=8 AND NOT(X_10),8);
X_14:=X_12=1 AND REFX(X_12=2 AND NOT(X_10),1) OR REFX(X_12=3 AND NOT(X_10),2) OR REFX(X_12=4 AND NOT(X_10),3) OR REFX(X_12=5 AND NOT(X_10),4) OR REFX(X_12=6 AND NOT(X_10),5) OR REFX(X_12=7 AND NOT(X_10),6) OR REFX(X_12=8 AND NOT(X_10),7);
X_15:=X_12=2 AND REFX(X_12=3 AND NOT(X_10),1) OR REFX(X_12=4 AND NOT(X_10),2) OR REFX(X_12=5 AND NOT(X_10),3) OR REFX(X_12=6 AND NOT(X_10),4) OR REFX(X_12=7 AND NOT(X_10),5) OR REFX(X_12=8 AND NOT(X_10),6);
X_16:=X_12=3 AND REFX(X_12=4 AND NOT(X_10),1) OR REFX(X_12=5 AND NOT(X_10),2) OR REFX(X_12=6 AND NOT(X_10),3) OR REFX(X_12=7 AND NOT(X_10),4) OR REFX(X_12=8 AND NOT(X_10),5);
X_17:=X_12=4 AND REFX(X_12=5 AND NOT(X_10),1) OR REFX(X_12=6 AND NOT(X_10),2) OR REFX(X_12=7 AND NOT(X_10),3) OR REFX(X_12=8 AND NOT(X_10),4);
X_18:=X_12=5 AND REFX(X_12=6 AND NOT(X_10),1) OR REFX(X_12=7 AND NOT(X_10),2) OR REFX(X_12=8 AND NOT(X_10),3);
X_19:=X_12=6 AND REFX(X_12=7 AND NOT(X_10),1) OR REFX(X_12=8 AND NOT(X_10),2);
X_20:=X_12=7 AND REFX(X_12=8 AND NOT(X_10),1);
X_21:=X_12=1 AND REF(X_12=0 AND X_11,1) AND X_10;
X_22:=X_12=2 AND REF(X_21,1) AND X_10;
X_23:=X_12=3 AND REF(X_22,1) AND X_10;
X_24:=X_12=4 AND REF(X_23,1) AND X_10;
X_25:=X_12=5 AND REF(X_24,1) AND X_10;
X_26:=X_12=6 AND REF(X_25,1) AND X_10;
X_27:=X_12=7 AND REF(X_26,1) AND X_10;
X_28:=X_12=8 AND REF(X_27,1) AND X_10;
X_29:=LOW*0.985;
X_30:=HIGH*1.011;
DRAWTEXT(X_12=0 AND NOT(X_13),X_29,'1'),COLORGREEN;
DRAWTEXT(X_21 AND NOT(X_14),X_29,'2'),COLORGREEN;
DRAWTEXT(X_22 AND NOT(X_15),X_29,'3'),COLORGREEN;
DRAWTEXT(X_23 AND NOT(X_16),X_29,'4'),COLORGREEN;
DRAWTEXT(X_24 AND NOT(X_17),X_29,'5'),COLORGREEN;
DRAWTEXT(X_25 AND NOT(X_18),X_29,'6'),COLORGREEN;
DRAWTEXT(X_26 AND NOT(X_19),X_29,'7'),COLORGREEN;
DRAWTEXT(X_27 AND NOT(X_20),X_29,'8'),COLORGREEN;
DRAWTEXT(X_28,X_30,'9'),COLORMAGENTA,LINETHICK9;
X_31:=CLOSE<=REF(CLOSE,4);
X_32:=CLOSE>REF(CLOSE,4);
X_33:=CLOSE>REF(CLOSE,4) AND REF(X_31,1);
X_34:=BARSLAST(X_33);
X_35:=X_34=0 AND REFX(X_34=1 AND NOT(X_32),1) OR REFX(X_34=2 AND NOT(X_32),2) OR REFX(X_34=3 AND NOT(X_32),3) OR REFX(X_34=4 AND NOT(X_32),4) OR REFX(X_34=5 AND NOT(X_32),5) OR REFX(X_34=6 AND NOT(X_32),6) OR REFX(X_34=7 AND NOT(X_32),7) OR REFX(X_34=8 AND NOT(X_32),8);
X_36:=X_34=1 AND REFX(X_34=2 AND NOT(X_32),1) OR REFX(X_34=3 AND NOT(X_32),2) OR REFX(X_34=4 AND NOT(X_32),3) OR REFX(X_34=5 AND NOT(X_32),4) OR REFX(X_34=6 AND NOT(X_32),5) OR REFX(X_34=7 AND NOT(X_32),6) OR REFX(X_34=8 AND NOT(X_32),7);
X_37:=X_34=2 AND REFX(X_34=3 AND NOT(X_32),1) OR REFX(X_34=4 AND NOT(X_32),2) OR REFX(X_34=5 AND NOT(X_32),3) OR REFX(X_34=6 AND NOT(X_32),4) OR REFX(X_34=7 AND NOT(X_32),5) OR REFX(X_34=8 AND NOT(X_32),6);
X_38:=X_34=3 AND REFX(X_34=4 AND NOT(X_32),1) OR REFX(X_34=5 AND NOT(X_32),2) OR REFX(X_34=6 AND NOT(X_32),3) OR REFX(X_34=7 AND NOT(X_32),4) OR REFX(X_34=8 AND NOT(X_32),5);
X_39:=X_34=4 AND REFX(X_34=5 AND NOT(X_32),1) OR REFX(X_34=6 AND NOT(X_32),2) OR REFX(X_34=7 AND NOT(X_32),7) OR REFX(X_34=8 AND NOT(X_32),4);
X_40:=X_34=5 AND REFX(X_34=6 AND NOT(X_32),1) OR REFX(X_34=7 AND NOT(X_32),2) OR REFX(X_34=8 AND NOT(X_32),3);
X_41:=X_34=6 AND REFX(X_34=7 AND NOT(X_32),1) OR REFX(X_34=8 AND NOT(X_32),2);
X_42:=X_34=7 AND REFX(X_34=8 AND NOT(X_32),1);
X_43:=X_34=1 AND REF(X_34=0 AND X_33,1) AND X_32;
X_44:=X_34=2 AND REF(X_43,1) AND X_32;
X_45:=X_34=3 AND REF(X_44,1) AND X_32;
X_46:=X_34=4 AND REF(X_45,1) AND X_32;
X_47:=X_34=5 AND REF(X_46,1) AND X_32;
X_48:=X_34=6 AND REF(X_47,1) AND X_32;
X_49:=X_34=7 AND REF(X_48,1) AND X_32;
X_50:=X_34=8 AND REF(X_49,1) AND X_32;
DRAWTEXT(X_34=0 AND NOT(X_35),X_30,''),COLOR9900CC;
DRAWTEXT(X_43 AND NOT(X_36),X_30,'2'),COLOR9900CC;
DRAWTEXT(X_44 AND NOT(X_37),X_30,'3'),COLOR9900CC;
DRAWTEXT(X_45 AND NOT(X_38),X_30,'4'),COLOR9900CC;
DRAWTEXT(X_46 AND NOT(X_39),X_30,'5'),COLOR9900CC;
DRAWTEXT(X_47 AND NOT(X_40),X_30,'6'),COLOR9900CC;
DRAWTEXT(X_48 AND NOT(X_41),X_30,'7'),COLOR9900CC;
DRAWTEXT(X_49 AND NOT(X_42),X_30,'8'),COLOR9900CC;
DRAWTEXT(X_50,X_29,'9'),COLORGREEN,LINETHICK3;
X_51:=BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1));
X_52:=REF(CLOSE,X_51+1)>CLOSE AND REF(MACD.DIF,X_51+1)<MACD.DIF AND CROSS(MACD.DIF,MACD.DEA);
DRAWTEXT(X_52>0,X_29,'266'),COLORYELLOW;
X_53:=BARSLAST(REF(CROSS(MACD.DEA,MACD.DIF),1));
X_54:=REF(CLOSE,X_53+1)<CLOSE AND REF(MACD.DIF,X_53+1)>MACD.DIF AND CROSS(MACD.DEA,MACD.DIF);
DRAWTEXT(X_54>0,X_30,'310'),COLORGREEN;
X_55:=10;
X_56:=10;
X_57:=2;
X_58:=IF(PERIOD=5,1,IF(PERIOD=6,1,IF(PERIOD=7,1,IF(PERIOD=8,1,IF(PERIOD=9,1,IF(PERIOD=10,1,IF(PERIOD=11,2,IF(PERIOD=4,1,IF(PERIOD=3,1,IF(PERIOD=2,1,IF(PERIOD=1,1,1)))))))))))/10;
X_59:=PEAK(1,X_58*X_55,1);
X_60:=PEAK(1,X_58*X_55,2);
X_61:=PEAKBARS(1,X_58*X_55,1);
X_62:=PEAKBARS(1,X_58*X_55,2);
X_63:=TROUGH(2,X_58*X_56,1);
X_64:=TROUGH(2,X_58*X_56,2);
X_65:=TROUGHBARS(2,X_58*X_56,1);
X_66:=TROUGHBARS(2,X_58*X_56,2);
X_67:=X_59>X_63 AND X_60>X_64;
X_68:=MAX(X_63,X_64);
X_69:=MIN(X_59,X_60);
X_70:=MIN(X_63,X_64);
X_71:=MAX(X_59,X_60);
X_72:=FILTER(X_69>X_68,2);
X_73:=X_69=REF(X_69,BARSLAST(X_72)) OR X_68=REF(X_68,BARSLAST(X_72));
X_74:=X_67 AND X_72 AND NOT(X_73);
X_75:=BETWEEN(X_68,REF(X_68,REF(BARSLAST(X_74),1)),REF(X_69,REF(BARSLAST(X_74),1)));
X_76:=BETWEEN(X_69,REF(X_68,REF(BARSLAST(X_74),1)),REF(X_69,REF(BARSLAST(X_74),1)));
X_77:=X_69>REF(X_69,REF(BARSLAST(X_74),1)) AND X_68<REF(X_68,REF(BARSLAST(X_74),1));
X_78:=X_74 AND NOT(X_75 OR X_76 OR X_77);
X_79:=IF(X_78,X_68,DRAWNULL);
X_80:=IF(X_78,X_69,DRAWNULL);
X_81:=IF(X_78,X_71,DRAWNULL);
X_82:=IF(X_78,X_70,DRAWNULL);
STICKLINE(X_78,X_81,X_82,0,(-1)),COLORMAGENTA;
STICKLINE(X_78,X_79,X_80,IF(X_57=1,3,0),1),COLORMAGENTA;
DRAWTEXT(X_57=2,X_81,'311'),COLORRED;
中枢高:PLOYLINE(X_57=2,REF(X_79,BARSLAST(X_78))),CROSSDOT,COLORLIRED;
中枢低:PLOYLINE(X_57=2,REF(X_80,BARSLAST(X_78))),CROSSDOT,COLORLIGREEN;
中枢最高:PLOYLINE(X_57=2,REF(X_81,BARSLAST(X_78))),POINTDOT,COLORRED;
中枢最低:PLOYLINE(X_57=2,REF(X_82,BARSLAST(X_78))),POINTDOT,COLORGREEN;
趋势高:PLOYLINE(X_57=3,ZIG(1,X_58*X_55)),COLORLIBLUE;
趋势低:PLOYLINE(X_57=3,ZIG(2,X_58*X_56)),COLORLIBLUE;
X_83:=BACKSET(LLV(LOW,5)<REF(LLV(LOW,4),1),4);
X_84:=BACKSET(X_83=0 AND REF(X_83,1)=1,2);
X_85:=IF(X_84=1 AND REF(X_84,1)=0,(-1),0);
X_86:=BACKSET(HHV(HIGH,5)>REF(HHV(HIGH,4),1),4);
X_87:=BACKSET(X_86=0 AND REF(X_86,1)=1,2);
X_88:=IF(X_87=1 AND REF(X_87,1)=0,1,0);
X_89:=IF(LOW>REF(HIGH,1),1,IF(HIGH<REF(LOW,1),(-1),0));
X_90:=BARSLAST(X_88=1);
X_91:=BARSLAST(X_85=(-1));
X_92:=LOWRANGE(LOW);
X_93:=TOPRANGE(HIGH);
X_94:=IF(X_85=(-1) AND REF(X_90,1)>REF(X_91,1) AND LLV(LOW,X_90+1)<REF(LLV(LOW,X_90+1),1),(-1),0);
X_95:=IF(X_85=(-1) AND REF(X_90,1)<=REF(X_91,1) AND (X_90>=4 OR LLV(X_89,X_90)=(-1) OR LLV(LOW,X_91+2)<REF(LLV(LOW,X_91+1),1)),(-1),0);
X_96:=IF(X_94=(-1) OR X_95=(-1) AND LOW<REF(HIGH,X_90+1),(-1),0);
X_97:=IF(X_91<4 AND HHV(X_89,X_91)!=1 OR REF(X_96,X_91)=0,1,0);
X_98:=IF(X_88=1 AND REF(X_91,1)<=REF(X_90,1) AND X_97=1 AND X_93>REF(X_92,X_91+1) AND X_93>REF(X_92,X_91) AND X_93>REF(X_93,X_90),1,0);
X_99:=IF(X_88=1 AND REF(X_91,1)>REF(X_90,1) AND HHV(HIGH,X_91+1)>REF(HHV(HIGH,X_91+1),1),1,0);
X_100:=IF(X_88=1 AND REF(X_91,1)<=REF(X_90,1) AND REF(X_96,X_91)=(-1) AND (X_91>=4 OR HHV(X_89,X_91)=1),1,0);
X_101:=IF(X_99=1 OR X_100=1 OR X_98=1 AND HIGH>REF(LOW,X_91+1),1,0);
X_102:=IF(X_90<4 AND HHV(X_89,X_90)!=1 OR REF(X_101,X_90)=0,1,0);
X_103:=IF(X_85=(-1) AND REF(X_90,1)<=REF(X_91,1) AND X_102=1 AND X_92>REF(X_93,X_90+1) AND X_92>REF(X_93,X_90) AND X_92>REF(X_92,X_91),(-1),0);
X_104:=IF(X_85=(-1) AND REF(X_90,1)>REF(X_91,1) AND LLV(LOW,X_90+1)<REF(LLV(LOW,X_90+1),1),(-1),0);
X_105:=IF(X_85=(-1) AND REF(X_90,1)<=REF(X_91,1) AND (X_90>=4 OR LLV(X_89,X_90)=(-1) OR X_103=(-1)),(-1),0);
X_106:=IF(X_104=(-1) OR X_105=(-1) AND LOW<REF(HIGH,X_90+1),(-1),0);
X_107:=BARSLAST(X_101=1);
X_108:=BARSLAST(X_106=(-1));
X_109:=IF(X_108<4 AND HHV(X_89,X_108)!=1 OR REF(X_106,X_108)=0,1,0);
X_110:=IF(X_88=1 AND REF(X_108,1)<=REF(X_107,1) AND X_109=1 AND X_93>REF(X_92,X_108+1) AND X_93>REF(X_92,X_108) AND X_93>REF(X_93,X_107),1,0);
X_111:=IF(X_88=1 AND REF(X_108,1)>REF(X_107,1) AND HHV(HIGH,X_108+1)>REF(HHV(HIGH,X_108+1),1),1,0);
X_112:=IF(X_88=1 AND REF(X_108,1)<=REF(X_107,1) AND REF(X_106,X_108)=(-1) AND (X_108>=4 OR HHV(X_89,X_108)=1),1,0);
X_113:=IF(X_111=1 OR X_112=1 OR X_110=1 AND HIGH>REF(LOW,X_108+1),1,0);
X_114:=IF(X_107<4 AND HHV(X_89,X_107)!=1 OR REF(X_111,X_107)=0,1,0);
X_115:=IF(X_85=(-1) AND REF(X_107,1)<=REF(X_108,1) AND X_114=1 AND X_92>REF(X_93,X_107+1) AND X_92>REF(X_93,X_107) AND X_92>REF(X_92,X_108),(-1),0);
X_116:=IF(X_85=(-1) AND REF(X_107,1)>REF(X_108,1) AND LLV(LOW,X_107+1)<REF(LLV(LOW,X_107+1),1),(-1),0);
X_117:=IF(X_85=(-1) AND REF(X_107,1)<=REF(X_108,1) AND (X_107>=4 OR LLV(X_89,X_107)=(-1) OR X_115=(-1)),(-1),0);
X_118:=IF(X_116=(-1) OR X_117=(-1) AND LOW<REF(HIGH,X_107+1),(-1),0);
X_119:=BARSLAST(X_113=1);
X_120:=BARSLAST(X_118=(-1));
X_121:=IF(X_120<4 AND HHV(X_89,X_120)!=1 OR REF(X_118,X_120)=0,1,0);
X_122:=IF(X_88=1 AND REF(X_120,1)<=REF(X_119,1) AND X_121=1 AND X_93>REF(X_92,X_120+1) AND X_93>REF(X_92,X_120) AND X_93>REF(X_93,X_119),1,0);
X_123:=IF(X_88=1 AND REF(X_120,1)>REF(X_119,1) AND HHV(HIGH,X_120+1)>REF(HHV(HIGH,X_120+1),1),1,0);
X_124:=IF(X_88=1 AND REF(X_120,1)<=REF(X_119,1) AND REF(X_118,X_120)=(-1) AND (X_120>=4 OR HHV(X_89,X_120)=1),1,0);
X_125:=IF(X_123=1 OR X_124=1 OR X_122=1 AND HIGH>REF(LOW,X_120+1),1,0);
X_126:=IF(X_119<4 AND HHV(X_89,X_119)!=1 OR REF(X_123,X_119)=0,1,0);
X_127:=IF(X_85=(-1) AND REF(X_119,1)<=REF(X_120,1) AND X_126=1 AND X_92>REF(X_93,X_119+1) AND X_92>REF(X_93,X_119) AND X_92>REF(X_92,X_120),(-1),0);
X_128:=IF(X_85=(-1) AND REF(X_119,1)>REF(X_120,1) AND LLV(LOW,X_119+1)<REF(LLV(LOW,X_119+1),1),(-1),0);
X_129:=IF(X_85=(-1) AND REF(X_119,1)<=REF(X_120,1) AND (X_119>=4 OR LLV(X_89,X_119)=(-1) OR X_127=(-1)),(-1),0);
X_130:=IF(X_128=(-1) OR X_129=(-1) AND LOW<REF(HIGH,X_119+1),(-1),0);
X_131:=IF(X_125=1 AND X_130=(-1) AND HIGH>REF(HIGH,REF(X_119,1)+2),1,IF(X_125=1 AND X_130=(-1) AND LOW<REF(LOW,REF(X_120,1)+2),(-1),0));
X_132:=IF(X_131=0,X_125+X_130,X_131);
局部极点:IF(X_132=(-1),LOW,IF(X_132=1,HIGH,DRAWNULL)),CIRCLEDOT,COLORYELLOW;
DRAWLINE(X_132=(-1),局部极点,X_132=1,局部极点,0),COLORLIRED;
DRAWLINE(X_132=1,局部极点,X_132=(-1),局部极点,0),COLORYELLOW;
X_133:=BARSLAST(ABS(X_132)!=1);
DRAWTEXT(X_132=1,局部极点,'卖'),COLORGREEN;
DRAWTEXT(X_132=(-1),局部极点,'买'),COLORRED;
MA5:MA(CLOSE,5),COLORMAGENTA,LINETHICK2;
判:IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORWHITE,LINETHICK2;
X_134:=VOL*CLOSE/100;
X_135:=SUM(IF(X_134/8>20 AND CLOSE>REF(CLOSE,1),X_134,0),0);
X_136:=SUM(IF(X_134/8>20 AND CLOSE<REF(CLOSE,1),X_134,0),0);
X_137:=X_135+X_136;
X_138:=IF(ISLASTBAR,100*X_135/X_137,0);
X_139:=IF(ISLASTBAR,100*X_136/X_137,0);
X_140:=1;
X_141:=STRCAT(STRCAT(250,CON2STR(100*X_135/X_137,0)),251);
X_142:=STRCAT(STRCAT(252,CON2STR(100*X_136/X_137,0)),251);
X_143:=DRAWTEXT_FIX(X_140=1,0,0.02,0,X_141);
X_144:=DRAWTEXT_FIX(X_140=1,0,0.13,0,X_142);
X_145:=BUYVOL*DYNAINFO(7)*100/10000;
X_146:=SELLVOL*DYNAINFO(7)*100/10000;
X_147:=ABS(X_145)+ABS(X_146);
X_148:=ABS(X_145)-ABS(X_146);
X_149:=ABS(X_145)/X_147*100;
X_150:=ABS(X_146)/X_147*100;
TESTSKIP(NOT(X_145 OR X_146 OR X_147 OR X_148 OR X_149 OR X_150)!=0);
DRAWRECTREL(50-X_146*50/X_147,1000,50,940,RGB(0,128,0));
DRAWRECTREL(50-X_146*50/X_147,995,50,945,RGB(0,148,0));
DRAWRECTREL(50,1000,50+X_145*50/X_147,940,RGB(128,0,0));
DRAWRECTREL(50,995,50+X_145*50/X_147,945,RGB(148,0,0));
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND X_148>0,0.1,0.95,0,STRCAT(253,STRCAT(CON2STR(X_148,1),'37'))),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND X_148<0,0.1,0.95,0,STRCAT(253,STRCAT(CON2STR(X_148,1),'37'))),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND X_148=0,0.1,0.95,0,STRCAT(253,STRCAT(CON2STR(X_148,1),'37'))),COLOR80FFFF;
WWW70822COM:DRAWNULL,COLORRED;
X_151:=1;
X_152:=350;
X_153:=REFDATE(HHV(HIGH,120),DATE)*1.05;
X_154:=REFDATE(LLV(LOW,120),DATE)*0.95;
X_155:=MA(CLOSE,5);
X_156:=MA(CLOSE,24);
X_157:=MA(CLOSE,72);
X_158:=IF(MA(CLOSE,200)<=X_153 AND MA(CLOSE,200)>=X_154 OR CLOSE>=MA(CLOSE,200),MA(CLOSE,200),DRAWNULL);
X_159:=ISLASTBAR AND X_155>X_156 AND X_156>X_157 AND X_157>IF(X_158=DRAWNULL,0,X_158);
X_160:=ISLASTBAR AND X_156>X_155 AND X_155>X_157 AND X_157>IF(X_158=DRAWNULL,0,X_158);
X_161:=ISLASTBAR AND X_156>X_157 AND X_157>X_155 AND X_155>IF(X_158=DRAWNULL,0,X_158);
X_162:=ISLASTBAR AND IF(X_158=DRAWNULL,300,X_158)>MAX(X_156,X_157) AND X_155>X_156 AND X_156>X_157;
X_163:=ISLASTBAR AND IF(X_158=DRAWNULL,300,X_158)>X_157 AND X_157>X_156 AND X_155>X_156;
X_164:=ISLASTBAR AND IF(X_158=DRAWNULL,300,X_158)>X_157 AND X_157>X_156 AND X_156>X_155;
X_165:=ISLASTBAR AND IF(X_158=DRAWNULL,X_156>X_157 AND CLOSE<X_157,X_157>X_158 AND CLOSE<X_158);
X_166:=ISLASTBAR AND IF(X_158=DRAWNULL,X_156<X_157 AND CLOSE>=X_157,X_157<X_158 AND CLOSE>=X_158);
X_167:=ISLASTBAR AND IF(X_158=DRAWNULL,X_156<X_157 AND CLOSE<X_157,X_157<X_158 AND CLOSE<X_158);
DRAWGBK(X_151=1 AND X_159=0 AND X_160=0 AND X_161=0 AND X_162=0 AND X_163=0 AND X_164=0 AND X_165=0 AND X_166=0 AND X_167=0,0,0,0,313,0);
DRAWGBK(X_151=1 AND X_159,0,0,0,314,0);
DRAWGBK(X_151=1 AND X_160,0,0,0,315,0);
DRAWGBK(X_151=1 AND X_161,0,0,0,316,0);
DRAWGBK(X_151=1 AND X_162,0,0,0,317,0);
DRAWGBK(X_151=1 AND X_163,0,0,0,318,0);
DRAWGBK(X_151=1 AND X_164,0,0,0,319,0);
DRAWGBK(X_151=1 AND X_165,0,0,0,313,0);
DRAWGBK(X_151=1 AND X_166,0,0,0,320,0);

DRAWGBK(X_151=1 AND X_167,0,0,0,321,0);

 

 

大家都爱看
查看更多热点新闻
点击进入翔博软件旗下掌上指标--自助下载指标