午夜视频在线网站,日韩视频精品在线,中文字幕精品一区二区三区在线,在线播放精品,1024你懂我懂的旧版人,欧美日韩一级黄色片,一区二区三区在线观看视频

分享

MACD變色 背離 二次金叉公式(圖片)

 浪三江 2012-04-22
2012-04-17 12:44:53|快速回復(fù)|舉報|

源碼:
DIFF:( EMA(CLOSE,12) - EMA(CLOSE,26))*100,colorwhite;
DEA: EMA(DIFF,9),coloryellow;
MACD:2*(DIFF-DEA);
Zero := 0;
DRAWTEXT(CROSS(diff,dea),diff*1.05,'↑進') ,colorred;
DRAWTEXT(CROSS(dea,diff),diff*1.02,'↓出') ,colorgreen;

低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0,15,0),colorcyan,LINETHICK2;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=-200));
二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,20,0),COLORff66ff,LINETHICK2;
STICKLINE(低位金叉,0,10,5,0),coloryellow;
DRAWICON(低位金叉,-1,"BUY");


gj:=MAX(C,O);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,1,0),colorred;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),colorcyan;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),colorff66ff;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1,0),colorgreen;

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),10,0),colorred;
DRAWLINE(A1=0,DEA,底背離,REF(DEA,A1),0),colorred,LINETHICK2;
DRAWLINE(底背離,DEA,底背離,REF(DEA,A1),0),colorred,LINETHICK2;
DRAWTEXT(底背離,REF(DEA,A1)*0.80,' 底背離'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),colorgreen;
DRAWLINE(A2=0 ,DEA,頂背離,REF(DEA,A2),0),colorgreen,LINETHICK2;
DRAWLINE(頂背離,DEA,頂背離,REF(DEA,A2),0),colorgreen,LINETHICK2;
DRAWTEXT(頂背離,REF(DEA,A2)*1.28,' 頂背離'),colorgreen;

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約