1、地量爆发 {公式名称: 地量爆发指标 公式描述: 地量爆发指标公式} {副图} STICKLINE(18,100,0,5,0),COLORBLUE; VAR1:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5); VAR2:=(HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5); VAR3:=CROSS(VAR2,VAR1); VAR4:=REF(VAR2,2)<REF(VAR2,1) AND VAR2<REF(VAR2,1); VAR5:=COUNT(VAR3,7)>0 AND VAR4; VAR6:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VAR7:=SMA(ABS(LOW-VAR6),13,1)/SMA(MAX(LOW-VAR6,0),10,1); VAR8:=EMA(VAR7,10); VAR9:=EMA(CLOSE,5); VAR10:=LLV(LOW,33); VAR11:=EMA(IF(LOW<=VAR10,VAR9,0),3)*40; VAR12:=IF(VAR11>100,VAR11*0.312,VAR11); 地量爆发:VAR12,COLORWHITE; STICKLINE(VAR12>0,0,VAR12,3,0),COLORWHITE; STICKLINE(VAR12>0,0,VAR12,2,0),COLOR555555; STICKLINE(VAR12>0,0,VAR12,1,0),COLORWHITE; STICKLINE(VAR2>0,0,VAR2,5,0),COLOR3A7841; 美丽坚:VAR2,COLORGREEN; 炸弹:VAR1,COLORCYAN; STICKLINE(VAR5 AND COUNT(VAR5,5)=1,0,VAR12,4,0),COLORRED; XG:IF(VAR5 AND COUNT(VAR5,5)=1,1,0),COLORRED; 2、仿预测赢家测上升阻力 仿预测赢家测上升阻力( 顶尖财经 股票学院: http://58188.com ) 有2个版本, 第一个是我按黄金分割来推的,好像高了点大多数涨不到的,到C1就涨不了了,要强势的才可以 第二版是根据一网友回复的仙踞制药的图仿它的数据到哪里我就设到哪里,可不是黄金分割数据了,贴上来大家优化吧! 第一个版本: 波1=最小1最大1000缺省12或其它随便调要哪个低就调,前10个月的都行 DRAWGBK(C>0, RGB(0,0,20),RGB(00,0,0),0,0,1); DRAWKLINE(H,O,L,C); A1:=REF(HIGH,5)=HHV(HIGH,2*6+1); B1:=FILTER(A1,5); C1:=BACKSET(B1,5+1); D1:=FILTER(C1,5+1);{高点} A2:=REF(LOW,5)=LLV(LOW,2*10+1); B2:=FILTER(A2,5+1); C2:=BACKSET(B2,5+1); D2:=FILTER(C2,5);{低点} E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍} H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1; L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2); X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1)); G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点} L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1; X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2)); G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点} DRAWLINE(LD,L,HD,H,0),COLORRED; DRAWLINE(HD,H,LD,L,0),COLORGREEN; J1:=BACKSET(BARSTATUS=2 ,MIN(BARSLAST(HD),BARSLAST(LD))+1); J2:=J1>REF(J1,1); DRAWLINE(J2,IF(HD,H,L),BARSTATUS=2 ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),DOTLINE,COLORWHITE; C点:=BARSLAST(LD); DRAWTEXT(LD AND BARSLAST(HD)<BARSLAST(REF(LD,1)) ,L-0.1,'A'),COLORRED; DRAWTEXT(HD,H+0.1,'B'),COLORGREEN; 高:=5; 低:=10; 高选:=1; 低选:=1; 波2:=1; PURC:=CONST(FINDHIGH(H,0,高*5,高选)); PLZ:=CONST(BARSLAST(PURC=H))+1; 顶X:=CONST(IF(PLZ=1,H,REF(H,PLZ-1))); QQT:=CONST(FINDLOW(L,0,低*10,低选)); PLL:=CONST(BARSLAST(QQT=L))+1; 低X:=CONST(IF(PLL=1,L,REF(L,PLL-1))); DRAWKLINE(H,O,L,C); 顶点:=顶X,COLORRED; 底点:=低X,COLORRED; 波动速率:=100*((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))/(PLL-PLZ),NODRAW,COLORMAGENTA; 波动幅度:=((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))*100; 波动价位:=(顶X-低X)*(IF(PLL>PLZ,1,-1)); BPURC:=CONST(FINDHIGH(H,0,(IF(波1>0,波1,IF(PLZ<PLL,高,低)))*5,波2)); BPLZ:=CONST(BARSLAST(BPURC=H))+1; BQQT:=CONST(FINDLOW(L,0,(IF(波1>0,波1,IF(PLZ<PLL,高,低)))*5,波2)); BPLL:=CONST(BARSLAST(BQQT=L))+1; BLC1:=CONST(FINDHIGH(H,0,(IF(波1>0,波1,IF(PLZ<PLL,高,低)))*5,波2)); BLC2:=CONST(BARSLAST(BPURC=H))+1; BLC顶X:=CONST(IF(BPLZ=1,H,REF(H,BPLZ-1))); BLC3:=CONST(FINDLOW(L,0,(IF(波1>0,波1,IF(PLZ<PLL,高,低)))*5,波2)); B6C4:=CONST(BARSLAST(BQQT=L))+1; BLC低X:=CONST(IF(BPLL=1,L,REF(L,BPLL-1))); BASE:=IF(波动速率<0,BLC顶X,BLC低X)COLORRED; BLCX:=IF(波动速率<0,-1,1); BLCZ:=(顶点-底点)*(IF(PLL>PLZ,1,-1)); B12:=BASE+(BLCZ*0.775)COLORRED; B14:=BASE+(BLCZ*0.868)COLORRED; B200:=BASE+(BLCZ*1)COLORRED; XZDD:=IF(PLL>PLZ,BPLL,BPLZ); STICKLINE(CURRBARSCOUNT=XZDD ,BASE,B200,0,0),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=XZDD,B12,'---------------------------C1')COLORC0FF7F; DRAWTEXT(CURRBARSCOUNT=XZDD,B14,'---------------------------C2')COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=XZDD,B200,'--------------------------C3')COLORGREEN; DRAWTEXT(CURRBARSCOUNT=10,B12,CON2STR(B12,2)),COLORC0FF7F; DRAWTEXT(CURRBARSCOUNT=10,B14,CON2STR(B14,2)),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=10,B200,CON2STR(B200,2)),COLORGREEN; 第二版 DRAWGBK(C>0, RGB(0,0,20),RGB(00,0,0),0,0,1); DRAWKLINE(H,O,L,C); A1:=REF(HIGH,5)=HHV(HIGH,2*6+1); B1:=FILTER(A1,5); C1:=BACKSET(B1,5+1); D1:=FILTER(C1,5+1);{高点} A2:=REF(LOW,5)=LLV(LOW,2*10+1); B2:=FILTER(A2,5+1); C2:=BACKSET(B2,5+1); D2:=FILTER(C2,5);{低点} E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍} H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1; L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2); X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1)); G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点} L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1; X2:=REF(BARSLAST(L2),1)+1; www58188com:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2)); G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点} DRAWLINE(LD,L,HD,H,0),COLORRED; DRAWLINE(HD,H,LD,L,0),COLORGREEN; J1:=BACKSET(BARSTATUS=2 ,MIN(BARSLAST(HD),BARSLAST(LD))+1); J2:=J1>REF(J1,1); DRAWLINE(J2,IF(HD,H,L),BARSTATUS=2 ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),DOTLINE,COLORWHITE; C点:=BARSLAST(LD); DRAWTEXT(LD AND BARSLAST(HD)<BARSLAST(REF(LD,1)) ,L-0.1,'A'),COLORRED; DRAWTEXT(HD,H+0.1,'B'),COLORGREEN; 高:=5; 低:=10; 高选:=1; 低选:=1; 波2:=1; PURC:=CONST(FINDHIGH(H,0,高*5,高选)); PLZ:=CONST(BARSLAST(PURC=H))+1; 顶X:=CONST(IF(PLZ=1,H,REF(H,PLZ-1))); QQT:=CONST(FINDLOW(L,0,低*10,低选)); PLL:=CONST(BARSLAST(QQT=L))+1; 低X:=CONST(IF(PLL=1,L,REF(L,PLL-1))); DRAWKLINE(H,O,L,C); 顶点:=顶X,COLORRED; 底点:=低X,COLORRED; 波动速率:=100*((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))/(PLL-PLZ),NODRAW,COLORMAGENTA; 波动幅度:=((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))*100; 波动价位:=(顶X-低X)*(IF(PLL>PLZ,1,-1)); BPURC:=CONST(FINDHIGH(H,0,(IF(波1>0,波1,IF(PLZ<PLL,高,低)))*5,波2)); BPLZ:=CONST(BARSLAST(BPURC=H))+1; BQQT:=CONST(FINDLOW(L,0,(IF(波1>0,波1,IF(PLZ<PLL,高,低)))*5,波2)); BPLL:=CONST(BARSLAST(BQQT=L))+1; BLC1:=CONST(FINDHIGH(H,0,(IF(波1>0,波1,IF(PLZ<PLL,高,低)))*5,波2)); BLC2:=CONST(BARSLAST(BPURC=H))+1; BLC顶X:=CONST(IF(BPLZ=1,H,REF(H,BPLZ-1))); BLC3:=CONST(FINDLOW(L,0,(IF(波1>0,波1,IF(PLZ<PLL,高,低)))*5,波2)); B6C4:=CONST(BARSLAST(BQQT=L))+1; BLC低X:=CONST(IF(BPLL=1,L,REF(L,BPLL-1))); BASE:=IF(波动速率<0,BLC顶X,BLC低X)COLORRED; BLCX:=IF(波动速率<0,-1,1); BLCZ:=(顶点-底点)*(IF(PLL>PLZ,1,-1)); B12:=BASE+(BLCZ*0.775)COLORRED; B14:=BASE+(BLCZ*0.868)COLORRED; B200:=BASE+(BLCZ*1)COLORRED; XZDD:=IF(PLL>PLZ,BPLL,BPLZ); STICKLINE(CURRBARSCOUNT=XZDD ,BASE,B200,0,0),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=XZDD,B12,'---------------------------C1')COLORC0FF7F; DRAWTEXT(CURRBARSCOUNT=XZDD,B14,'---------------------------C2')COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=XZDD,B200,'--------------------------C3')COLORGREEN; DRAWTEXT(CURRBARSCOUNT=10,B12,CON2STR(B12,2)),COLORC0FF7F; DRAWTEXT(CURRBARSCOUNT=10,B14,CON2STR(B14,2)),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=10,B200,CON2STR(B200,2)),COLORGREEN; 飞狐交易师格式 {-----------------------☆功能开关------------------------} {角度} 最初:=SYSPARAM(2); 最后:=SYSPARAM(3); 最高:=SYSPARAM(4); 最低:=SYSPARAM(5); X_1:=最后-最初; X_2:=HHVBARS(H,X_1+1); X_3:=LLVBARS(L,X_1+1); X_4:=BARPOS=(最后-X_3[最后]); ZH_1:=BARSLAST(X_4); ZH_2:=DATACOUNT-ZH_1[DATACOUNT]; ZH_3:=IF(BARPOS=ZH_2,X_4,0); 关注:=IF(ZH_3,10,0);{只显示最后一个信号} X_5:=(最高-最低)/(最后-最初); X_6:=REF(L,BARSLAST(关注)); y1:=X_6*1.191; y2:=X_6*1.382; y3:=X_6*1.5; y4:=X_6*1.618; y5:=X_6*1.809; y6:=X_6*2; y7:=X_6*2.382; y8:=X_6*1.236; y9:=X_6*1.764;y10:=X_6*2.50;y11:=X_6*2.618;y12:=X_6*2.809;y13:=X_6*3; y14:=X_6*3.382; {-----------------【图解模板】---------------------} STICKLINE(关注,X_6,if(最高>y14,最高,y14),1,0),LINETHICK2,Color0000FF;//垂直竖线 PARTLINE(X_6,X_6),LINETHICK2,COLORRED;//横 {分割} PARTLINE(C,y1),LINEDOT,COLORGRAY; PARTLINE(C,y2),COLOR7B7B00; PARTLINE(C,y3),LINETHICK2,COLORYELLOW; PARTLINE(C,y4),COLOR7B7B00; PARTLINE(C,y5),LINEDOT,COLORGRAY; PARTLINE(C,y6),LINETHICK2,ColorFF8900; PARTLINE(C,y7),LINETHICK1,COLORGREEN; PARTLINE(C,y8),LINEDOT,COLORGRAY; PARTLINE(C,y9),LINEDOT,COLORGRAY; PARTLINE(C,y11),LINEDOT,Color008000; PARTLINE(C,y12),LINEDOT,Color008000; PARTLINE(C,y13),LINEDOT,Color008000; PARTLINE(C,y14),LINETHICK2,COLORRED; DRAWTEXT(关注,X_6,'低点起动./0.000 '),ALIGN2,ALIGN2,COLORRED; DRAWTEXT(关注,y1,'曙光初现/0.191% '),ALIGN2,PXUP8,Color0089FF; DRAWTEXT(关注,y2,'初显强势/0.382% '),ALIGN2,PXUP8,ColorFF7FFF; DRAWTEXT(关注,y3,'压力转换/0.500% '),ALIGN2,PXUP8,COLORYELLOW; DRAWTEXT(关注,y4,'强势突破/0.618% '),ALIGN2,PXUP8,COLORWHITE; DRAWTEXT(关注,y5,'风险渐聚/0.809% '),ALIGN2,PXUP8,COLORCYAN; DRAWTEXT(关注,y6,'刀口舔血/2.000% '),ALIGN2,PXUP8,ColorFF8900; DRAWTEXT(关注,y7,'疯狂搏傻/2.382% '),ALIGN2,ALIGN2,COLORGREEN; DRAWTEXT(关注,y8,'0.236% '),ALIGN2,PXUP8,Color0089FF; DRAWTEXT(关注,y9,'0.764% '),ALIGN2,ALIGN2,COLORCYAN; DRAWTEXT(关注,y11,'2.618% '),ALIGN2,ALIGN2,COLORGREEN; DRAWTEXT(关注,y12,'2.809% '),ALIGN2,ALIGN2,COLORGREEN; DRAWTEXT(关注,y13,' 拉\n 高\n 出\n 货\n 区 '),ALIGN2,ALIGN8,COLORWHITE; DRAWTEXT(关注,y13,'3.300% '),ALIGN2,ALIGN2,COLORGREEN; DRAWTEXT(关注,y14,'转换倍数/3.382% '),ALIGN2,ALIGN2,COLORRED; DRAWTEXT(关注,y14,'(机构翻倍卖出区) '),ALIGN2,ALIGN8,COLORYELLOW; DRAWTEXT(ISLASTBAR,y1,NUMTOSTR(y1,2)),SHIFT1,PXUP8,COLORGRAY; DRAWTEXT(ISLASTBAR,y2,NUMTOSTR(y2,2)),SHIFT1,PXUP8,COLOR7B7B00; DRAWTEXT(ISLASTBAR,y3,NUMTOSTR(y3,2)),SHIFT1,PXUP8,COLORYELLOW; DRAWTEXT(ISLASTBAR,y4,NUMTOSTR(y4,2)),SHIFT1,PXUP8,COLOR7B7B00; DRAWTEXT(ISLASTBAR,y5,NUMTOSTR(y5,2)),SHIFT1,PXUP8,COLORGRAY; DRAWTEXT(ISLASTBAR,y6,NUMTOSTR(y6,2)),SHIFT1,PXUP8,ColorFF8900; DRAWTEXT(ISLASTBAR,y7,NUMTOSTR(y7,2)),SHIFT1,PXUP8,COLORGREEN; DRAWTEXT(ISLASTBAR,X_6,NUMTOSTR(X_6,2)),SHIFT1,PXUP8,COLORRED; DRAWTEXT(ISLASTBAR,y8,NUMTOSTR(y8,2)),SHIFT1,PXUP8,COLORGRAY; DRAWTEXT(ISLASTBAR,y9,NUMTOSTR(y9,2)),SHIFT1,PXUP8,COLORGRAY; DRAWTEXT(ISLASTBAR,y11,NUMTOSTR(y11,2)),SHIFT1,PXUP8,COLORGREEN; DRAWTEXT(ISLASTBAR,y12,NUMTOSTR(y12,2)),SHIFT1,PXUP8,COLORGREEN; DRAWTEXT(ISLASTBAR,y13,NUMTOSTR(y13,2)),SHIFT1,PXUP8,COLORGREEN; DRAWTEXT(ISLASTBAR,y14,NUMTOSTR(y14,2)),SHIFT1,PXUP8,COLORRED; 3、大财女变线 {公式名称: 大财女变线_主 公式描述: 大财女变线操盘系统_主图 画线方法: 主图叠加} 涨%:ROUND(INDEXADV/(INDEXADV+INDEXDEC)*100),NODRAW,COLORRED; 流通市值:FINANCE(40)/100000000,NODRAW,COLORRED; VAR1:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN,VOL); VAR2:=VAR1*10000/FINANCE(7); VAR3:=AMOUNT/VOL/100; VAR4:=(CLOSE+0.01-REF(CLOSE,1))/REF(CLOSE,1)>=0.1 AND (CLOSE-0.01-REF(CLOSE,1))/REF(CLOSE,1)<=0.1 AND CLOSE=HIGH; VAR5:=IF(CURRBARSCOUNT=1,REF(CLOSE,1)*1.1,DRAWNULL); STICKLINE(CURRBARSCOUNT=1,VAR5,MAX(OPEN,CLOSE),(-1),(-1)),COLORGRAY; DRAWKLINE(HIGH,OPEN,LOW,CLOSE); VAR6:=IF(CURRBARSCOUNT=1,REF(CLOSE,1)*0.9,DRAWNULL); STICKLINE(CURRBARSCOUNT=1,VAR6,MIN(OPEN,CLOSE),(-1),(-1)),COLORBLUE; DRAWKLINE(HIGH,OPEN,LOW,CLOSE); VAR7:=CONST(BARSLAST(VAR2=HHV(VAR2,180))); VAR8:=IF(CURRBARSCOUNT<=VAR7+1,CONST(REF((CLOSE+OPEN+HIGH+LOW)/4,VAR7)),DRAWNULL); VAR9:=VAR8; 多空线:VAR9,COLORYELLOW; DRAWTEXT(ISLASTBAR,VAR9,4),COLORYELLOW; VAR10:=MA(CLOSE,5); VAR11:=MA(CLOSE,6); VAR12:=MA(CLOSE,7); VAR13:=MA(CLOSE,8); VAR14:=MA(CLOSE,9); VAR15:=MA(CLOSE,10); VAR16:=MA(CLOSE,11); VAR17:=MA(CLOSE,12); VAR18:=MA(CLOSE,13); VAR19:=MA(CLOSE,14); VAR20:=MA(CLOSE,15); VAR21:=MA(CLOSE,16); VAR22:=MA(CLOSE,17); VAR23:=MA(CLOSE,18); VAR24:=MA(CLOSE,19); VAR25:=MA(CLOSE,20); VAR26:=MA(CLOSE,21); VAR27:=MA(CLOSE,22); VAR28:=MA(CLOSE,23); VAR29:=MA(CLOSE,24); VAR30:=MA(CLOSE,25); VAR31:=MA(CLOSE,26); VAR32:=MA(CLOSE,27); VAR33:=MA(CLOSE,28); VAR34:=MA(CLOSE,29); VAR35:=MA(CLOSE,30); VAR36:=MA(CLOSE,31); VAR37:=MAX(MAX(MAX(MAX(VAR10,VAR11),VAR12),VAR13),VAR14); VAR38:=MAX(MAX(MAX(MAX(VAR15,VAR16),VAR17),VAR18),VAR19); VAR39:=MAX(MAX(MAX(MAX(VAR20,VAR21),VAR22),VAR23),VAR24); VAR40:=MAX(MAX(MAX(MAX(MAX(VAR25,VAR26),VAR27),VAR28),VAR29),VAR30); VAR41:=MAX(MAX(MAX(MAX(MAX(VAR31,VAR32),VAR33),VAR34),VAR35),VAR36); VAR42:=MAX(MAX(MAX(MAX(VAR37,VAR38),VAR39),VAR40),VAR41); VAR43:=IF(VAR42=VAR10,5,IF(VAR42=VAR11,6,IF(VAR42=VAR12,7,IF(VAR42=VAR13,8,IF(VAR42=VAR14,9,IF(VAR42=VAR15,10,IF(VAR42=VAR16,11,IF(VAR42=VAR17,12,IF(VAR42=VAR18,13,IF(VAR42=VAR19,14,IF(VAR42=VAR20,15,IF(VAR42=VAR21,16,IF(VAR42=VAR22,17,IF(VAR42=VAR23,18,IF(VAR42=VAR24,19,IF(VAR42=VAR25,20,IF(VAR42=VAR26,21,IF(VAR42=VAR27,22,IF(VAR42=VAR28,23,IF(VAR42=VAR29,24,IF(VAR42=VAR30,25,DRAWNULL))))))))))))))))))))); VAR44:=IF(VAR42=MA(CLOSE,VAR43),VAR43,IF(VAR42=VAR31,26,IF(VAR42=VAR32,27,IF(VAR42=VAR33,28,IF(VAR42=VAR34,29,IF(VAR42=VAR35,30,IF(VAR42=VAR36,31,32))))))); VAR45:=IF(BARSCOUNT(CLOSE)>=31,(VAR42*3+MA(CLOSE,31))/4,MAX(MA(CLOSE,5),MA(CLOSE,BARSCOUNT(CLOSE)))); 变线:VAR45,COLORWHITE; VAR46:=VAR1=HHV(VAR1,VAR44); VAR47:=REF(REF(LOW,BARSLAST(VAR46)),1); VAR48:=REF(REF(VAR3,BARSLAST(VAR46)),1); VAR49:=REF(REF(HIGH,BARSLAST(VAR46)),1); VAR50:=MAX(OPEN,CLOSE)/MIN(OPEN,CLOSE)=HHV(MAX(OPEN,CLOSE)/MIN(OPEN,CLOSE),VAR44); VAR51:=OPEN/CLOSE=HHV(OPEN/CLOSE,VAR44) AND CLOSE<OPEN; VAR52:=CLOSE/OPEN=HHV(CLOSE/OPEN,VAR44); STICKLINE(VAR51,OPEN,CLOSE,2,0),COLORGREEN; STICKLINE(VAR52,OPEN,CLOSE,2,0),COLORRED; VAR53:=VAR52 AND VAR46; STICKLINE(VAR53,OPEN,CLOSE,2,0),COLORYELLOW; VAR54:=VAR51 AND VAR1>MA(VAR1,VAR44) AND CLOSE>变线*1.05 AND VAR1>MA(VAR1,5) AND CLOSE<OPEN AND CLOSE<REF(CLOSE,1) AND HIGH/变线=HHV(HIGH/变线,5); STICKLINE(VAR54,OPEN,CLOSE,2,0),COLORBLUE; VAR55:=REF(HHV((HIGH+CLOSE+LOW+HIGH)/4,7),BARSLAST(CROSS(VAR15,VAR10))); VAR56:=REF(LLV(MIN(OPEN,CLOSE),10),BARSLAST(CROSS(VAR10,VAR15))); VAR57:=REF(HHV(MAX(CLOSE,OPEN),7),BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)))); VAR58:=REF(LLV(MIN(CLOSE,OPEN),10),BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))); VAR59:=IF(CLOSE>500,VAR57,VAR55); VAR60:=IF(CLOSE>500,VAR58,VAR56); 箱顶:IF(VAR59=CONST(VAR59),CONST(VAR59),DRAWNULL),COLORBROWN,LINETHICK3; 箱底:IF(VAR60=CONST(VAR60),VAR60,DRAWNULL),COLORBLUE,LINETHICK3; DRAWTEXT(ISLASTBAR,VAR59,5),COLORBROWN; DRAWTEXT(ISLASTBAR,VAR60,6),COLORBLUE; VAR61:=MA(INDEXC,5); VAR62:=MA(INDEXC,6); VAR63:=MA(INDEXC,7); VAR64:=MA(INDEXC,8); VAR65:=MA(INDEXC,9); VAR66:=MA(INDEXC,10); VAR67:=MA(INDEXC,11); VAR68:=MA(INDEXC,12); VAR69:=MA(INDEXC,13); VAR70:=MA(INDEXC,14); VAR71:=MA(INDEXC,15); VAR72:=MA(INDEXC,16); VAR73:=MA(INDEXC,17); VAR74:=MA(INDEXC,18); VAR75:=MA(INDEXC,19); VAR76:=MA(INDEXC,20); VAR77:=MA(INDEXC,21); VAR78:=MA(INDEXC,22); VAR79:=MA(INDEXC,23); VAR80:=MA(INDEXC,24); VAR81:=MA(INDEXC,25); VAR82:=MA(INDEXC,26); VAR83:=MA(INDEXC,27); VAR84:=MA(INDEXC,28); VAR85:=MA(INDEXC,29); VAR86:=MA(INDEXC,30); VAR87:=MA(INDEXC,31); VAR88:=MAX(MAX(MAX(MAX(VAR61,VAR62),VAR63),VAR64),VAR65); VAR89:=MAX(MAX(MAX(MAX(VAR66,VAR67),VAR68),VAR69),VAR70); VAR90:=MAX(MAX(MAX(MAX(VAR71,VAR72),VAR73),VAR74),VAR75); VAR91:=MAX(MAX(MAX(MAX(MAX(VAR76,VAR77),VAR78),VAR79),VAR80),VAR81); VAR92:=MAX(MAX(MAX(MAX(MAX(VAR82,VAR83),VAR84),VAR85),VAR86),VAR87); VAR93:=MAX(MAX(MAX(MAX(VAR88,VAR89),VAR90),VAR91),VAR92); VAR94:=IF(VAR93=VAR61,5,IF(VAR93=VAR62,6,IF(VAR93=VAR63,7,IF(VAR93=VAR64,8,IF(VAR93=VAR65,9,IF(VAR93=VAR66,10,IF(VAR93=VAR67,11,IF(VAR93=VAR68,12,IF(VAR93=VAR69,13,IF(VAR93=VAR70,14,IF(VAR93=VAR71,15,IF(VAR93=VAR72,16,IF(VAR93=VAR73,17,IF(VAR93=VAR74,18,IF(VAR93=VAR75,19,IF(VAR93=VAR76,20,IF(VAR93=VAR77,21,IF(VAR93=VAR78,22,IF(VAR93=VAR79,23,IF(VAR93=VAR80,24,IF(VAR93=VAR81,25,DRAWNULL))))))))))))))))))))); VAR95:=IF(VAR93=MA(INDEXC,VAR94),VAR94,IF(VAR93=VAR82,26,IF(VAR93=VAR83,27,IF(VAR93=VAR84,28,IF(VAR93=VAR85,29,IF(VAR93=VAR86,30,IF(VAR93=VAR87,31,32))))))); VAR96:=EVERY(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),5) OR COUNT(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),9)=8; VAR97:=COUNT(VAR96,2) AND DYNAINFO(4)>0 AND IF(CLOSE<OPEN,VAR1<REF(VOL,1),1); STICKLINE(VAR97,VAR9,VAR9,5,0),COLORMAGENTA; VAR98:=REF(MIN(REF(LOW,BARSLAST(VAR46)),REF(HIGH,BARSLAST(VAR46)+1)),1); VAR99:=IF(VAR46,REF(MAX(REF(LOW,BARSLAST(VAR46)),REF(LOW,BARSLAST(VAR52 AND CLOSE>OPEN*1.05))),1),MAX(REF(LOW,BARSLAST(VAR46)),REF(LOW,BARSLAST(VAR52 AND CLOSE>OPEN*1.05)))); VAR100:=IF(BETWEEN(VAR99,VAR56,VAR56*1.03),VAR56,VAR99); VAR101:=MAX(MAX(HHV((HIGH+CLOSE)/2,5),变线+MA(HIGH-变线,VAR44)),IF(变线>REF(变线,1),变线*1.03,变线)); VAR102:=IF(CLOSE<VAR55,MIN(VAR55,VAR101),VAR101); VAR103:=REF(VAR102,1); 止赢:IF(CURRBARSCOUNT<=5,CONST(VAR103),DRAWNULL),DOTLINE,COLORMAGENTA; DRAWTEXT(ISLASTBAR,VAR103,7),COLORMAGENTA; 预埋:IF(ISLASTBAR,VAR102,DRAWNULL),NODRAW,COLORMAGENTA; 止损:IF(VAR98=CONST(VAR98),VAR98,IF(ISLASTBAR,VAR98,DRAWNULL)),DOTLINE,COLORGREEN; DRAWTEXT(ISLASTBAR,止损,8),COLORGREEN; VAR104:=变线>VAR59 AND COUNT(CLOSE>变线,5); IF(VAR104,变线,DRAWNULL),COLOR0045FF; IF(变线<VAR60,变线,DRAWNULL),COLORCYAN; |