1、竞价选股 {公式名称: J1K 公式描述: 无参数 公式类型: 条件选股公式-其他类型 公式版本: 0 参数精灵:无 用法注释:无 公式源码:} XA_1:=DYNAINFO(15); XA_2:=XA_1/OPEN; XA_3:=XA_2/(REF(SUM(VOL,5),1)/12); XA_4:=XA_2/CAPITAL>=0.2 AND XA_2/CAPITAL<=2; XA_5:=IF(DYNAINFO(15)<8000000,REF(SUM(DYNAINFO(37),5),1)>0.05,1); XA_6:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>0.03 AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)<0.06; XA_7:=REF(COUNT(CLOSE=ZTPRICE(REF(CLOSE,1),0.1),22),1)>0; XA_8:=REF(SUM(DYNAINFO(37),5),1)/5*100; XA_9:=IF(XA_8>10,3,IF(XA_8>5,2,IF(XA_8>2,1,0))); XA_10:=XA_1/1000/XA_8/1000; XA_11:=XA_9+XA_10; XA_12:=IF(DATE<=1200520,1,0); 竞价选股:XA_7 AND XA_5 AND XA_12 AND XA_6 AND XA_4 AND XA_10<10 AND XA_1>3000000 AND XA_3>5; {公式名称: J1Y 公式描述: 无参数 公式类型: 条件选股公式-其他类型 公式版本: 0 参数精灵:无 用法注释:无 公式源码:} XA_1:=DYNAINFO(15); XA_2:=IF(DYNAINFO(15)<8000000,REF(SUM(DYNAINFO(37),5),1)>0.05,REF(SUM(DYNAINFO(37),5),1)>0.01); XA_3:=REF(SUM(DYNAINFO(37),5),1)/5*100; XA_4:=XA_1/1000/XA_3/1000; XA_5:=ZTPRICE(REF(CLOSE,1),0.1); XA_6:=REF(OPEN,1)=REF(XA_5,1) AND REF(CLOSE,1)=REF(XA_5,1) AND REF(OPEN,1)=REF(LOW,1); XA_7:=IF(REF(HIGH=ZTPRICE(REF(CLOSE,1),0.1),1),REF(VOL,1)>REF(VOL,2),1); XA_8:=NOT(XA_6) AND IF(XA_2>10,XA_4<1.5,1); XA_9:=REF(COUNT(CLOSE=ZTPRICE(REF(CLOSE,1),0.1),3),1)<3; XA_10:=IF(DATE<=1200520,1,0); 竞价选股:XA_7 AND XA_8 AND XA_9 AND XA_10; 2、许氏股理 许氏股易 许氏股道 {许氏股理} DRAWGBK(O>0,RGB(33,47,58),RGB(0,0,0),0,'02',0),LINETHICK2; CYC13:=CYC(13); CYS:=C/CYC13*100-100; 能:CYS*5,COLORRED,LINETHICK1; E1:=MA(能,20)+1.732*STD(能,20); E2:=MA(能,20)+STD(能,20); E3:=MA(能,20)-1.732*STD(能,20); E4:=MA(能,20)-STD(能,20); 上:=(E1+E2)/2,DOTLINE,COLORGREEN; 下:=(E3+E4)/2,DOTLINE,COLORGREEN; MK:=(HIGH+LOW+2*CLOSE+OPEN/2)/4.5; I:(MK-MA(MK,13))/(0.015*AVEDEV(MK,13)),COLORWHITE,LINETHICK1; 冲:能>=上 OR 能>=70 OR I>=100,COLOR0088FF,LINETHICK1; V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5; 庄进:IF(V4>=0,V4*10,0),COLORYELLOW,LINETHICK2; 庄大:=庄进>REF(庄进,1); 大:(H/REF(C,1)-1)*100,COLORRED,LINETHICK1; H,COLORRED,LINETHICK1; 收:(C/REF(C,1)-1)*100,COLORWHITE,LINETHICK1; C,COLORWHITE,LINETHICK1; 小:(L/REF(C,1)-1)*100,COLOR00FF00,LINETHICK1; L,COLOR00FF00,LINETHICK1; 开:(O/REF(C,1)-1)*100,COLORMAGENTA,LINETHICK1; O,COLORMAGENTA,LINETHICK1; 振:大-小,COLOREE8FFF,LINETHICK1; H-L,COLOREE8FFF,LINETHICK1; 100,DOTLINE,COLORC8A6AB; -100,DOTLINE,COLORC8A6AB; STICKLINE(能>上,REFDATE(360,DATE),REFDATE(-100,DATE),6,0),COLOR404050; STICKLINE(庄进>0 AND 庄大,REFDATE(360,DATE),REFDATE(-100,DATE),6,0), COLOR202050; IF(I>100,100,0),COLORWHITE,LINETHICK2; {DRAWTEXT(CROSS(I,70),80,'刺'),COLORYELLOW;} IF(能>上,200,0),COLOR0088FF,LINETHICK3; {DRAWTEXT(CROSS(能,上),180,'冲'),COLORYELLOW;} IF(能>REF(能,1),能,DRAWNULL),COLORRED,LINETHICK3; IF(能<REF(能,1),能,DRAWNULL),,COLORGREEN,LINETHICK2; IF(庄进>0,300,0),COLORYELLOW,LINETHICK1; IF(庄进>0 AND 庄大,300,0),COLORYELLOW,LINETHICK3; DRAWTEXT(CROSS(庄大,0.1) AND 庄进>0,240,'庄进'),COLORYELLOW,LINETHICK1; {许氏股易} DRAWGBK(O>0,RGB(33,47,58),RGB(0,0,0),0,'02',0),LINETHICK2; C0:=(H+L+2*C+O/2)/4.5; A01:=HHV(C0,15); A02:=LLV(C0,15); A03:=A01-A02; 动1:=EMA((C0-A02)/A03,2)*100; 昨收:=REF(CLOSE,1); R1:=SMA(MAX(CLOSE-昨收,0),2,1); R2:=SMA(ABS(CLOSE-昨收),2,1); R3:=R1/R2*100; RSV:=(CLOSE-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J1:=3*K-2*D; W1:=100-100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3)),DOTLINE,COLORC8A6AB; 强突破:=W1>70 AND R3>70 AND 动1>70; 强突击:=R3>70 AND J1>70 AND 动1>70; 强击破:=W1>70 AND J1>70 AND 动1>70; 突破击:=W1>70 AND R3>70 AND J1>70; 追1:=强突破 OR 强突击 OR 强击破 OR 突破击; VAR1G:=AMOUNT/VOL/100; CYC13:=MA(VAR1G,13); CYS:=C/CYC13*100-100; 能:=CYS*5; 能2:=STD(能,20); 能M:=MA(能,20); E1:=能M+1.732*能2; E2:=能M+能2; 上:=(E1+E2)/2; MK:=(HIGH+LOW+2*CLOSE+OPEN/2)/4.5; I:=(MK-MA(MK,13))/(0.015*AVEDEV(MK,13)); 冲1:=能>=上 OR 能>=70 OR I>=100; 启爆1:=追1>0 AND 冲1>0; 动:动1,COLORRED,LINETHICK1; {慢:EMA(动,5),COLORYELLOW,LINETHICK1;} 雷达:(REF(C,0)-REF(C,1))/REF(C,1)*1000,COLORYELLOW,LINETHICK1; 雷达大:=雷达>=REF(雷达,1); STICKLINE(启爆1>0.1,REFDATE(120,DATE),REFDATE(0,DATE),6,0),COLOR404050; STICKLINE(雷达>50 AND 雷达大,REFDATE(120,DATE),REFDATE(0,DATE),6,0), COLOR202050; 追:追1,COLORWHITE; R:=R3,DOTLINE,COLORCYAN,LINETHICK1; J:=J1,DOTLINE,COLORFF00FF,LINETHICK1; W:=W1,DOTLINE,COLORC8A6AB; IF(追1>0,30,0),COLORWHITE,LINETHICK2; {DRAWTEXT(CROSS(追1,0.1),20,'追涨'),COLORYELLOW;} 启爆:启爆1,COLOR0088FF; IF(启爆>0,70,0),COLOR0088FF,LINETHICK3; {DRAWTEXT(CROSS(启爆,0.1),60,'启爆'),COLORYELLOW;} IF(雷达>50,110,0),COLORYELLOW,LINETHICK3; DRAWTEXT(CROSS(雷达,50),90,'涨停雷达'),COLORYELLOW; -20,DOTLINE,COLORGREEN; 0,DOTLINE,COLORC8A6AB; 50,DOTLINE,COLORYELLOW; 70,DOTLINE,COLORC8D9AB; 120,DOTLINE,COLORF830EA; IF(动>REF(动,1),动,DRAWNULL),COLORRED,LINETHICK3; IF(动<REF(动,1),动,DRAWNULL),,COLORGREEN,LINETHICK3; {许氏股道} DRAWGBK(O>0,RGB(33,47,58),RGB(0,0,0),0,'02',0); M3:=MA(CLOSE,3); M7:=MA(CLOSE,7); M13:=MA(CLOSE,13); S13:=STD(CLOSE,13); 转:=C>=M3 AND C>=M7 AND C>=M13; MK:=(HIGH+LOW+2*CLOSE+OPEN/2)/4.5; 凤1:=MK*MA(MK,2)/REF(MK,6); STICKLINE(凤1>=REF(凤1,1),REFDATE(HHV(H,60),DATE),REFDATE(LLV(L,60),DATE),6,0),COLOR404050; XS1:=MA(HIGH,30)*(1+13/100); XS2:=MA(LOW,30)*(1-13/100); XS3:=(XS1+XS2)/2; XS4:=(XS1+XS3)/2; XS5:=(XS2+XS3)/2; STICKLINE(转>0,REFDATE((HHV(H,60)+LLV(L,60))/2,DATE),REFDATE(LLV(L,60),DATE),6,0), COLOR202050; XS01:=MA(HIGH,3)*(1+3/100); XS02:=MA(HIGH,3)*(1-3/100); XS03:=(XS01+XS02)/2; 道:XS01,COLOR0088FF,LINETHICK1; 云:REF(HHV(H,30),1),COLORFFFFAA,LINETHICK1; {龙:XS1,DOTLINE,COLORWHITE,LINETHICK1;} 妖:XS03,COLORYELLOW,LINETHICK3; 魔1:=M13+2*S13; {魔大:=魔1>REF(魔1,1); 魔上:=REF(魔1,1)=LLV(魔1,3);} 鬼1:=M13-2*S13; {鬼小:=鬼1<REF(鬼1,1); 鬼下:=REF(鬼1,1)=HHV(鬼1,3);} 虎:(鬼1+魔1)/2,COLORRED,LINETHICK3; 牛:XS3,COLORFFFFAA,LINETHICK3; 轨:=XS02; {熊:REF(EMA(L,5),1),COLORGREEN;} {魔:魔1,COLORFF0000,LINETHICK2; 鬼:鬼1,COLORFF6600,LINETHICK2; 顶:(MA(CLOSE,13)+3*STD(CLOSE,13)),COLORFF0000,LINETHICK2; 底:(MA(CLOSE,13)-3*STD(CLOSE,13)),COLORFF6600,LINETHICK2; STICKLINE(C>0,魔,顶,0.001,0),COLORFF0000; STICKLINE(C>0,鬼,底,0.001,0),COLORFF6600;} DRAWTEXT(CROSS(C,道) AND (CROSS(C,妖) OR L<轨) ,LOW*0.98,'★涨停通道'),COLORYELLOW; 每股公积:FINANCE(18)/1,NODRAW,COLORGREEN; 未分利润:FINANCE(32)/1,NODRAW,COLORGREEN; 所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT('[行业]-',HYBLOCK),STRCAT(' [地域]-', DYBLOCK)),STRCAT(' [概念]-',GNBLOCK))); 总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿'); 流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿'); 全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2)); 市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿'); 股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值)); {业绩} 净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(29)/FINANCE(19)*100,2)); 毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)); 主营利润率:=STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2)); 当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(净资收益率,毛利率),主营利润率)); {主图显示} DRAWTEXT_FIX(ISLASTBAR,0.000,0.00,0,所属板块),COLORRED; DRAWTEXT_FIX(ISLASTBAR,0.000,0.06,0,股本市值),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.000,0.12,0,当前业绩),COLORGREEN; {该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} {变量赋值 NBAR:=BARSLAST(DATE<>REF(DATE,1))+1; LLN:REF(LLV(L,30),1),LINETHICK3; MID:(HHN+LLN)/2,LINETHICK3; T1:=TIME>900 AND TIME <1455;} {根据品种的交易时间和选择的周期做相应调整} {T2:=TIME>=1455;根据品种的交易时间和选择的周期做相应调整} {交易条件 开多条件:=H>HHN AND (HHN-MID)/MID<5/1000 AND NBAR>=30 AND T1; 开空条件:=L<LLN AND (MID-LLN)/MID<5/1000 AND NBAR>=30 AND T1;} {交易系统 BUY(开多条件,LOW); SELLSHORT(开空条件,HIGH); SELL(T2,HIGH); BUYSHORT(T2,LOW); AUTOFILTER;} 昨收:=REF(C,1); LCZT:=昨收*110; 涨停:=IF(FRACPART(LCZT)>=0.4999,(INTPART(LCZT)+1)/100, INTPART(LCZT)/100)=H OR(REF(C,1)*1.1-H)<0.01; STICKLINE(CLOSE<OPEN,L,H,0.1,0),COLORFFCC66; STICKLINE(CLOSE<OPEN,C,O,2.6,0),COLORFFCC66; STICKLINE(CLOSE>=OPEN,L,H,0.1,0),COLOR0047FF; STICKLINE(CLOSE>=OPEN,C,O,2.6,0),COLOR0047FF; STICKLINE(涨停 AND CLOSE>=OPEN,C,H,0,1),COLORYELLOW,LINETHICK2; STICKLINE(涨停 AND CLOSE<OPEN,O,H,0,1),COLORYELLOW,LINETHICK2; STICKLINE(涨停,C,O,2.6,1),COLORYELLOW,LINETHICK2; STICKLINE(涨停 AND CLOSE>=OPEN,O,L,0,1),COLORYELLOW,LINETHICK2; STICKLINE(涨停 AND CLOSE<OPEN,C,L,0,1),COLORYELLOW,LINETHICK2; STICKLINE(涨停 AND O=C,O,O,2.6,1),COLORYELLOW,LINETHICK5; 3、筹码分布主图( 顶尖 财经 股票学院: http://www.58188.com ) {公式名称: 筹码分布主图2 公式描述: 参数数量: 8 参数1: M1, 最小: 0, 最大: 999, 缺省: 0 参数2: M2, 最小: 0, 最大: 999, 缺省: 0 参数3: M3, 最小: 0, 最大: 999, 缺省: 0 参数4: M4, 最小: 0, 最大: 999, 缺省: 0 参数5: 小浪, 最小: 0, 最大: 999, 缺省: 10 参数6: 中浪, 最小: 0, 最大: 999, 缺省: 20 参数7: 大浪, 最小: 0, 最大: 999, 缺省: 60 参数8: 巨浪, 最小: 0, 最大: 999, 缺省: 120 公式类型: 技术指标公式-其他类型 画线方法: 主图叠加 公式版本: 0 显示小数: 缺省位数 坐标线位置: 自动 额外Y轴分界: 无 参数精翏: 请设置计算参数: M1: PARAM#0 (0.00--999.00) M2: PARAM#1 (0.00--999.00) M3: PARAM#2 (0.00--999.00) M4: PARAM#3 (0.00--999.00) 小浪: PARAM#4 (0.00--999.00) 中浪: PARAM#5 (0.00--999.00) 大浪: PARAM#6 (0.00--999.00) 巨浪: PARAM#7 (0.00--999.00) 用法注蕭:无 公式源码:} XA_1:=COST(1); XA_2:=COST(10); XA_3:=COST(20); XA_4:=COST(30); XA_5:=COST(40); XA_6:=COST(50); XA_7:=COST(60); XA_8:=COST(70); XA_9:=COST(80); XA_10:=COST(90); XA_11:=COST(99); XA_12:=COST(5); XA_13:=COST(15); XA_14:=COST(25); XA_15:=COST(35); XA_16:=COST(45); XA_17:=COST(55); XA_18:=COST(65); XA_19:=COST(75); XA_20:=COST(85); XA_21:=COST(95); XA_22:=XA_12-XA_1; XA_23:=XA_2-XA_12; XA_24:=XA_13-XA_2; XA_25:=XA_3-XA_13; XA_26:=XA_14-XA_3; XA_27:=XA_4-XA_14; XA_28:=XA_15-XA_4; XA_29:=XA_5-XA_15; XA_30:=XA_16-XA_5; XA_31:=XA_6-XA_16; XA_32:=XA_17-XA_6; XA_33:=XA_7-XA_17; XA_34:=XA_18-XA_7; XA_35:=XA_8-XA_18; XA_36:=XA_19-XA_8; XA_37:=XA_9-XA_19; XA_38:=XA_20-XA_9; XA_39:=XA_10-XA_20; XA_40:=XA_21-XA_10; XA_41:=XA_11-XA_21; XA_42:=1; XA_43:=MIN(XA_22,MIN(XA_23,MIN(XA_24,MIN(XA_25,MIN(XA_26,MIN(XA_27,MIN(XA_28,MIN(XA_29,MIN(XA_30,MIN(XA_31,MIN(XA_32,MIN(XA_33,MIN(XA_34,MIN(XA_35,MIN(XA_36,MIN(XA_37,MIN(XA_38,MIN(XA_39,MIN(XA_40,XA_41)))))))))))))))))))*XA_42; STICKLINE(XA_43=XA_22,XA_1,XA_12,5,0),COLORFF8800; STICKLINE(XA_43=XA_23,XA_2,XA_12,5,0),COLORFF8800; STICKLINE(XA_43=XA_24,XA_13,XA_2,5,0),COLORFF8800; STICKLINE(XA_43=XA_25,XA_3,XA_13,5,0),COLORFF8800; STICKLINE(XA_43=XA_26,XA_14,XA_3,5,0),COLORFF8800; STICKLINE(XA_43=XA_27,XA_4,XA_14,5,0),COLORFF8800; STICKLINE(XA_43=XA_28,XA_15,XA_4,5,0),COLORFF8800; STICKLINE(XA_43=XA_29,XA_5,XA_15,5,0),COLORFF8800; STICKLINE(XA_43=XA_30,XA_16,XA_5,5,0),COLORFF8800; STICKLINE(XA_43=XA_31,XA_6,XA_16,5,0),COLORFF8800; STICKLINE(XA_43=XA_32,XA_17,XA_6,5,0),COLORFF8800; STICKLINE(XA_43=XA_33,XA_7,XA_17,5,0),COLORFF8800; STICKLINE(XA_43=XA_34,XA_18,XA_7,5,0),COLORFF8800; STICKLINE(XA_43=XA_35,XA_8,XA_18,5,0),COLORFF8800; STICKLINE(XA_43=XA_36,XA_19,XA_8,5,0),COLORFF8800; STICKLINE(XA_43=XA_37,XA_9,XA_19,5,0),COLORFF8800; STICKLINE(XA_43=XA_38,XA_20,XA_8,5,0),COLORFF8800; STICKLINE(XA_43=XA_39,XA_10,XA_20,5,0),COLORFF8800; STICKLINE(XA_43=XA_40,XA_21,XA_10,5,0),COLORFF8800; STICKLINE(XA_43=XA_41,XA_11,XA_21,1,0),COLORFF8800; XA_44:=(XA_11-XA_1)*XA_42; XA_45:=XA_10-XA_8; XA_46:=XA_9-XA_7; XA_47:=XA_8-XA_6; XA_48:=XA_7-XA_5; XA_49:=XA_6-XA_4; XA_50:=XA_5-XA_3; XA_51:=XA_4-XA_2; XA_52:=MIN(XA_45/XA_44,MIN(XA_46/XA_44,MIN(XA_46/XA_44,MIN(XA_48/XA_44,MIN(XA_49/XA_44,MIN(XA_50/XA_44,XA_51/XA_44))))))<0.05; 密集周期:BARSLASTCOUNT(XA_52),NODRAW; STICKLINE(XA_45/XA_44<0.05,XA_10,XA_8,5,0),COLOR006600; STICKLINE(XA_46/XA_44<0.05,XA_9,XA_7,5,0),COLOR006600; STICKLINE(XA_47/XA_44<0.05,XA_8,XA_6,5,0),COLOR006600; STICKLINE(XA_48/XA_44<0.05,XA_7,XA_5,5,0),COLOR006600; STICKLINE(XA_49/XA_44<0.05,XA_6,XA_4,5,0),COLOR006600; STICKLINE(XA_50/XA_44<0.05,XA_5,XA_3,5,0),COLOR006600; STICKLINE(XA_51/XA_44<0.05,XA_4,XA_2,5,0),COLOR006600; XA_53:=IF(XA_43=XA_22,XA_12,IF(XA_43=XA_23,XA_2,IF(XA_43=XA_24,XA_13,IF(XA_43=XA_25,XA_3,IF(XA_43=XA_26,XA_14,IF(XA_43=XA_27,XA_4,IF(XA_43=XA_28,XA_15,IF(XA_43=XA_29,XA_5,IF(XA_43=XA_30,XA_16,IF(XA_43=XA_31,XA_6,0)))))))))); XA_54:=IF(XA_43=XA_32,XA_17,IF(XA_43=XA_33,XA_7,IF(XA_43=XA_34,XA_18,IF(XA_43=XA_35,XA_8,IF(XA_43=XA_36,XA_8,IF(XA_43=XA_37,XA_9,IF(XA_43=XA_38,XA_20,IF(XA_43=XA_39,XA_10,IF(XA_43=XA_40,XA_21,IF(XA_43=XA_41,XA_11,0)))))))))); 峰顶价:MAX(XA_53,XA_54),NODRAW; 筹码乖离率:(CLOSE-峰顶价)/峰顶价*100,NODRAW; 筹码锁定率:(峰顶价-REF(峰顶价,4))/峰顶价*100,NODRAW; 筹码集中度:(XA_21-XA_12)/COST(100)*100,NODRAW; 成本:(COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5*XA_42,COLORWHITE,LINETHICK2; HYDB2:DRAWKLINE(HIGH,OPEN,LOW,CLOSE); XA_55:=IF(PERIOD=5,1,0); XA_56:=REF(CLOSE,1)*XA_55; XA_57:=(HIGH*18+REF(HIGH,1)*17+REF(HIGH,2)*16+REF(HIGH,3)*15+REF(HIGH,4)*14+REF(HIGH,5)*13+REF(HIGH,6)*12+REF(HIGH,7)*11+REF(HIGH,8)*10+REF(HIGH,9)*9+REF(HIGH,10)*8+REF(HIGH,11)*7+REF(HIGH,12)*6+REF(HIGH,13)*5+REF(HIGH,14)*4+REF(HIGH,15)*3+REF(HIGH,16)*2+REF(HIGH,17)*1)/171*XA_42; XA_58:=(LOW*18+REF(LOW,1)*17+REF(LOW,2)*16+REF(LOW,3)*15+REF(LOW,4)*14+REF(LOW,5)*13+REF(LOW,6)*12+REF(LOW,7)*11+REF(LOW,8)*10+REF(LOW,9)*9+REF(LOW,10)*8+REF(LOW,11)*7+REF(LOW,12)*6+REF(LOW,13)*5+REF(LOW,14)*4+REF(LOW,15)*3+REF(LOW,16)*2+REF(LOW,17)*1)/171*XA_42; XA_59:=MA(CLOSE,M1); XA_60:=MA(CLOSE,M2); XA_61:=MA(CLOSE,M3); XA_62:=MA(CLOSE,M4); XA_63:=CLOSE>=XA_57 OR (CLOSE>XA_59 AND CLOSE>XA_60 AND CLOSE>XA_61 AND CLOSE>XA_62); XA_64:=XA_58>CLOSE OR (CLOSE<XA_59 AND CLOSE<XA_60 AND CLOSE<XA_61 AND CLOSE<XA_62); XA_65:=BARSLAST(XA_63); XA_66:=BARSLAST(XA_64); XA_67:=BARSLAST(CROSS(XA_66,XA_65)); XA_68:=BARSLAST(CROSS(XA_65,XA_66)); XA_69:=XA_67<XA_68; XA_70:=XA_68<XA_67; XA_71:=OPEN-CLOSE; XA_72:=IF(OPEN>CLOSE,OPEN,CLOSE); XA_73:=IF(OPEN<CLOSE,OPEN,CLOSE); STICKLINE(XA_71>0 AND XA_69,OPEN,CLOSE,3.1,0),COLORRED; STICKLINE(XA_71>0 AND XA_69,OPEN,HIGH,0,0),COLORRED; STICKLINE(XA_71>0 AND XA_69,CLOSE,LOW,0,0),COLORRED; STICKLINE(XA_71<=0 AND XA_69,OPEN,CLOSE,3.1,1),COLORRED; STICKLINE(XA_71<=0 AND XA_69,OPEN,LOW,0,0),COLORRED; STICKLINE(XA_71<=0 AND XA_69,CLOSE,HIGH,0,0),COLORRED; STICKLINE(XA_71>0 AND XA_70,OPEN,CLOSE,3.1,0),COLORGREEN; STICKLINE(XA_71>0 AND XA_70,OPEN,HIGH,0,0),COLORGREEN; STICKLINE(XA_71>0 AND XA_70,CLOSE,LOW,0,0),COLORGREEN; STICKLINE(XA_71<=0 AND XA_70,OPEN,CLOSE,3.1,1),COLORGREEN; STICKLINE(XA_71<=0 AND XA_70,CLOSE,HIGH,0,0),COLORGREEN; STICKLINE(XA_71<=0 AND XA_70,OPEN,LOW,0,0),COLORGREEN; 趋势线:(XA_57+XA_58)/2,COLORGREEN,LINETHICK2; 趋势上升:IF(XA_69,趋势线,DRAWNULL),COLORRED,LINETHICK2; 趋势下降:IF(XA_70,趋势线,DRAWNULL),COLORGREEN,LINETHICK2; MA1:MA(CLOSE,M1); MA2:MA(CLOSE,M2); MA3:MA(CLOSE,M3); MA4:MA(CLOSE,M4); |