《大底結構》主圖
AB1:=EMA(C,3);
AB2:=EMA(C,26);
AB3:=AB1-AB2;
準勢:EMA(EMA(EMA(C,3),3),3)+AB3,COLORGREEN;
測壓:=REF(HHV(準勢,5),1),COLORCCCCCC,DOTLINE;
上壓:REF(HHV(準勢,10),1),COLORFF00FF,LINETHICK2;
底撐:REF(LLV(準勢,60),1),COLORBLUE,LINETHICK2;
DRAWTEXT_FIX(C>O,0.01,0.9,0,'廷進作品'),COLOR99EEEE;
MAC1:=EMA(準勢,50),COLORFF66FF,DOTLINE;
底結構:EMA(MAC1,20),COLORYELLOW,DOTLINE;
大底線:EMA(底結構,6),COLORRED,LINETHICK1;
《短酷線》副圖源碼
中軸線:-0.1,COLOR111111;
低位線:=-4.1,COLOR111111;
M1:=EMA(CLOSE,7);
M2:=EMA(CLOSE,18);
短酷線1:(M1-M2)/M2*100,COLORCCCCCC,DOTLINE;
AM1:=EMA(CLOSE,13);
AM2:=EMA(CLOSE,21);
短酷線2:=(AM1-AM2)/AM2*100,COLOR99EEEE;
MAC1:=EMA(短酷線2,20),COLORGREEN;
MAC2:=EMA(短酷線1,3),COLOR666666;
DRAWBAND(短酷線1,RGB(234,40,234),MAC2,RGB(0,0,0));
STICKLINE(短酷線1>短酷線2,短酷線1,短酷線2,0,1),COLORYELLOW;
STICKLINE(短酷線1>MAC2,短酷線1,MAC2,1,1),COLORFF00FF;
STICKLINE(短酷線2>MAC1,短酷線2,MAC1,1,1),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.9,0,'廷進作品'),COLOR99EEEE;
一線拼:EMA(短酷線1,1),COLORFFCC00;
IF(一線拼>=REF(一線拼,1),一線拼,DRAWNULL),COLORFF00FF,LINETHICK2;
IF(一線拼<=REF(一線拼,1),一線拼,DRAWNULL),COLORFFCC00,LINETHICK1;
DRAWICON(CROSS(一線拼,低位線),一線拼,17);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背離,0,0.13,3,0),COLORBLUE;
DRAWTEXT(底背離,0.2, '底背離'),COLOR00FF00;