資源描述:
《【股票指標(biāo)公式下載】-【通達(dá)信】MACD趨勢(shì)(持倉區(qū)、空倉區(qū)、建倉、加倉、清倉)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、【通達(dá)信】MACD趨勢(shì)(持倉區(qū).空倉區(qū).建倉.加倉.清倉)-指標(biāo)公式源碼short:=9;Iong:=18;mid:=7;持倉區(qū):0,COLORYELLOW,LTNETHTCKO;空倉區(qū):0,COLORBLUE,L1NETH1CK0;DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:二EMA(DIF,MID);MACD:2*(DIF-DEA),COLORSTICK;STICKLINE(MACD>=0,MACD,0,0,0),COLOROOOFFF;STICKLI
2、NE(MACD<0,MACD,0,0,0),COLORFFOOFF;STICKLINE(MACD[0,0,MACD,0,0),COLORGREEN;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,0,0),C0L0RFFCC66;趨勢(shì):IF(DIF>DEA,DEA,DEA),COLORWHITE;建倉:TF(DTF<0,DTF,0),C0L0R0099FF;加倉:IF(DIF<0,0,DIF),COLORRED;清倉:]
3、IF(DIFDEA,0.025,-0.025,10,1),COLORYELLOW;STICKLINE(DIFCANDREF(DIF,A1+1)〈DIFANDCROSS(DIF,DEA);A2:二BARSLAST(REF(CROSS(〃KDJ?K〃(9
4、,3,3),〃KDJ.D〃(9,3,3)),1));B2:=REF(C,A2+1)>CANDREF(〃KDJ?K〃(9,3,3),A2+1)〈〃KDJ.Kz,(9,3,3)ANDCROSS(〃KDJ?K〃(9,3,3),〃KDJ.D〃(9,3,3));A3:二BARSLAST(REF(CROSS(〃RSI?RSI1〃(6,12,24),〃RSI?RSI2〃(6,12,24)),1));B3:二REF(C,A3+1)>CANDREF(〃RSI.RS11〃(6,12,24),A3+1)<〃RSI.R
5、SI1〃(6,12,24)ANDCROSSCRSI.RSIl/z(6,12,24),〃RSI?RSI2〃(6,12,24));Cl:=BARSLAST(REF(CROSS(DEA,DIF),1));D1:=REF(C,C1+1)DIFANDCROSS(DEA,DIF);C2:二BARSLAST(REF(CROSS(〃KDJ.D〃(9,3,3),〃KDJ.K〃(9,3,3)),1));D2:二REF(C,C2+1)6、,C2+1)〉〃KDJ.K〃(9,3,3)ANDCROSS(〃KDJ?D〃(9,3,3),〃KDJ.K〃(9,3,3));C3:二BARSLAST(REF(CROSS(〃RSI?RSI2〃(6,12,24),〃RSI?RSI1〃(6,12,24)),1));D3:二REF(C,C3+1XCANDREF(〃RSI.RSI1〃(6,12,24),C3+1)>〃RSI.RSI1〃(6,12,24)ANDCROSSTRSI.RSI2Z,(6,12,24),〃RS1?RS11〃(6,12,24));MAC
7、D底背:IF(B1>O,-0.1,0),COLORRED,POINTDOT;KDJ底背:IF(B2>0,-0.1,0),COLORFFOOFF,POINTDOT;RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;MACD頂背:TF(Dl>0,0.1,0),COLOROOFFOO,POTNTDOT;KDJ頂背:IF(D2>0,0.1,0),C0L0RFFCC66,POINTDOT;RSI頂背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;
8、STICKLINE(Bl>0,-0.1,0,2,0),COLORRED;STICKLINE(B2>0,-0.15,-0.05,2,0),COLORFFOOFF;STICKLINE(B3>0,-0.2,-0.1,2,0),COLORYELLOW;STICKLINE(Dl>0,0.1,0,2,0),COLOROOFFOO;STICKLINE(D2>0,0.15,0.05,2,0),C0L0RFFCC66;STICKLINE(D3>0,0.2,0.1,2,0),COLORWIIITE;【通達(dá)信】MAC