以下是通达信量梯和多空对比源码附图(无源码的请下载附件导入)
{公式名称: 多空对比
公式描述:
无参数
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
超短:100*(CLOSE-LLV(LOW,3))/(HHV(CLOSE,3)-LLV(LOW,3)),NODRAW,COLORCYAN;
短期:100*(CLOSE-LLV(LOW,5))/(HHV(CLOSE,5)-LLV(LOW,5)),COLORWHITE;
中期:100*(CLOSE-LLV(LOW,10))/(HHV(CLOSE,10)-LLV(LOW,10)),COLORYELLOW;
中长:100*(CLOSE-LLV(LOW,20))/(HHV(CLOSE,20)-LLV(LOW,20)),COLORMAGENTA;
长期:100*(CLOSE-LLV(LOW,30))/(HHV(CLOSE,30)-LLV(LOW,30)),COLORRED,LINETHICK2;
超长:100*(CLOSE-LLV(LOW,60))/(HHV(CLOSE,60)-LLV(LOW,60)),NODRAW,COLORGREEN;
特长:100*(CLOSE-LLV(LOW,120))/(HHV(CLOSE,120)-LLV(LOW,120)),NODRAW,COLORLIBLUE;
特:100*(CLOSE-LLV(LOW,250))/(HHV(CLOSE,250)-LLV(LOW,250)),NODRAW,COLOR38B0DE;
80,COLORFF9933;
20,COLOR38B0DE;
50,COLORRED,LINETHICK3;
VAR1:=DRAWTEXT(超短<=20 AND 长期>=50,110,66);
单边二十:DRAWTEXT(短期<=20 AND 长期>=50,90,67),COLORYELLOW;
四线小六:DRAWTEXT(短期<6 AND 中期<6 AND 中长<6 AND 长期<6,70,68),COLORYELLOW;
VAR2:=DRAWTEXT(短期=0 AND 中期=0 AND 中长=0 AND 长期=0,70,69);
VAR3:=DRAWTEXT(短期=100 AND 中期=100 AND 中长=100 AND 长期=100,30,12);
VAR4:=DRAWTEXT(短期=100 AND 中期=100 AND 中长=100 AND 长期=100 AND 超长=100,30,70);
VAR5:=DRAWTEXT(短期=100 AND 长期<=99.999901,30,71);
特期小六:DRAWTEXT(超短<=6 AND 短期<6 AND 中期<6 AND 中长<6 AND 长期<6 AND 超长<6 AND 特长<6 AND 特<6,90,72),COLORYELLOW;
{公式名称: 量梯
公式描述:
参数数量: 9
参数1: 计算周期, 最小: 30, 最大: 150, 缺省: 100
参数2: 千分误差, 最小: 0, 最大: 200, 缺省: 10
参数3: 柱底位置, 最小: 1, 最大: 2, 缺省: 1
参数4: 显示均线, 最小: 0, 最大: 1, 缺省: 1
参数5: N1, 最小: 0, 最大: 10, 缺省: 5
参数6: N2, 最小: 0, 最大: 20, 缺省: 10
参数7: N3, 最小: 0, 最大: 100, 缺省: 20
参数8: N4, 最小: 0, 最大: 100, 缺省: 60
参数9: N5, 最小: 0, 最大: 200, 缺省: 120
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
计算周期: Param#0 (30.00--150.00)
千分误差: Param#1 (0.00--200.00)
柱底位置: Param#2 (1.00--2.00)
显示均线: Param#3 (0.00--1.00)
N1: Param#4 (0.00--10.00)
N2: Param#5 (0.00--20.00)
N3: Param#6 (0.00--100.00)
N4: Param#7 (0.00--100.00)
N5: Param#8 (0.00--200.00)
用法注释:无
公式源码:}
日均线4:IF(显示均线=1,MA(CLOSE,N4),0),COLORMAGENTA;
日均线5:IF(显示均线=1,MA(CLOSE,N5),0),COLORRED;
DRAWBAND(日均线4,RGB(150,0,80),日均线5,RGB(193,205,205));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
日均线1:IF(显示均线=1,MA(CLOSE,N1),0),COLORMAGENTA,LINETHICK2;
IF(CLOSE<日均线1 AND 显示均线=1,日均线1,DRAWNULL),COLORLICYAN,LINETHICK2;
日均线2:IF(显示均线=1,MA(CLOSE,N2),0),COLORYELLOW;
日均线3:IF(显示均线=1,MA(CLOSE,N3),0),COLORLIBLUE,LINETHICK2;
VAR1:=多空对比.超短#DAY;
VAR2:=多空对比.短期#DAY;
VAR3:=多空对比.中期#DAY;
VAR4:=多空对比.中长#DAY;
VAR5:=多空对比.长期#DAY;
VAR6:=多空对比.超长#DAY;
VAR7:=多空对比.特长#DAY;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,135),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.06,0,0,CON2STR(VAR1,1)),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,136),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.06,0.06,0,CON2STR(VAR2,1)),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,137),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.16,0,0,CON2STR(VAR3,1)),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.1,0.06,0,138),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.16,0.06,0,CON2STR(VAR4,1)),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.2,0,0,139),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.26,0,0,CON2STR(VAR5,1)),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.2,0.06,0,140),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.26,0.06,0,CON2STR(VAR6,1)),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.3,0,0,141),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.36,0,0,CON2STR(VAR7,1)),COLORMAGENTA;
VAR8:=1.3;
VAR9:=1;
VAR10:=0;
VAR11:=MA(CLOSE,5);
VAR12:=MA(CLOSE,10);
VAR13:=MA(CLOSE,20);
VAR14:=VAR11>REF(VAR11,1) AND VAR12<REF(VAR12,1) AND VAR13<REF(VAR13,1);
VAR15:=REF(VOL,1);
VAR16:=REF(VOL,2);
VAR17:=REF(VOL,3);
VAR18:=REF(CLOSE,1);
VAR19:=REF(CLOSE,2);
VAR20:=REF(CLOSE,3);
VAR21:=REF(CLOSE,4);
VAR22:=REF(OPEN,1);
VAR23:=REF(OPEN,2);
VAR24:=REF(OPEN,3);
VAR25:=REF(OPEN,4);
VAR26:=CLOSE>=VAR20 AND VAR18>=VAR20 AND VAR19>=VAR20;
VAR27:=LOW>VAR24 AND REF(LOW,1)>VAR24 AND REF(LOW,2)>VAR24;
VAR28:=AMOUNT/VOL/100;
VAR29:=REF(VAR28,1);
VAR30:=REF(VAR28,2);
VAR31:=CLOSE>=OPEN OR (CLOSE<OPEN AND VAR28>VAR18);
VAR32:=COUNT(VAR31,3)>=2;
VAR33:=VAR20>VAR24;
VAR34:=VAR28>=VAR29 OR CLOSE>VAR18 AND (VAR29>=VAR30 OR VAR18>=VAR19);
VAR35:=(CLOSE+VAR18+VAR19)/3>VAR20;
VAR36:=VOL>VAR15 AND VAR15>VAR16;
VAR37:=VOL<=VAR15 AND VAR15<=VAR16;
VAR38:=(VOL+VAR15+VAR16)/3<=VAR17 AND NOT(VAR36);
VAR39:=CLOSE/VOL;
VAR40:=VAR39>=REF(VAR39,1) AND REF(VAR39,1)>=REF(VAR39,2);
VAR41:=(CLOSE+VAR18+VAR19)/3/VAR20;
VAR42:=(VOL+VAR15+VAR16)/3/VAR17;
VAR43:=VAR8*VAR41/VAR42>1;
VAR44:=VAR24>VAR21 AND VAR21>VAR25;
VAR45:=VAR33 AND VAR34 AND VAR37 AND VAR26 AND VAR27 AND VAR44;
VAR46:=BACKSET(VAR45,5);
VAR47:=FILTER(VAR46,4);
VAR48:=VAR33 AND VAR34 AND VAR37 AND VAR26 AND VAR27;
VAR49:=BACKSET(VAR48,4);
VAR50:=FILTER(VAR49,3);
VAR51:=VAR48 AND REF(VAR48,1);
VAR52:=BACKSET(VAR51,4);
VAR53:=FILTER(VAR52,3);
VAR54:=VAR48 AND REF(VAR48,2);
VAR55:=BACKSET(VAR54,4);
VAR56:=FILTER(VAR55,3);
VAR57:=VAR48 AND REF(VAR48,3);
VAR58:=BACKSET(VAR57,4);
VAR59:=FILTER(VAR58,3);
VAR60:=VAR33 AND VAR34 AND VAR38 AND NOT(VAR36) AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR45);
VAR61:=BACKSET(VAR60,5);
VAR62:=FILTER(VAR61,4);
VAR63:=VAR33 AND VAR34 AND VAR38 AND NOT(VAR36) AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR45);
VAR64:=BACKSET(VAR63,4);
VAR65:=FILTER(VAR64,3);
VAR66:=VAR63 AND REF(VAR63,1);
VAR67:=BACKSET(VAR66,4);
VAR68:=FILTER(VAR67,3);
VAR69:=VAR63 AND REF(VAR63,2);
VAR70:=BACKSET(VAR69,4);
VAR71:=FILTER(VAR70,3);
VAR72:=VAR63 AND REF(VAR63,3);
VAR73:=BACKSET(VAR72,4);
VAR74:=FILTER(VAR73,3);
VAR75:=VAR33 AND VAR35 AND VAR37 AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR45) AND NOT(VAR60);
VAR76:=BACKSET(VAR75,5);
VAR77:=FILTER(VAR76,4);
VAR78:=VAR33 AND VAR35 AND VAR37 AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR45) AND NOT(VAR60);
VAR79:=BACKSET(VAR78,4);
VAR80:=FILTER(VAR79,3);
VAR81:=VAR78 AND REF(VAR78,1);
VAR82:=BACKSET(VAR81,4);
VAR83:=FILTER(VAR82,3);
VAR84:=VAR78 AND REF(VAR78,2);
VAR85:=BACKSET(VAR84,4);
VAR86:=FILTER(VAR85,3);
VAR87:=VAR78 AND REF(VAR78,3);
VAR88:=BACKSET(VAR87,4);
VAR89:=FILTER(VAR88,3);
VAR90:=VAR33 AND VAR35 AND VAR38 AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR45) AND NOT(VAR63) AND NOT(VAR60) AND NOT(VAR78) AND NOT(VAR75);
VAR91:=BACKSET(VAR90,5);
VAR92:=FILTER(VAR91,4);
VAR93:=VAR33 AND VAR35 AND VAR38 AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75);
VAR94:=BACKSET(VAR93,4);
VAR95:=FILTER(VAR94,3);
VAR96:=VAR93 AND REF(VAR93,1);
VAR97:=BACKSET(VAR96,4);
VAR98:=FILTER(VAR97,3);
VAR99:=VAR93 AND REF(VAR93,2);
VAR100:=BACKSET(VAR99,4);
VAR101:=FILTER(VAR100,3);
VAR102:=VAR93 AND REF(VAR93,3);
VAR103:=BACKSET(VAR102,4);
VAR104:=FILTER(VAR103,3);
VAR105:=VAR33 AND VAR35 AND VAR43 AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR93) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75) AND NOT(VAR90);
VAR106:=BACKSET(VAR105,5);
VAR107:=FILTER(VAR106,4);
VAR108:=VAR33 AND VAR35 AND VAR43 AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR93) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75) AND NOT(VAR90);
VAR109:=BACKSET(VAR108,4);
VAR110:=FILTER(VAR109,3);
VAR111:=VAR108 AND REF(VAR108,1);
VAR112:=BACKSET(VAR111,4);
VAR113:=FILTER(VAR112,3);
VAR114:=VAR108 AND REF(VAR108,2);
VAR115:=BACKSET(VAR114,4);
VAR116:=FILTER(VAR115,3);
VAR117:=VAR108 AND REF(VAR108,3);
VAR118:=BACKSET(VAR117,4);
VAR119:=FILTER(VAR118,3);
VAR120:=VAR33 AND VAR35 AND VAR40 AND VAR26 AND VAR27 AND VAR44 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR93) AND NOT(VAR108) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75) AND NOT(VAR90) AND NOT(VAR105);
VAR121:=BACKSET(VAR120,5);
VAR122:=FILTER(VAR121,4);
VAR123:=VAR33 AND VAR35 AND VAR40 AND VAR26 AND VAR27 AND NOT(VAR48) AND NOT(VAR63) AND NOT(VAR78) AND NOT(VAR93) AND NOT(VAR108) AND NOT(VAR45) AND NOT(VAR60) AND NOT(VAR75) AND NOT(VAR90) AND NOT(VAR105);
VAR124:=BACKSET(VAR123,4);
VAR125:=FILTER(VAR124,3);
VAR126:=VAR123 AND REF(VAR123,1);
VAR127:=BACKSET(VAR126,4);
VAR128:=FILTER(VAR127,3);
VAR129:=VAR123 AND REF(VAR123,2);
VAR130:=BACKSET(VAR129,4);
VAR131:=FILTER(VAR130,3);
VAR132:=VAR123 AND REF(VAR123,3);
VAR133:=BACKSET(VAR132,4);
VAR134:=FILTER(VAR133,3);
VAR135:=VAR50 AND NOT(REF(VAR50,4)) OR (VAR53 AND NOT(REF(VAR53,4))) OR (VAR56 AND NOT(REF(VAR56,4))) OR (VAR59 AND NOT(REF(VAR59,4)));
VAR136:=VAR65 AND NOT(REF(VAR65,4)) OR (VAR68 AND NOT(REF(VAR68,4))) OR (VAR71 AND NOT(REF(VAR71,4))) OR (VAR74 AND NOT(REF(VAR74,4)));
VAR137:=VAR80 AND NOT(REF(VAR80,4)) OR (VAR83 AND NOT(REF(VAR83,4))) OR (VAR86 AND NOT(REF(VAR86,4))) OR (VAR89 AND NOT(REF(VAR89,4)));
VAR138:=VAR95 AND NOT(REF(VAR95,4)) OR (VAR98 AND NOT(REF(VAR98,4))) OR (VAR101 AND NOT(REF(VAR101,4))) OR (VAR104 AND NOT(REF(VAR104,4)));
VAR139:=VAR110 AND NOT(REF(VAR110,4)) OR (VAR113 AND NOT(REF(VAR113,4))) OR (VAR116 AND NOT(REF(VAR116,4))) OR (VAR119 AND NOT(REF(VAR119,4)));
VAR140:=VAR125 AND NOT(REF(VAR125,4)) OR (VAR128 AND NOT(REF(VAR128,4))) OR (VAR131 AND NOT(REF(VAR131,4))) OR (VAR134 AND NOT(REF(VAR134,4)));
VAR141:=VAR135 OR VAR136 OR VAR137 OR VAR138 OR VAR139 OR VAR140;
STICKLINE(VAR141 AND NOT(REF(VAR141,4)),OPEN,CLOSE,1,0),COLOR0099FF;
VAR142:=SUMBARS(VAR141,1);
VAR143:=VAR47 AND NOT(REF(VAR47,5));
VAR144:=VAR62 AND NOT(REF(VAR62,5));
VAR145:=VAR77 AND NOT(REF(VAR77,5));
VAR146:=VAR92 AND NOT(REF(VAR92,5));
VAR147:=VAR107 AND NOT(REF(VAR107,5));
VAR148:=VAR122 AND NOT(REF(VAR122,5));
VAR149:=VAR143 OR VAR144 OR VAR145 OR VAR146 OR VAR147 OR VAR148;
STICKLINE(VAR149 AND NOT(REF(VAR149,5)),OPEN,CLOSE,1,0),COLORRED;
VAR150:=SUMBARS(VAR149,1);
VAR151:=VAR48 OR VAR63 OR VAR78 OR VAR93 OR VAR108 OR VAR123 AND VAR14 AND VAR10;
VAR152:=BACKSET(VAR151,4);
VAR153:=FILTER(VAR152,3);
STICKLINE(VAR153 AND NOT(REF(VAR153,4)),OPEN,CLOSE,1,0),COLOR0099FF;
VAR154:=VAR45 OR VAR60 OR VAR75 OR VAR90 OR VAR105 OR VAR120 AND VAR14 AND VAR10;
VAR155:=BACKSET(VAR154,5);
VAR156:=FILTER(VAR155,5);
STICKLINE(VAR156 AND NOT(REF(VAR156,4)),OPEN,CLOSE,1,0),COLOR0099FF;
VAR157:=VAR48 OR VAR63 OR VAR78 OR VAR93 OR VAR108 OR VAR123 AND NOT(DYNAINFO(4)=0) AND CLOSE=HHV(CLOSE,3);
VAR158:=VAR157 AND REF(CLOSE,4)<REF(CLOSE,5) AND REF(CLOSE,4)<REF(OPEN,4) AND REF(OPEN,3)>=REF(OPEN,4);
VAR159:=FILTER(BACKSET(VAR158,5),5);
STICKLINE(VAR159,LOW,HIGH,0.5,0),COLORMAGENTA;
VAR160:=AMOUNT/VOL/100;
VAR161:=CLOSE>OPEN AND REF(CLOSE,1)>VAR160 AND CLOSE>VAR160 AND CLOSE<300;
STICKLINE(VAR161,OPEN,CLOSE,1,0),COLORLICYAN;
VAR162:=REF(CLOSE,1)/CLOSE>1.04;
STICKLINE(VAR162,OPEN,CLOSE,1,0),COLORWHITE;
VAR163:=OPEN>CLOSE AND VAR160>REF(CLOSE,1) AND CLOSE>MA(CLOSE,5);
STICKLINE(VAR163,OPEN,CLOSE,1,0),COLORRED;
VAR164:=VOL>=REF(VOL,1)*1.9 AND CLOSE<REF(CLOSE,1);
STICKLINE(VAR164,OPEN,CLOSE,1,0),COLORBROWN;
VAR165:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR166:=NAMELIKE(143) OR NAMELIKE(144) OR NAMELIKE(164) AND VAR165>=4.945;
VAR167:=NAMELIKE(143) OR NAMELIKE(144) OR NAMELIKE(164) AND VAR165<=(-4.945);
涨停价:IF(VAR166,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW,COLORRED;
跌停价:IF(VAR167,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW,COLORGREEN;
VAR168:=NAMELIKE(143)=1 OR NAMELIKE(144)=1 OR NAMELIKE(145)=1 OR NAMELIKE(146)=1 OR NAMELIKE(147)=1;
VAR169:=CLOSE=ZTPRICE(REF(CLOSE,1),0.1) OR (CLOSE/REF(CLOSE,1)>1.0495 AND VAR168);
VAR170:=REF(CLOSE,1)/CLOSE>1.0995 OR (REF(CLOSE,1)/CLOSE>1.0495 AND VAR168);
STICKLINE(VAR169,CLOSE,OPEN,3,0),COLORMAGENTA;
STICKLINE(VAR170,CLOSE,OPEN,3,0),COLORGREEN;
VAR171:=计算周期;
VAR172:=千分误差/1000;
VAR173:=IF(柱底位置=1,OPEN,LOW);
VAR174:=VOL=HHV(VOL,10) AND (CLOSE>=REF(CLOSE,1) OR CLOSE>=OPEN);
VAR175:=COUNT(VAR174,CURRBARSCOUNT-VAR171);
VAR176:=IF(VAR175>0 AND CURRBARSCOUNT<VAR171,VAR175,DRAWNULL);
VAR177:=HHV(VAR176,BARSCOUNT(CLOSE));
VAR178:=LLV(VAR176,BARSCOUNT(CLOSE) AND VAR176!=DRAWNULL);
VAR179:=BACKSET(ISLASTBAR,VAR171);
VAR180:=IF(ISLASTBAR,HHV(VAR176,BARSCOUNT(CLOSE))-LLV(VAR176,BARSCOUNT(CLOSE)-VAR171),0);
柱数量总数:REFX(HHV(VAR180,VAR171),CURRBARSCOUNT-1),NODRAW,COLORYELLOW;
千分误差幅度:千分误差,NODRAW,COLORWHITE;
计算周期天数:计算周期,NODRAW,COLORYELLOW;
VAR181:=IF(CURRBARSCOUNT<=VAR171 AND VAR174,1,0);
VAR182:=柱数量总数-SUM(VAR181,0)+1;
VAR183:=1;
VAR184:=IF(VAR182=VAR183,CURRBARSCOUNT,0);
VAR185:=HHV(VAR184,BARSCOUNT(CLOSE));
VAR186:=HHV(VAR184,BARSCOUNT(CLOSE));
VAR187:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR186-1),VAR186-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR186-1),VAR186-1),0);
VAR188:=IF(VAR182=VAR183 AND VAR173<VAR187 AND VAR187>0,1,0);
VAR189:=REF(VAR187*(1+VAR172),VAR186-CURRBARSCOUNT);
VAR190:=REF(VAR173,VAR186-CURRBARSCOUNT);
VAR191:=IF(VAR188=1 AND VAR190<VAR189,1,0);
STICKLINE(VAR191,REF(VAR173,VAR186-CURRBARSCOUNT),REF(VAR173,VAR186-CURRBARSCOUNT),5,0),COLORGREEN;
VAR192:=2;
VAR193:=IF(VAR182=VAR192,CURRBARSCOUNT,0);
VAR194:=HHV(VAR193,BARSCOUNT(CLOSE));
VAR195:=HHV(VAR193,BARSCOUNT(CLOSE));
VAR196:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR195-1),VAR195-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR195-1),VAR195-1),0);
VAR197:=IF(VAR182=VAR192 AND VAR173<VAR196 AND VAR196>0,1,0);
VAR198:=REF(VAR196*(1+VAR172),VAR195-CURRBARSCOUNT);
VAR199:=REF(VAR173,VAR195-CURRBARSCOUNT);
VAR200:=IF(VAR197=1 AND VAR199<VAR198,1,0);
STICKLINE(VAR200,REF(VAR173,VAR195-CURRBARSCOUNT),REF(VAR173,VAR195-CURRBARSCOUNT),5,0),COLORGREEN;
VAR201:=3;
VAR202:=IF(VAR182=VAR201,CURRBARSCOUNT,0);
VAR203:=HHV(VAR202,BARSCOUNT(CLOSE));
VAR204:=HHV(VAR202,BARSCOUNT(CLOSE));
VAR205:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR204-1),VAR204-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR204-1),VAR204-1),0);
VAR206:=IF(VAR182=VAR201 AND VAR173<VAR205 AND VAR205>0,1,0);
VAR207:=REF(VAR205*(1+VAR172),VAR204-CURRBARSCOUNT);
VAR208:=REF(VAR173,VAR204-CURRBARSCOUNT);
VAR209:=IF(VAR206=1 AND VAR208<VAR207,1,0);
STICKLINE(VAR209,REF(VAR173,VAR204-CURRBARSCOUNT),REF(VAR173,VAR204-CURRBARSCOUNT),5,0),COLORGREEN;
VAR210:=4;
VAR211:=IF(VAR182=VAR210,CURRBARSCOUNT,0);
VAR212:=HHV(VAR211,BARSCOUNT(CLOSE));
VAR213:=HHV(VAR211,BARSCOUNT(CLOSE));
VAR214:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR213-1),VAR213-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR213-1),VAR213-1),0);
VAR215:=IF(VAR182=VAR210 AND VAR173<VAR214 AND VAR214>0,1,0);
VAR216:=REF(VAR214*(1+VAR172),VAR213-CURRBARSCOUNT);
VAR217:=REF(VAR173,VAR213-CURRBARSCOUNT);
VAR218:=IF(VAR215=1 AND VAR217<VAR216,1,0);
STICKLINE(VAR218,REF(VAR173,VAR213-CURRBARSCOUNT),REF(VAR173,VAR213-CURRBARSCOUNT),5,0),COLORGREEN;
VAR219:=5;
VAR220:=IF(VAR182=VAR219,CURRBARSCOUNT,0);
VAR221:=HHV(VAR220,BARSCOUNT(CLOSE));
VAR222:=HHV(VAR220,BARSCOUNT(CLOSE));
VAR223:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR222-1),VAR222-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR222-1),VAR222-1),0);
VAR224:=IF(VAR182=VAR219 AND VAR173<VAR223 AND VAR223>0,1,0);
VAR225:=REF(VAR223*(1+VAR172),VAR222-CURRBARSCOUNT);
VAR226:=REF(VAR173,VAR222-CURRBARSCOUNT);
VAR227:=IF(VAR224=1 AND VAR226<VAR225,1,0);
STICKLINE(VAR227,REF(VAR173,VAR222-CURRBARSCOUNT),REF(VAR173,VAR222-CURRBARSCOUNT),5,0),COLORGREEN;
VAR228:=6;
VAR229:=IF(VAR182=VAR228,CURRBARSCOUNT,0);
VAR230:=HHV(VAR229,BARSCOUNT(CLOSE));
VAR231:=HHV(VAR229,BARSCOUNT(CLOSE));
VAR232:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR231-1),VAR231-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR231-1),VAR231-1),0);
VAR233:=IF(VAR182=VAR228 AND VAR173<VAR232 AND VAR232>0,1,0);
VAR234:=REF(VAR232*(1+VAR172),VAR231-CURRBARSCOUNT);
VAR235:=REF(VAR173,VAR231-CURRBARSCOUNT);
VAR236:=IF(VAR233=1 AND VAR235<VAR234,1,0);
STICKLINE(VAR236,REF(VAR173,VAR231-CURRBARSCOUNT),REF(VAR173,VAR231-CURRBARSCOUNT),5,0),COLORGREEN;
VAR237:=7;
VAR238:=IF(VAR182=VAR237,CURRBARSCOUNT,0);
VAR239:=HHV(VAR238,BARSCOUNT(CLOSE));
VAR240:=HHV(VAR238,BARSCOUNT(CLOSE));
VAR241:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR240-1),VAR240-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR240-1),VAR240-1),0);
VAR242:=IF(VAR182=VAR237 AND VAR173<VAR241 AND VAR241>0,1,0);
VAR243:=REF(VAR241*(1+VAR172),VAR240-CURRBARSCOUNT);
VAR244:=REF(VAR173,VAR240-CURRBARSCOUNT);
VAR245:=IF(VAR242=1 AND VAR244<VAR243,1,0);
STICKLINE(VAR245,REF(VAR173,VAR240-CURRBARSCOUNT),REF(VAR173,VAR240-CURRBARSCOUNT),5,0),COLORGREEN;
VAR246:=8;
VAR247:=IF(VAR182=VAR246,CURRBARSCOUNT,0);
VAR248:=HHV(VAR247,BARSCOUNT(CLOSE));
VAR249:=HHV(VAR247,BARSCOUNT(CLOSE));
VAR250:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR249-1),VAR249-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR249-1),VAR249-1),0);
VAR251:=IF(VAR182=VAR246 AND VAR173<VAR250 AND VAR250>0,1,0);
VAR252:=REF(VAR250*(1+VAR172),VAR249-CURRBARSCOUNT);
VAR253:=REF(VAR173,VAR249-CURRBARSCOUNT);
VAR254:=IF(VAR251=1 AND VAR253<VAR252,1,0);
STICKLINE(VAR254,REF(VAR173,VAR249-CURRBARSCOUNT),REF(VAR173,VAR249-CURRBARSCOUNT),5,0),COLORGREEN;
VAR255:=9;
VAR256:=IF(VAR182=VAR255,CURRBARSCOUNT,0);
VAR257:=HHV(VAR256,BARSCOUNT(CLOSE));
VAR258:=HHV(VAR256,BARSCOUNT(CLOSE));
VAR259:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR258-1),VAR258-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR258-1),VAR258-1),0);
VAR260:=IF(VAR182=VAR255 AND VAR173<VAR259 AND VAR259>0,1,0);
VAR261:=REF(VAR259*(1+VAR172),VAR258-CURRBARSCOUNT);
VAR262:=REF(VAR173,VAR258-CURRBARSCOUNT);
VAR263:=IF(VAR260=1 AND VAR262<VAR261,1,0);
STICKLINE(VAR263,REF(VAR173,VAR258-CURRBARSCOUNT),REF(VAR173,VAR258-CURRBARSCOUNT),5,0),COLORGREEN;
VAR264:=10;
VAR265:=IF(VAR182=VAR264,CURRBARSCOUNT,0);
VAR266:=HHV(VAR265,BARSCOUNT(CLOSE));
VAR267:=HHV(VAR265,BARSCOUNT(CLOSE));
VAR268:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR267-1),VAR267-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR267-1),VAR267-1),0);
VAR269:=IF(VAR182=VAR264 AND VAR173<VAR268 AND VAR268>0,1,0);
VAR270:=REF(VAR268*(1+VAR172),VAR267-CURRBARSCOUNT);
VAR271:=REF(VAR173,VAR267-CURRBARSCOUNT);
VAR272:=IF(VAR269=1 AND VAR271<VAR270,1,0);
STICKLINE(VAR272,REF(VAR173,VAR267-CURRBARSCOUNT),REF(VAR173,VAR267-CURRBARSCOUNT),5,0),COLORGREEN;
VAR273:=11;
VAR274:=IF(VAR182=VAR273,CURRBARSCOUNT,0);
VAR275:=HHV(VAR274,BARSCOUNT(CLOSE));
VAR276:=HHV(VAR274,BARSCOUNT(CLOSE));
VAR277:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR276-1),VAR276-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR276-1),VAR276-1),0);
VAR278:=IF(VAR182=VAR273 AND VAR173<VAR277 AND VAR277>0,1,0);
VAR279:=REF(VAR277*(1+VAR172),VAR276-CURRBARSCOUNT);
VAR280:=REF(VAR173,VAR276-CURRBARSCOUNT);
VAR281:=IF(VAR278=1 AND VAR280<VAR279,1,0);
STICKLINE(VAR281,REF(VAR173,VAR276-CURRBARSCOUNT),REF(VAR173,VAR276-CURRBARSCOUNT),5,0),COLORGREEN;
VAR282:=12;
VAR283:=IF(VAR182=VAR282,CURRBARSCOUNT,0);
VAR284:=HHV(VAR283,BARSCOUNT(CLOSE));
VAR285:=HHV(VAR283,BARSCOUNT(CLOSE));
VAR286:=IF(REFX(LLV(MIN(OPEN,CLOSE),VAR285-1),VAR285-1)>0,REFX(LLV(MIN(OPEN,CLOSE),VAR285-1),VAR285-1),0);
VAR287:=IF(VAR182=VAR282 AND VAR173<VAR286 AND VAR286>0,1,0);
VAR288:=REF(VAR286*(1+VAR172),VAR285-CURRBARSCOUNT);
VAR289:=REF(VAR173,VAR285-CURRBARSCOUNT);
VAR290:=IF(VAR287=1 AND VAR289<VAR288,1,0);
STICKLINE(VAR290,REF(VAR173,VAR285-CURRBARSCOUNT),REF(VAR173,VAR285-CURRBARSCOUNT),5,0),COLORGREEN;
有效柱梯子数:IF(DYNAINFO(4)>0,IF(VAR188=DRAWNULL,0,IF(VAR191=DRAWNULL,0,VAR191))+IF(VAR197=DRAWNULL,0,IF(VAR200=DRAWNULL,0,VAR200))+IF(VAR206=DRAWNULL,0,IF(VAR209=DRAWNULL,0,VAR209))+IF(VAR215=DRAWNULL,0,IF(VAR218=DRAWNULL,0,VAR218))+IF(VAR224=DRAWNULL,0,IF(VAR227=DRAWNULL,0,VAR227))+IF(VAR233=DRAWNULL,0,IF(VAR236=DRAWNULL,0,VAR236))+IF(VAR242=DRAWNULL,0,IF(VAR245=DRAWNULL,0,VAR245))+IF(VAR251=DRAWNULL,0,IF(VAR254=DRAWNULL,0,VAR254))+IF(VAR260=DRAWNULL,0,IF(VAR263=DRAWNULL,0,VAR263))+IF(VAR269=DRAWNULL,0,IF(VAR272=DRAWNULL,0,VAR272))+IF(VAR278=DRAWNULL,0,IF(VAR281=DRAWNULL,0,VAR281))+IF(VAR287=DRAWNULL,0,IF(VAR290=DRAWNULL,0,VAR290)),0),NODRAW,COLORYELLOW;
DRAWTEXT(VAR182<=柱数量总数 AND VAR181,LOW*0.985,VAR2STR(VAR182,0)),COLORYELLOW;
VAR291:=TOTALBARSCOUNT;
VAR292:=FINANCE(42)<30 AND VAR291<30 AND NOT(DYNAINFO(4)=0);
VAR293:=FINANCE(40)/100000000<100 AND NOT(VAR292);
VAR294:=REF(VOL/CAPITAL*100<=2,1) AND NOT(VAR292) AND VAR169 AND VAR293 AND NOT(CLOSE=OPEN) AND NOT(DYNAINFO(4)=0);
DRAWICON(VAR294,LOW*0.98,1);
VAR295:=SIGNALS_USER(300,0);
VAR296:=SIGNALS_USER(299,0);
VAR297:=148;
VAR298:=VARCAT(VARCAT(VAR297,89),VAR2STR(VAR296,0));
DRAWTEXT(VAR295>=1,(-LOW)*0.01+LOW,VAR298),COLORLIRED;
VAR299:=15;
VAR300:=VAR299>CURRBARSCOUNT;
VAR301:=IF(REF(HIGH,1)=REF(HHV(HIGH,2),1),1,0);
上线:IF(VAR301=1,REF(HIGH,1),REF(HIGH,2)),NODRAW;
VAR302:=IF(REF(LOW,1)=REF(LLV(LOW,2),1),1,0);
下线:IF(VAR302=1,REF(LOW,1),REF(LOW,2)),NODRAW;
VAR303:=(上线+下线)/2;
VAR304:=IF(CLOSE<VAR303,VAR303,DRAWNULL);
VAR305:=(上线-下线)*0.334+下线;
VAR306:=(上线-下线)*0.667+下线;
IF(VAR300,VAR303,DRAWNULL),NODRAW;
IF(VAR300,VAR304,DRAWNULL),NODRAW;
IF(VAR300,VAR305,DRAWNULL),NODRAW;
IF(VAR300,VAR306,DRAWNULL),NODRAW;
VAR307:=CURRBARSCOUNT<2;
VAR308:=CURRBARSCOUNT<13;
VAR309:=IF(VAR307,VAR306,DRAWNULL);
VAR310:=IF(VAR307,VAR303,DRAWNULL);
VAR311:=IF(VAR307,VAR305,DRAWNULL);
D_2R3X11:IF(VAR308,VAR309,DRAWNULL);
D_2R3X12:IF(VAR308,VAR310,DRAWNULL);
D_2R3X13:IF(VAR308,VAR311,DRAWNULL);
STICKLINE(VAR308,D_2R3X11,D_2R3X11,20,(-1)),COLORLIBLUE;
STICKLINE(VAR308,D_2R3X12,D_2R3X12,20,(-1)),COLORYELLOW;
STICKLINE(VAR308,D_2R3X13,D_2R3X13,20,(-1)),COLORWHITE;
DRAWTEXT(VAR307,D_2R3X11,149),COLORLIBLUE;
DRAWTEXT(VAR307,D_2R3X12,150),COLORMAGENTA;
DRAWTEXT(VAR307,D_2R3X13,151),COLORWHITE;
VAR312:=3;
VAR313:=0;
VAR314:=ABS(LOW-REF(LOW,1))<=VAR313;
VAR315:=ABS(LOW-REF(LOW,2))<=VAR313;
VAR316:=ABS(LOW-REF(LOW,3))<=VAR313;
VAR317:=ABS(LOW-REF(LOW,4))<=VAR313;
VAR318:=ABS(LOW-REF(LOW,5))<=VAR313;
VAR319:=VAR314 OR VAR315 OR VAR316 OR VAR317 OR VAR318;
VAR320:=FILTER(VAR319,VAR312);
VAR321:=BARSLAST(VAR320);
VAR322:=REF(LOW,VAR321);
VAR323:=ABS(LOW-VAR322)<=VAR313;
STICKLINE(VAR320,LOW,LOW,31,(-1)),COLORMAGENTA;
VAR324:=ABS(HIGH-REF(HIGH,1))<=VAR313;
VAR325:=ABS(HIGH-REF(HIGH,2))<=VAR313;
VAR326:=ABS(HIGH-REF(HIGH,3))<=VAR313;
VAR327:=ABS(HIGH-REF(HIGH,4))<=VAR313;
VAR328:=ABS(HIGH-REF(HIGH,5))<=VAR313;
VAR329:=VAR324 OR VAR325 OR VAR326 OR VAR327 OR VAR328;
VAR330:=FILTER(VAR329,VAR312);
VAR331:=BARSLAST(VAR330);
VAR332:=REF(HIGH,VAR331);
VAR333:=ABS(HIGH-VAR332)<=VAR313;
STICKLINE(VAR330,HIGH,HIGH,31,(-1)),COLORGREEN;
STICKLINE(CLOSE/REF(CLOSE,1)>=1.04 OR CLOSE/REF(CLOSE,1)<=0.96,(CLOSE+OPEN)/2,(CLOSE+OPEN)/2,2,1),COLORLIBLUE;
STICKLINE(CLOSE/REF(CLOSE,1)>=1.04 OR CLOSE/REF(CLOSE,1)<=0.96,(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))*2/3+MIN(OPEN,CLOSE),(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))*2/3+MIN(OPEN,CLOSE),2,1),COLORLIBLUE;
STICKLINE(CLOSE/REF(CLOSE,1)>=1.04 OR CLOSE/REF(CLOSE,1)<=0.96,(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))/3+MIN(OPEN,CLOSE),(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))/3+MIN(OPEN,CLOSE),2,1),COLORLIBLUE;
68233595.png
|