MACD是本人最喜歡的指標(biāo)。 金叉區(qū)間最高價(jià) 最低價(jià)畫紅色框架 死叉區(qū)間畫綠色框架 方便同學(xué)們根據(jù)MACD分析趨勢??此坪唵萎嬀€,還是有點(diǎn)難度。當(dāng)然你是高手,一切都是浮云,請(qǐng)你繞道。我是半桶水,井底蛙,發(fā)帖是給喜歡研究 喜歡MACD的菜鳥的。源碼提供,你有本事也多提供一些源碼,少噴 干點(diǎn)實(shí)事。股市不是一個(gè)技術(shù)指標(biāo)能搞定的。多參考一些技術(shù)指標(biāo),沒有壞處。說不定哪一天你就成了。
MACD金叉死叉畫框主圖 M:=MACD.MACD; JT:=BARSLAST(CROSS(M,0)); ST:=BARSLAST(CROSS(0,M)); Q1:=BACKSET(ST=0,2); QT:=BARSLAST(CROSS(Q1=1,0.5)); QQT:=BACKSET(QT=0,JT+1); QT2:=BARSLAST(CROSS(Q1=1,0.5)); HH:=HHV(H,JT+1); LL:=LLV(L,JT+1); XJH:=REFX(HH,BARSNEXT(QT2=0)); XJL:=REFX(LL,BARSNEXT(QT2=0)); SQ1:=BACKSET(JT=0,2); SQT:=BARSLAST(CROSS(SQ1=1,0.5)); SQQT:=BACKSET(SQT=0,ST+1); SQT2:=BARSLAST(CROSS(SQ1=1,0.5)); SHH:=HHV(H,ST+1); SLL:=LLV(L,ST+1); XSH:=REFX(SHH,BARSNEXT(SQT2=0)); XSL:=REFX(SLL,BARSNEXT(SQT2=0)); TJ1:=CONST(M)>0 AND CURRBARSCOUNT=CONST(JT)+1; TJ2:=CONST(M)<0 and="" currbarscount=""> STICKLINE(QQT=1 AND M>0,XJH,XJH,4,-1),COLORMAGENTA; STICKLINE(QQT=1 AND M>0,XJL,XJL,4,-1),COLORMAGENTA; STICKLINE(JT=0,XJH,XJL,0,-1),COLORMAGENTA; STICKLINE(QT2=0 AND ST>0,HH,LL,0,-1),COLORMAGENTA; DRAWLINE(TJ1,CONST(HH),ISLASTBAR AND CONST(M)>0,HH,0),COLORMAGENTA,DOTLINE; DRAWLINE(TJ1,CONST(LL),ISLASTBAR AND CONST(M)>0,LL,0),COLORMAGENTA,DOTLINE; STICKLINE(CONST(M)>0 AND CURRBARSCOUNT=CONST(JT)+1,CONST(HH),CONST(LL),0,-1),COLORMAGENTA; STICKLINE(CONST(M)>0 AND ISLASTBAR AND CONST(ST)>0,CONST(HH),CONST(LL),0,-1),COLORMAGENTA; STICKLINE(SQQT=1 AND M<> STICKLINE(SQQT=1 AND M<> STICKLINE(ST=0,XSH,XSL,0,-1),COLORGREEN; STICKLINE(SQT2=0,SHH,SLL,0,-1),COLORGREEN; DRAWLINE(TJ2,CONST(SHH),ISLASTBAR AND CONST(M)<> DRAWLINE(TJ2,CONST(SLL),ISLASTBAR AND CONST(M)<> STICKLINE(CONST(M)<0 and="" currbarscount=""> STICKLINE(CONST(M)<0 and="" islastbar="" and="" const(jt)="">0,CONST(SHH),CONST(SLL),0,-1),COLORGREEN;
|