STICKLINE(A1>A2 AND F>2.9 AND F<5,A2+(A1-A2)/3,A2+(A1-A2)/3,1,0),coloryellow;
STICKLINE(A1>A2 AND F>2.9 AND F<5,A2+2*(A1-A2)/3,A2+2*(A1-A2)/3,1,0),coloryellow;
STICKLINE(A1>A2 AND F>=5 AND F<7,A2+(A1-A2)/2,A2+(A1-A2)/2,1,0),coloryellow;
STICKLINE(A1>A2 AND F>=7 AND F<10,A2+2*(A1-A2)/3,A2+(A1-A2)/3,1,1),coloryellow;
STICKLINE(F>5,C,O,2.2,0),COLORFFFFFF;
STICKLINE(H>REF(C,1)*1.032,(O+C)/2,H,0.1,0),coloryellow;
DRAWNUMBER(CCI<-100 AND CCI>-128 AND REF(CCI,1)<-128,L/1.01, INTPART(CCI)),COLOR8888FF;
IF(HOUR=15,H*1.008,DRAWNULL),POINTDOT,COLOR000FFF,LINETHICK5;
IF(HOUR=15,H*1.005,DRAWNULL),POINTDOT,COLORFFF000,LINETHICK9;
IF(HOUR=15,H*1.005,DRAWNULL),POINTDOT,COLOR000FFF,LINETHICK5;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
買:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(買=1,5),LOW-0.05,'↖買進'),coloryellow;
STICKLINE(買,OPEN,CLOSE,2,0),coloryellow;
{IF(HOUR!=0,REF('CC半.CC半#DAY',1),DRAWNULL),COLOROOAAAA;
CC半:'CC半.RCC半#DAY';}
{前二日底:IF(C>0,IF(HOUR!=0,'前二日底.前二日底#DAY',DRAWNULL),DRAWNULL),COLOR00FF00;};
F1:=100*(C-REF(C,1))/REF(C,1);
HT:=(H>REF(C,1)*1.032) AND C>=O ;
BZ1A:=HT AND H>REF(H,2);
BZ1:=BZ1A AND COUNT(BZ1A,3)=1;
一字:=C=O AND C=L AND C=H AND F1>9.4;
BZ2:=((BZ1 AND REF(BZ1,1)=0) OR REF(一字,1)=1) AND 一字=0;
DRAWTEXT(BZ2,L*0.99,'標'),coloryellow;
第二、量化趨勢主圖指標公式
A1A:=EMA(CLOSE, 9);
A1B:=((A1A - EMA(CLOSE, 5)) < 0);
A1C:=((A1A - EMA(CLOSE, 5)) > 0);
A1D:=BARSLAST(A1B);
A1E:=BARSLAST(A1C);
A1F:=IF((A1E > 0),(CLOSE - REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,0);
A20:=SUM(A1F,0);
A21:=IF((A1D > 0),(0 - 2),0);
A22:=IF((A1E > 0),SUM((CLOSE - REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,A1E),0);
A23:=A22 / A1E;
A25:=EMA(EMA(EMA(CLOSE, 3), 3), 3);
上升通道:((A25 - REF(A25, 1)) + A25),colorred;
反轉(zhuǎn)通道:MA(上升通道, 15),colorgreen;
IF(上升通道>REF(上升通道,1),上升通道,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT;
IF(反轉(zhuǎn)通道>REF(反轉(zhuǎn)通道,1),反轉(zhuǎn)通道,DRAWNULL),COLOR00FFFF,LINETHICK4,POINTDOT;
STICKLINE((上升通道 > 反轉(zhuǎn)通道),反轉(zhuǎn)通道,上升通道, 1, 0),colormagenta;
STICKLINE((反轉(zhuǎn)通道 > 上升通道),上升通道,反轉(zhuǎn)通道, 1, 0),COLORFF0000;
DRAWTEXT(CROSS(反轉(zhuǎn)通道,上升通道),上升通道 * 1.08,'下降趨勢'),COLOR00FF00;
DRAWTEXT(CROSS(上升通道,反轉(zhuǎn)通道),反轉(zhuǎn)通道 * 0.97,'上升趨勢'),COLOR0000FF;
DRAWICON(((REF(A21, 1) = (0 - 2)) AND (A21 = 0)),LOW, 5);
DRAWICON(((REF(A1E, 1) > 0) AND (A1E = 0)),HIGH, 6);
第三、纏論背馳指標公式
DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,0,0.08,6,0),coloryellow;
DRAWTEXT(低位金叉,0.16,' 低位金叉'),colorwhite;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,1) ;
DRAWTEXT(二次金叉,0.2,' 二次金叉'),coloryellow;
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.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背離,DEA,0),colorred,LINETHICK4;
DRAWTEXT(底背離,0.12,' 底背離'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF);
頂背:DRAWLINE(A2=0,DEA,頂背離,DEA,0),colorgreen,LINETHICK4;
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背離,0.25,'三全項'),COLOR0000FF,LINETHICK2;
以上就是我今天分享的所有東西,想互相交流學的可以直接在評論區(qū)留下你的想法??吹胶笪揖蜁貜汀=裉鞗]有去添加圖片,自己工作有點忙。大家不會的就說。因為有時候只能做到這里了。希望對大家有幫助!