(方法就是把上面的代碼復(fù)制、粘貼,,如果不會的同學(xué)可以留言,,我發(fā)給你們) (使用要注意:有未來函數(shù)) QWE1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); QWE2:=REF(QWE1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWE3:=REF(QWE2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWE4:=REF(QWE3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWE5:=REF(QWE4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWE6:=REF(QWE5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWE7:=REF(QWE6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWE8:=REF(QWE7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWE9:=REF(QWE8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWEA:=REF(QWE9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWEB:=REF(QWEA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWEC:=REF(QWEB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); STICKLINE(QWE1 OR QWE2 OR QWE3 OR QWE4 OR QWE5 OR QWE6 OR QWE7 OR QWE8 OR QWE9 OR QWEA OR QWEB OR QWEC,CLOSE,REF(CLOSE,1),3.1,0),COLOR000055; STICKLINE(QWE1 OR QWE2 OR QWE3 OR QWE4 OR QWE5 OR QWE6 OR QWE7 OR QWE8 OR QWE9 OR QWEA OR QWEB OR QWEC,CLOSE,REF(CLOSE,1),2.7,0),COLOR000077; STICKLINE(QWE1 OR QWE2 OR QWE3 OR QWE4 OR QWE5 OR QWE6 OR QWE7 OR QWE8 OR QWE9 OR QWEA OR QWEB OR QWEC,CLOSE,REF(CLOSE,1),2.1,0),COLOR000099; STICKLINE(QWE1 OR QWE2 OR QWE3 OR QWE4 OR QWE5 OR QWE6 OR QWE7 OR QWE8 OR QWE9 OR QWEA OR QWEB OR QWEC,CLOSE,REF(CLOSE,1),1.5,0),COLOR0000BB; STICKLINE(QWE1 OR QWE2 OR QWE3 OR QWE4 OR QWE5 OR QWE6 OR QWE7 OR QWE8 OR QWE9 OR QWEA OR QWEB OR QWEC,CLOSE,REF(CLOSE,1),0.9,0),COLOR0000DD; STICKLINE(QWE1 OR QWE2 OR QWE3 OR QWE4 OR QWE5 OR QWE6 OR QWE7 OR QWE8 OR QWE9 OR QWEA OR QWEB OR QWEC,CLOSE,REF(CLOSE,1),0.3,0),COLOR0000FF; QWED:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2); QWEE:=REF(QWED,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWEF:=REF(QWEE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWE10:=REF(QWEF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWE11:=REF(QWE10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWE12:=REF(QWE11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWE13:=REF(QWE12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWE14:=REF(QWE13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWE15:=REF(QWE14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWE16:=REF(QWE15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); QWE17:=REF(QWE16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); QWE18:=REF(QWE17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); STICKLINE(QWED OR QWEE OR QWEF OR QWE10 OR QWE11 OR QWE12 OR QWE13 OR QWE14 OR QWE15 OR QWE16 OR QWE17 OR QWE18,CLOSE,REF(CLOSE,1),3.1,0),COLOR00AAFF; STICKLINE(QWED OR QWEE OR QWEF OR QWE10 OR QWE11 OR QWE12 OR QWE13 OR QWE14 OR QWE15 OR QWE16 OR QWE17 OR QWE18,CLOSE,REF(CLOSE,1),2.7,0),COLOR00DDFF; STICKLINE(QWED OR QWEE OR QWEF OR QWE10 OR QWE11 OR QWE12 OR QWE13 OR QWE14 OR QWE15 OR QWE16 OR QWE17 OR QWE18,CLOSE,REF(CLOSE,1),2.1,0),COLOR00EEFF; STICKLINE(QWED OR QWEE OR QWEF OR QWE10 OR QWE11 OR QWE12 OR QWE13 OR QWE14 OR QWE15 OR QWE16 OR QWE17 OR QWE18,CLOSE,REF(CLOSE,1),1.5,0),COLOR22FFFF; STICKLINE(QWED OR QWEE OR QWEF OR QWE10 OR QWE11 OR QWE12 OR QWE13 OR QWE14 OR QWE15 OR QWE16 OR QWE17 OR QWE18,CLOSE,REF(CLOSE,1),0.9,0),COLOR99FFFF; STICKLINE(QWED OR QWEE OR QWEF OR QWE10 OR QWE11 OR QWE12 OR QWE13 OR QWE14 OR QWE15 OR QWE16 OR QWE17 OR QWE18,CLOSE,REF(CLOSE,1),0.3,0),COLORFFFFFF; QWE19:=REF(QWED OR QWEE OR QWEF OR QWE10 OR QWE11 OR QWE12 OR QWE13 OR QWE14 OR QWE15 OR QWE16 OR QWE17 OR QWE18,1) AND QWE1; STICKLINE(QWE19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORMAGENTA; QWE1A:=REF(QWE1 OR QWE2 OR QWE3 OR QWE4 OR QWE5 OR QWE6 OR QWE7 OR QWE8 OR QWE9 OR QWEA OR QWEB OR QWEC,1) AND QWED; STICKLINE(QWE1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR008800; RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; K24:=SMA(RSV24,3,1); D24:=SMA(K24,3,1); J24:=3*K24-2*D24; A1:=BARSLAST(REF(CROSS('MACD.DIF','MACD.DEA'),1)); DRAWTEXT(REF(C,A1 1)>C AND REF('MACD.DIF',A1 1)<'MACD.DIF' AND CROSS('MACD.DIF','MACD.DEA')>0,L-0.02,'★M'),COLOR00FFFF;{MACD底背離} A2:=BARSLAST(REF(CROSS('KDJ.K','KDJ.D'),1)); DRAWTEXT(REF(C,A2 1)>C AND REF('KDJ.K',A2 1)<'KDJ.K' AND CROSS('KDJ.K','KDJ.D'),L-0.10,'◎K'),COLORFF00FF;{KDJ底背離} A3:=BARSLAST(REF(CROSS('RSI.RSI1','RSI.RSI2'),1)); DRAWTEXT(REF(C,A3 1)>C AND REF('RSI.RSI1',A3 1)<'RSI.RSI1' AND CROSS('RSI.RSI1','RSI.RSI2')>0,L-0.18,'◆R'),COLOR0000FF;{RSI底背離}; C1:=BARSLAST(REF(CROSS('MACD.DEA','MACD.DIF'),1)); DRAWTEXT(REF(C,C1 1)<C AND REF('MACD.DIF',C1 1)>'MACD.DIF' AND CROSS('MACD.DEA','MACD.DIF')>0,H 0.16,'★M'),COLOR00FF00;{MACD頂背離}; C2:=BARSLAST(REF(CROSS('KDJ.D','KDJ.K'),1)); DRAWTEXT(REF(C,C2 1)<C AND REF('KDJ.K',C2 1)>'KDJ.K' AND CROSS('KDJ.D','KDJ.K')>0,H 0.08,'◎K'),COLORFFFFCC;{KDJ頂背離} C3:=BARSLAST(REF(CROSS('RSI.RSI2','RSI.RSI1'),1)); DRAWTEXT(REF(C,C3 1)<C AND REF('RSI.RSI1',C3 1)>'RSI.RSI1' AND CROSS('RSI.RSI2','RSI.RSI1')>0,H 0.04,'◆R'),COLORFF9900;{RSI頂背離}; 重心:=(C 0.618*REF(C,1) 0.382*REF(C,1) 0.236*REF(C,3) 0.146*REF(C,4))/2.382; 【操盤線】:EMA(((SLOPE(C,22)*20) C),55),COLORYELLOW,LINETHICK4; 【黃金線】:IF(重心>=【操盤線】,【操盤線】,DRAWNULL),COLORRED,LINETHICK2; 【空倉線】:IF(重心<【操盤線】,【操盤線】,DRAWNULL),COLORCYAN,LINETHICK2; DRAWTEXT(ISLASTBAR,【操盤線】,'【操盤線】'),COLORRED; {引:EMA(CLOSE,2),LINETHICK1,COLORMAGENTA; 探:MA(CLOSE,5),LINETHICK1;}; 變:EMA(CLOSE,5),LINETHICK1,COLORYELLOW; 金:IF(變>REF(變,1),變,DRAWNULL),COLORRED,LINETHICK1; 空:IF(變<REF(變,1),變,DRAWNULL),COLORGREEN,LINETHICK1; DRAWTEXT(ISLASTBAR,變,'【雷達(dá)線】'),COLORRED; 漲停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0); STICKLINE(漲停,O,C,1,0),COLORYELLOW; ZDF:=(C-REF(C,1))/REF(C,1)*100; STICKLINE(ZDF<-9.9,O,C,1,0),COLORBLUE; PH:=TROUGHBARS(2,5,1); LL:=HHV(H,PH); TJ1:=LL=HIGH AND LL<REF(LL,1);{//=1} TS:=SUMBARS(TJ1,2); TJ:=PEAKBARS(2,5,1)=1 AND TS>=PH; PL:=BARSLAST(TJ); 支撐:IF(BARSLAST(TJ1), REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLOREA91B5; 壓力:IF(BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),COLORYELLOW; TJ_2:=LOW>REF(REF(LOW,TS),PL); DRAWTEXT(ISLASTBAR,壓力,'壓力'),COLORYELLOW; DRAWTEXT(ISLASTBAR,支撐,'支撐'),COLOREA91B5; 突破前板副圖 X_1:=WINNER(CLOSE)*100; 你們的點(diǎn)贊轉(zhuǎn)發(fā)支持是我前進(jìn)的動力!??! |
|