一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

通達信簡單明了MACD指標公式

 逍遙神算 2015-01-15

DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIFF,9);
MACD2:=(2 * (DIFF - DEA));
DU0:=CROSS(DIFF,0);
UD0:=CROSS(0,DIFF);
TDU0:=BARSLAST(DU0);
TUD0:=BARSLAST(UD0);
DU3:=REF(DU0,1);
UD3:=REF(UD0,1);
TDU3:=BARSLAST(DU3);
TUD3:=BARSLAST(UD3);
UDGLINE:=IF((TDU3 < TUD3),REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3));
JDU0:=(((REF(CLOSE,1) <= REF(UDGLINE,1)) AND (CLOSE > UDGLINE)) AND (TDU0 < TUD0));
JUD0:=(((REF(CLOSE,1) >= REF(UDGLINE,1)) AND (CLOSE < UDGLINE)) AND (TUD0 < TDU0));
JDU1:=(JDU0 AND (COUNT(JDU0,TDU0) = 1));
JUD1:=(JUD0 AND (COUNT(JUD0,TUD0) = 1));
JDU2:=(JDU1 AND (REF(BARSLAST(JUD1),1) < REF(BARSLAST(JDU1),1)));
JUD2:=(JUD1 AND (REF(BARSLAST(JUD1),1) > REF(BARSLAST(JDU1),1)));
JDU3:=(JDU1 AND (REF(BARSLAST(JUD1),1) > REF(BARSLAST(JDU1),1)));
JUD3:=(JUD1 AND (REF(BARSLAST(JUD1),1) < REF(BARSLAST(JDU1),1)));
BSLINE:=IF((BARSLAST(JDU2) < BARSLAST(JUD2)),IF(REF(CROSS(0,MACD2),1),LLV(LOW,2),REF(LLV(LOW,2),BARSLAST(REF(CROSS(0,MACD2),1)))),IF(REF(CROSS(MACD2,0),1),HHV(HIGH,2),REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MACD2,0),1)))));
DRAWICON((JDU1 OR (BARSLAST(JDU1) < BARSLAST(JUD1))),0, 0) ;
DRAWICON((JUD1 OR (BARSLAST(JDU1) > BARSLAST(JUD1))),0,0) ;
STICKLINE((MACD2 >= 0),0,MACD2,2,1),COLORRED ;
STICKLINE(((MACD2 >= 0) AND (MACD2 < REF(MACD2,1))),0,MACD2,2,0),COLORRED;
STICKLINE((MACD2 < 0),0,MACD2,2,0),COLORFFFF00;
STICKLINE(((MACD2 < 0) AND (MACD2 > REF(MACD2,1))),0,MACD2,2,1),COLORFFFF00;
DIF:DIFF,LINETHICK1,COLORYELLOW ;
MACD:DEA ,COLORLIMAGENTA ;
DEF:MACD2,LINETHICK0,COLORFFFF00 ;
STICKLINE((CLOSE > 0),0,0,0 ,0) ;
DEFUT:=BARSLAST(CROSS(MACD2,0));
DEFDT:=BARSLAST(CROSS(0,MACD2));
DEFUL:=IF((MACD2 >= 0),HHV(MACD2,(DEFUT + 1)),REF(HHV(MACD2,(DEFUT + 1)),(DEFDT + 1)));
DEFDL:=IF((MACD2 < 0),LLV(MACD2,(DEFDT + 1)),REF(LLV(MACD2,(DEFDT + 1)),(DEFUT + 1)));
DEFU2L:=REF(DEFUL,(DEFUT + 1));
DEFD2L:=REF(DEFDL,(DEFDT + 1));
{DRAWICON(((((LLV(MACD2,4) > 0) AND (MACD2 < REF(MACD2,1))) AND (REF(MACD2,1) > REF(MACD2,2))) AND (REF(MACD2,2) > REF(MACD2,3))),MACD2,2) ;
DRAWICON(((((HHV(MACD2,4) < 0) AND (MACD2 > REF(MACD2,1))) AND (REF(MACD2,1) < REF(MACD2,2))) AND (REF(MACD2,2) < REF(MACD2,3))),MACD2,1);
DRAWICON(((((JUD1 OR (BARSLAST(JDU1) > BARSLAST(JUD1))) AND (MACD2 >= 0)) AND (REF(MACD2,1) < REF(DEFU2L,1))) AND (MACD2 > DEFU2L)),MACD2,12) ;
DRAWICON(((((JDU1 OR (BARSLAST(JDU1) < BARSLAST(JUD1))) AND (MACD2 < 0)) AND (REF(MACD2,1) > REF(DEFD2L,1))) AND (MACD2 < DEFD2L)),MACD2,12);}
{MACD}
_紅柱:=IF("MACD.MACD">REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),STICK,COLORRED;
綠柱:=IF("MACD.MACD"<REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),STICK,COLORYELLOW;
_抄底:=ABS((CROSS("MACD.DIF","MACD.DEA")
&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORLIMAGENTA;
_DIF:="MACD.DIF",COLORWHITE;
_DEA:="MACD.DEA",COLORYELLOW;
__強度:=IF(_DIF>_DEA,_DIF,DRAWNULL),COLORRED,LINETHICK2;
_強度:=IF(_DEA<_DIF,_DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWTEXT(ABS(_抄底)>0,_抄底*1.20,' 抄底'),COLORYELLOW;
{DRAWICON(ABS(_抄底)>0,_抄底*1.10,4);}
DRAWICON(CROSS(_DIF,_DEA),_DEA,1);
DRAWICON(CROSS(_DEA,_DIF),_DEA,2);
A111:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
B1:=REF(C,A111+1)>C AND REF("MACD.DIF",A111+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");
DRAWTEXT(B1>0,_DIF*0.95,'MACD'),COLORRED;{MACD底背離}; 
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");
DRAWTEXT(D1>0,_DEA*1.05,'MACD'),COLORWHITE;{MACD頂背離};
凈資產增長率:FINANCE(33)/FINANCE(34),NODRAW;
每股收益:FINANCE(33),NODRAW;
公積金:FINANCE(18),NODRAW;
未分利潤:FINANCE(32),NODRAW;
凈資產:FINANCE(34),NODRAW;
流通股:FINANCE(7)/100000000,NODRAW;
總股本:FINANCE(1)/100000000,NODRAW;
市凈率PB:C/FINANCE(34),NODRAW;
市盈率PE:C/FINANCE(33),NODRAW;
現金流:FINANCE(26)/100000000,NODRAW;
換手率:V*100/CAPITAL,NODRAW;
換手率20:SUM(V*100,20)/CAPITAL,NODRAW;
換手率60:SUM(V*100,60)/CAPITAL,NODRAW;
{現金流:FINANCE(26)/100000000,NODRAW;
營業(yè)利潤:FINANCE(23)/100000000,NODRAW;
利潤總額:FINANCE(28)/100000000,NODRAW; 
凈資產:FINANCE(34),NODRAW;
流通股:FINANCE(7)/100000000,NODRAW;
總股本:FINANCE(1)/100000000,NODRAW;};
{MACD四線趨勢}
{DIFF2:EMA(CLOSE,30)-EMA(CLOSE,60);
DEA2:EMA(DIFF2,15);
MACD3:=3*(DIFF2-DEA2);
{STICKLINE(MACD3<REF(MACD3,1) AND MACD3>0,0,MACD3,1,0),COLORYELLOW;
STICKLINE(MACD3>=REF(MACD3,1)AND MACD3>0,0,MACD3,1,0),COLORRED; }
{STICKLINE(MACD3>REF(MACD3,1)AND MACD3<0,0,MACD3,1,0),COLORFFC8FF;
STICKLINE(MACD3<=REF(MACD3,1)AND MACD3<0,0,MACD3,1,0),COLORFFCC66;}
{DIF3:EMA(CLOSE,9)-EMA(CLOSE,18),LINETHICK2;
DEA3:EMA(DIF3,7),LINETHICK2;}
{下穿:=COUNT(DEA<=0,5)=1 AND DEA<=0;
上穿:=COUNT(DEA>=0,5)=1 AND DEA>=0;
DRAWTEXT(下穿,LOW*0.1,'↓'),COLORYELLOW;
DRAWTEXT(上穿,LOW*0.1,'↑'),COLOR0000FF;
日線空頭:IF(DEA<0,1,0);};

通達信簡單明了MACD指標公式

 

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

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多

    日韩不卡一区二区在线| 亚洲中文字幕在线观看四区| 在线日韩欧美国产自拍| 麻豆精品在线一区二区三区| 欧美一区二区三区视频区| 亚洲妇女黄色三级视频 | 性感少妇无套内射在线视频| 午夜激情视频一区二区| 欧美激情中文字幕综合八区| 一区二区欧美另类稀缺| 欧美精品日韩精品一区| 日本不卡视频在线观看| 色哟哟国产精品免费视频| 殴美女美女大码性淫生活在线播放| 好吊色欧美一区二区三区顽频| 精产国品一二三区麻豆| 国产又粗又长又爽又猛的视频| 成年女人午夜在线视频| 欧美精品二区中文乱码字幕高清 | 国产成人综合亚洲欧美日韩| 日本人妻精品有码字幕| 九九热最新视频免费观看| 在线视频免费看你懂的| 一区二区福利在线视频| 九九热视频网在线观看| 精品亚洲香蕉久久综合网| 欧美黄色黑人一区二区| 国产传媒欧美日韩成人精品| 亚洲精品中文字幕熟女| 国产高清精品福利私拍| 丰满少妇被猛烈插入在线观看| 国产精品亚洲综合色区韩国| 熟妇久久人妻中文字幕| 黄色三级日本在线观看| 都市激情小说在线一区二区三区| 欧美三级大黄片免费看| 在线播放欧美精品一区| 中国少妇精品偷拍视频| 亚洲一区二区亚洲日本| 日本人妻熟女一区二区三区| 日本中文字幕在线精品|