金点百分百:运筹帷幄主图指标
源码: {用法:黄托底买进,蓝压顶卖出。单线持股,双线持币} {DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));} MA11:=MA(CLOSE,5); MA21:=MA(CLOSE,10); MA31:=MA(CLOSE,30); ZJ:=AMOUNT/10000;{资金} TM:=V-MA(V,10);{量填满} 一穿三:=MA11>O AND MA21>O AND MA31>O AND MA11OPEN ; DRAWTEXT(一穿三,L-0.012,'穿三线'),COLORFF00FF; C6:=REF(C,1); 涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA; {运筹帷幄} 多:=EMA(C,3),COLORYELLOW; 空:=EMA(C,5),COLOR00FF00; 均衡:=EMA(空,5),COLORWHITE,; VARF1:=COUNT(CROSS(多,均衡),2)=1; VARF2:=COUNT(CROSS(空,均衡),2)=1; ZAI:=FILTER(VARF1 AND VARF2,2); DRAWTEXT(ZAI,均衡,'主升↑'),COLORFF00FF; VV2:=REF(CLOSE,1); VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100; DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2); DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH*1.03,'沽空↓'),COLORYELLOW; VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2; DRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSEVARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5); DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入'); VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; DRAWICON(CROSS(82,VARR1),HIGH*1.02,2); DRAWTEXT(CROSS(82,VARR1),HIGH*1.02,'↓短空↓'),COLORYELLOW; VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5; VAR2:=REF(VAR1,1); VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100; HY3:=IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0); DRAWTEXT(HY3,LOW,'注意买入'),COLORRED; S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2; A:=MA(S,5),COLORGREEN,,LINETHICK2; BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100; F:=MA(S,121); RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100; K:=SMA(RSV,15,1); D:=SMA(K,15,1); J:=3*K-2*D; LCC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100; DRAWTEXT(CROSS(84,RSI) , HIGH*1.06,'逃顶!'),COLORYELLOW ; S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0),STICK,LINETHICK3,COLORGREEN; DRAWTEXT(S1=2,LOW,'关注'), COLORGREEN; 中轨:HHV(MA(H,N1),N2),COLORGREEN,LINETHICK2; 趋势:LLV(MA(H,N1),1),COLORRED,LINETHICK2; {用法:黄托底买进,蓝压顶卖出。} {MA13:MA(CLOSE,13),COLORWHITE; MA34:MA(CLOSE,34),COLORYELLOW; MA55:MA(CLOSE,55),COLORMAGENTA;} VAR1A1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); VAR2A1:=REF(VAR1A1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3A1:=REF(VAR2A1,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3A1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA1:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB1:=REF(VARA1,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); {STICKLINE(VAR1A1 OR VAR2A1 OR VAR3A1 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;}{红1} VARD:=CLOSEVARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2),COLORBLUE; VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2),COLORBLUE; VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2),COLORBLUE; VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2),COLORBLUE; VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2),COLORBLUE; STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,0),COLORFFCC66; VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,1),COLORYELLOW; VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),5,2),COLOR00FF00{98FD}; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00C8FF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10ECFF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10FFFF; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00D900; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORBLUE; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR090FF2; CJ2:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL); CJ3:=(CLOSE-CJ2)/CJ2*100; CJ4:=REF(CJ3,1)<-40 AND CJ3>REF(CJ3,1) AND REF(CJ3,1)[2.5; ] CJ5:=(CLOSE-OPEN)/OPEN*100; CJ6:=REF(CLOSE,1); CJ7:=SMA(MAX(CLOSE-CJ6,0),6,1)/SMA(ABS(CLOSE-CJ6),6,1)*100; CJ8:=COUNT(CJ7<20,20)>=1; CJ9:=CJ5>9 AND CJ8; CJA:=100*WINNER(OPEN); CJB:=100*WINNER(CLOSE); CJC:=CJB-CJA; CJD:=CJC>=30; CJE:=CLOSE/MA(CLOSE,3)>=1.07 AND CLOSE=HHV(CLOSE,3) AND MA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); CJF:=REF(CLOSE,1); CJ10:=SMA(MAX(CLOSE-CJF,0),5,1)/SMA(ABS(CLOSE-CJF),5,1)*100; CJ11:=COUNT(CJ10<20,20)>=1; CJ12:=CJE AND CJ11; CJ13:=MA(CLOSE,4); CJ14:=MA(CLOSE,10); CJ15:=MA(CLOSE,20); CJ16:=MA(CLOSE,25); CJ17:=COUNT(CROSS(CJ14,CJ15),2)=1; CJ18:=COUNT(CROSS(CJ13,CJ16),2)=1; CJ19:=CJ17 AND CJ18; CJ1A:=CJ12 AND CJD AND CJ19; CJ1B:=MA(CLOSE,80)-MA(CLOSE,10)/3; CJ1C:=CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE短底反弹:=CJ4 OR CJ9 OR CJ1A OR CJ1C; DRAWTEXT(短底反弹,LOW*0.97,'短底反弹'),COLORGREEN; DRAWTEXT(CROSS(0.94,(L/(MA(CLOSE,14) * 0.9))),LOW,'明天抄底'),COLORWHITE,; MID:=EMA(CLOSE,M); UPPER:=MID+2*STD(CLOSE,M),COLOR0000FF; LOWER:=MID-2*STD(CLOSE,M),COLORFF0000; UPPER0:=MID+3*STD(CLOSE,M),COLOR0000FF; LOWER0:=MID-3*STD(CLOSE,M),COLORFF0000; DRAWICON(HIGH>UPPER0 OR HIGH=UPPER0,HIGH*1.03,2); DRAWICON(LOWMA5:=MA(CLOSE,5),COLORWHITE; MA10:=MA(CLOSE,10),COLORYELLOW; MA20:=MA(CLOSE,20),COLORRED; MA30:=MA(CLOSE,30),COLORGREEN; MA60:=MA(CLOSE,60),COLORLIBLUE; EXP1:=EXPMA(CLOSE,12),COLORBLUE; EXP2:=EXPMA(CLOSE,39),COLORRED; {DRAWKLINE(H,O,L,C);} VAR122:=AMOUNT/VOL/100; VAR111:=(2*CLOSE+HIGH+LOW)/4; VAR22:=EXPMA(EXPMA(EXPMA(VAR111,4),4),4); JJJ:= (VAR22-REF(VAR22,1))/REF(VAR22,1)*100, COLORSTICK; DDD:= MA(JJJ,3); KKK:= MA(JJJ,1); LLL:=(KKK-DDD)*1000; III:=(DDD-KKK)*1000; V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); QSX1:= EMA(V11,3); V12:=(QSX1-REF(QSX1,1))/REF(QSX1,1)*100; CC:=(QSX1>=90 AND V12) AND FILTER((QSX1>=90 AND V12),10); A23:=((C + L) + H) / 3; A24:=EMA(A23,6); A25:=EMA(A24,5); A26:=CROSS(A24,A25); CCCC:=(EMA(CLOSE,26) - EMA(CLOSE,12)); SSSS:=EMA(CCCC,9); BBBB:=IF(CROSS((4*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1)),(8)),1,DRAWNULL),STICK,COLOR0099FF,LINETHICK6; VAT3:=REF(CLOSE,1); VAT4:=SMA(MAX(CLOSE-VAT3,0),6,1)/SMA(ABS(CLOSE-VAT3),6,1)*100; VAR1111:=(CLOSE*2+HIGH+LOW)/4; VAR221:=EMA(VAR1111,13)-EMA(VAR1111,34); VAR33:=EMA(VAR221,5); ZZZZ1:= 2*(VAR221-VAR33); ZZZZ3:=(-2)*(VAR221-VAR33); VAR44:=(CLOSE*2+HIGH+LOW)/1; VAR55:=EMA(VAR44,13)-EMA(VAR44,34); VAR66:=EMA(VAR55,2); ZZZZ2:= 2*(VAR55-VAR66); ZZZZ4:=(-2)*(VAR55-VAR66); BBBBB:=CROSS(ZZZZ2,ZZZZ1) OR CROSS(MA(CLOSE,1),EXPMA(CLOSE,39)); MA1:=MA(((HIGH + LOW) / 2),5); MA2:=MA(((HIGH + LOW) / 2),35); X:=((MA1 - MA2) * 100); JS1:=(((((((((CLOSE + REF(CLOSE,1)) + REF(CLOSE,2)) + REF(CLOSE,3)) + REF(CLOSE,4)) + REF(CLOSE,5)) + REF(CLOSE,6)) + REF(CLOSE,7)) + REF(CLOSE,8)) / 9); JS2:=((((CLOSE + REF(CLOSE,1)) + REF(CLOSE,2)) + REF(CLOSE,3)) / 4); CS1:=((((JS1 - REF(JS1,1)) / REF(JS1,1)) * 1000) + 50); CS2:=((((JS2 - REF(JS2,1)) / REF(JS2,1)) * 1000) + 50); BDGW:=(CROSS(CS1,CS2) AND (COUNT((CLOSE > REF(HIGH,1)),12) > 5)); LC:=REF(CLOSE,1); FXZ:=((SMA(MAX((CLOSE - LC),0),6,1) / SMA(ABS((CLOSE - LC)),6,1)) * 100); DC1:=((CROSS(CS2,(CS1 + 2)) AND (X < 0)) AND ((FXZ < 10) OR (REF(FXZ,1) < 10))); DC2:=((((CROSS(CS2,MA1) AND (MA1 < 20)) AND (FXZ > CS2)) AND (X < 0)) AND (((CS2 < 20) OR (REF(CS2,1) < 15)) OR (REF(CS2,2) < 15))); BBBBBB:=(DC1 OR DC2 OR CROSS(A24,A25)); DHQLL1:=(BBBB AND BBBBB); DHQLL2:=(BBBB AND BBBBBB); DHQLL3:=(BBBBB AND BBBBBB); VARE1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARF11:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR100:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR110:=VARF[REF(VOL,1) AND CLOSE>REF(CLOSE,1);] DRAWICON((((DHQLL1=1 OR DHQLL2=1 OR DHQLL3=1 OR BBBBBB=1) AND (LLL>0)) AND ((CCCC-SSSS)*1000>0)),(LOW * 0.97),1); DRAWTEXT(BBBB,LOW * 0.99,'←-短买'),COLORRED; DRAWTEXT(CROSS(80,VAT4),HIGH * 1.02,'←-短卖'),COLORGREEN; DRAWTEXT(((CROSS(ZZZZ4,ZZZZ2) AND (III>1)) AND ((SSSS-CCCC)*1000>0)),HIGH*1.02,'←-清仓逃命'),COLORFF00FF; {DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68)); DRAWKLINE(H,O,L,C); } {MA5:MA(CLOSE,5),COLORWHITE; MA10:MA(CLOSE,10),COLORYELLOW; MA20:MA(CLOSE,24),COLORMAGENTA; MA60:MA(CLOSE,60),COLORGREEN; } MA120:=MA(CLOSE,120),COLORLIMAGENTA; MA240:=MA(CLOSE,240),COLORBLUE; {DRAWICON(CROSS(MA10,MA20),MA20,1); 10日上穿20日做记号 DRAWICON(CROSS(MA20,MA60),MA60,1); 20日上穿60日做记号 DRAWICON(CROSS(MA20,MA120),MA120,1); 20日上穿60日做记号 DRAWICON(CROSS(MA20,MA240),MA240,1);20日上穿120日做记号 DRAWICON(CROSS(MA60,MA120),MA60,1); 60日上穿120日做记号 DRAWICON(CROSS(MA60,MA240),MA240,1); 60日上穿240日做记号 DRAWICON(CROSS(MA120,MA240),MA240,1);120日上穿240日做记号 DRAWICON(CROSS(MA10,MA5),MA10,2); 5日下穿10日做记号 DRAWICON(CROSS(MA20,MA10),MA20,2); 10日下穿20日做记号 DRAWICON(CROSS(MA60,MA20),MA60,2); 20日下穿60日做记号 {DRAWICON(CROSS(MA120,MA60),MA60,2); {60日下穿120日做记号} 反弹托:=MA5>MA20 AND MA5>MA20 AND MA20月价托:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20); 季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60); 短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60); 半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120); 熊来:=MA60年托:=MA120>MA240 AND MA120>MA240 AND CROSS(MA120,MA240); 月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20); DRAWTEXT(月蜘蛛,MA20-0.08,'金蜘蛛'),COLORMAGENTA; DRAWTEXT(反弹托,MA20-0.08,'反弹托'),COLORMAGENTA; DRAWTEXT(月价托 ,MA20-0.2,'月托'),COLORMAGENTA; DRAWTEXT(季价托,MA60-0.0.08,'季托'),COLORMAGENTA; DRAWTEXT(短长价托,L+0.015,'短长托'),COLOR36C0C1; DRAWTEXT(半年托,MA120-0.08,'牛'),COLORRED; DRAWTEXT(熊来,MA60+0.08,'熊'),COLORGREEN; DRAWTEXT(年托,MA240-0.08,'年托'),COLORRED; 压:=MA10MA10 AND CROSS(MA20,MA10); DRAWTEXT(压,MA20+0.012,'压'),COLORYELLOW; VOL5:=MA(VOL,5),COLORWHITE; VOL10:=MA(VOL,10),COLORYELLOW; VOL40:=MA(VOL,40),COLORFF00FF ; 量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE; AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10)); BB1:=REF(COUNT(CCC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3; 芙蓉出水:=BB AND CC1,COLOR00FF00; DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORYELLOW; STICKLINE(芙蓉出水,O,C,4,0),LINETHICK2,COLORFF00FF; {压力--支撑} TY:=C; A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10); 前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT; {STICKLINE(C,前期高位,前期高位,16,0),COLORYELLOW;} 前期低位:REF(C,BARSLAST(LD)),COLOR00FF00,POINTDOT; {STICKLINE(C,前期低位,前期低位,30,0),COLORYELLOW;} REF(C,BARSLAST(LD)),COLOR00FF00,POINTDOT;
|