(飛揚(yáng))} input:N1(12,1,100); DRAWGBK(CLOSE<HHV(HIGH,0),COLORRGB(60,15,35),COLORRGB(50,50,90),1); A1:=EMA((2*CLOSE+HIGH+LOW)/4,N1); A2:=EMA(A1,2); A3:=EMA(A2,2); A4:=EMA(A3,2); A5:=EMA(A4,2); A6:=EMA(A5,2); A7:=EMA(A6,2); A8:=EMA(A7,2); A9:=EMA(A8,2); A10:=EMA(A9,2); A11:=EMA(A10,2); A12:=EMA(A11,2); A13:=EMA(A12,2); A14:=EMA(A13,2); A15:=EMA(A14,2); FILLRGN(A1>A15,A1,A15),LINETHICK3,colorFF; STICKLINE(A1>A15,A1,A15,1,0),POINTDOT,LINETHICK1,colorFF0000; 下線1:HHV(FORCAST(CLOSE,10),18),colorE66878; 下線2:HHV(FORCAST(CLOSE,10),14),colorF0F000; 下線3:HHV(FORCAST(CLOSE,10),10),colorFFFF; 下線4:HHV(FORCAST(CLOSE,10),6),colorFF00; 上線:FORCAST(CLOSE,10),LINETHICK1,colorFF; X1:=REF(HIGH,1)-REF(HIGH,2)>=REF(HIGH,1)*1.03; X2:=CLOSE/OPEN>1.05 AND CLOSE-REF(CLOSE,1)>=X1; X3:=X2+REF(CLOSE,1); DRAWTEXT(X2 AND X3,HIGH+0.09,'∨'),colorFF00; LC:=REF(CLOSE,1); RSI:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100; DRAWICON(CROSS(RSI,11),LOW*0.99,10),ALIGN1; STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.1,0),colorFF; STICKLINE(CLOSE>OPEN,OPEN,LOW,0.1,0),colorFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),LINETHICK2,color5050FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),color5050FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.6,0),color5F5FFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),color5F5FFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0),color6C6CFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),color6C6CFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),color7E7EFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),color7E7EFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0),color9D9DFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),color9D9DFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),colorAFAFFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),colorAFAFFF; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.2,0),colorC1C1FF; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.5,0),colorC1C1FF; STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,3,0),color9900; STICKLINE(CLOSE<OPEN,CLOSE,HIGH,0.1,0),colorFF8A85; STICKLINE(CLOSE<OPEN,OPEN,LOW,0.1,0),colorFF8A85; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,5,0),LINETHICK2,color8200; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,4,0),color138B13; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,0),color279227; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),color419D41; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),color62AB62; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),color80B980; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),color90BE90; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1,0),color9FC49E; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.5,0),colorB1CCB1; A11:=MA(WINNER(CLOSE),9)*100; B11:=CROSS(A11,1.8); D11:=B11>0; DRAWTEXT(D11,LOW-0.1,'┻'),colorFFFF; LC:=REF(CLOSE,1); RSI:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100; E1:=CROSS(83,RSI); DRAWTEXT(E1,HIGH+0.15,'Ⅹ'),colorFFAAFF; 系統(tǒng)成本:=COST(50); 起步成本:=COST(10); 當(dāng)日換手:=((VOL / CAPITAL) * 100); 十日換手:=SUM(當(dāng)日換手,10); 百日換手:=SUM(當(dāng)日換手,100); LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 跑了不悔:=if(CROSS(84,RSI),HIGH*1.02,high+1),PRECISION2,linethick0,COLORWHITE; CB1:=EMA(COST(5),5); CB2:=EMA(COST(13),5); CB3:=EMA(COST(34),5); CB4:=llv(CB1,34); CB5:=llv(CB2,34); CB6:=llv(CB3,34); CB7:=EMA(C,5); CB8:=llv(CB7,34); {成本} 一關(guān):=IF(CB1>CB4,CB1,CB4); 二關(guān):=IF(CB2>CB5,CB2,CB5); 三關(guān):=IF(CB3>CB6,CB3,CB6); 沖關(guān):=IF(CB7>CB8,CB7,CB8); p:=SYSPARAM(1); DRAWTEXTEX(系統(tǒng)成本,1,1, 50,'系統(tǒng)成本 '+NUMTOSTR(系統(tǒng)成本[p],2)+' 元'),COLORWHITE; DRAWTEXTEX(起步成本,1,1,150,'起步成本 '+NUMTOSTR(起步成本[p],2)+' 元'),COLORYELLOW; DRAWTEXTEX(當(dāng)日換手,1,1,250,'當(dāng)日換手 '+NUMTOSTR(當(dāng)日換手[p],2)+' %'),COLORMAGENTA; DRAWTEXTEX(十日換手,1,1,350,'十日換手 '+NUMTOSTR(十日換手[p],2)+' %'),COLORGREEN; DRAWTEXTEX(百日換手,1,1,450,'百日換手 '+NUMTOSTR(百日換手[p],2)+' %'),COLORWHITE; DRAWTEXTEX(跑了不悔,1,200, 50,'跑了不悔 '+NUMTOSTR(跑了不悔[p],2)+' 元'),COLORWHITE; DRAWTEXTEX(一關(guān),1,200,150,'一關(guān) '+NUMTOSTR(一關(guān)[p],2)+' 元'),COLORYELLOW; DRAWTEXTEX(二關(guān),1,200,250,'二關(guān) '+NUMTOSTR(二關(guān)[p],2)+' 元'),COLORMAGENTA; DRAWTEXTEX(三關(guān),1,200,350,'三關(guān) '+NUMTOSTR(三關(guān)[p],2)+' 元'),COLORGREEN; DRAWTEXTEX(沖關(guān),1,200,450,'沖關(guān) '+NUMTOSTR(沖關(guān)[p],2)+' 元'),COLORWHITE; {} jQCB:=EMA(C,3); DScj1:=PEAKBARS(3,5,1); DScj2:=TROUGHBARS(3,5,1); DScj3:=PEAKBARS(2,5,1); 峰號(hào):=DATACOUNT-DScj1[DATACOUNT]; 谷號(hào):=DATACOUNT-DScj2[DATACOUNT]; 點(diǎn)石0:=MA(LLV(jQCB,3),DScj2+1); 成金0:=MA(HHV(jQCB,1),DScj3+1); 壓力0:=MA(WMA(h,2),DScj1+1); DRAWICON(BARPOS=峰號(hào),H*1.02,12);//預(yù)警信號(hào) DRAWICON(BARPOS=谷號(hào),L*0.98,10);//預(yù)警信號(hào) DRAWNUMBER(BARPOS=峰號(hào),H*1.02,jQCB,2),PXUP26,ALIGN,COLORWHITE,SHIFT1; DRAWNUMBER(BARPOS=谷號(hào),L*0.98,jQCB,2),PXUP26,ALIGN,COLORBROWN,SHIFT1; DRAWTEXT(BARPOS=峰號(hào),H*1.02,'▼'),ALIGN,ColorFF9700,SHIFT1; DRAWTEXT(BARPOS=谷號(hào),L*0.98,'▲'),ALIGN,COLORRED,SHIFT1; //DRAWTEXT(BARPOS=SYSPARAM(2),C,'■預(yù)警信號(hào) -- 信號(hào)燈(不可操作!)'),align4,PXDN6,COLORWHITE; asv:=DScj3>0 and CROSS(成金0,ref(成金0,1)); asw:=BARSLAST(BARPOS=谷號(hào))>0; DRAWNUMBER(asv and asw,L*0.98,jQCB,2),ALIGN,Color0089FF; DRAWTEXT(asv and asw,L*0.98,'▲'),PXUP26,ALIGN,Color0089FF; // var31:=hhvbars(zig(3, 19)>ref(zig(3,19),1) and ref(zig(3,19), 1)<ref(zig(3,19), 2),0); stickline(var31=2,l*0.95,l*0.98,8,0),color0000ff; drawtext(var31=2,l*0.95,'3天'),coloryellow; stickline(var31=4,h*1.05,h*1.02,8,0),color9966ff; drawtext(var31=4,h*1.06,'5天'),coloryellow; stickline(var31=7,l*0.95,l*0.98,8,0),color00ffff; drawtext(var31=7,l*0.95,'8天'),coloryellow; stickline(var31=12,h*1.05,h*1.02,8,0),colorff33ff; drawtext(var31=12,h*1.06,'13天'),coloryellow; stickline(var31=20,l*0.95,l*0.98,8,0),color0066ff; drawtext(var31=20,l*0.95,'21天'),coloryellow; stickline(var31=33,h*1.05,h*1.02,8,0),colorffff00; drawtext(var31=33,h*1.06,'34天'),coloryellow; stickline(var31=54,l*0.95,l*0.98,8,0),color006600; drawtext(var31=54,l*0.95,'55天'),coloryellow; stickline(var31=88,h*1.05,h*1.02,8,0),color00ff00; drawtext(var31=88,h*1.06,'89天'),coloryellow; stickline(var31=143,l*0.95,l*0.98,8,0),colorccffff; drawtext(var31=143,l*0.95,'144天'),coloryellow; stickline(var31=232 ,h*1.05,h*1.02,8,0),colorff0033; drawtext(var31=232,h*1.06,'233天'),coloryellow; stickline(var31=376,l*0.95,l*0.98,8,0),colorff9966; drawtext(var31=376,l*0.95,'377天'),coloryellow;
感謝創(chuàng)幻各位大師的奉獻(xiàn),學(xué)習(xí)了一段時(shí)間,我把幾位大師的精華組合成了自用主圖,大家參考的用,還需配合趨勢(shì)和量能的副圖指標(biāo).自己測(cè)試無未來,請(qǐng)各位大師驗(yàn)證.哪位有進(jìn)一步優(yōu)化的請(qǐng)告知.(都是在創(chuàng)幻下的源碼,如有冒犯原作者,敬請(qǐng)?jiān)? 主要用法: 1.粗的紅藍(lán)線為多空線,上下交叉為多空趨勢(shì)轉(zhuǎn)換; 2.粗的黃線為強(qiáng)勢(shì)線,一般做站在強(qiáng)勢(shì)線上的股票; 3.K線白/黃或紫為走強(qiáng)或突破或走弱信號(hào); 4.紅與綠的虛線為止損和出局; 5.參考買入的信號(hào)有陳琛老師的和金印,賣出有黃點(diǎn).還需觀察多空線的運(yùn)行趨勢(shì);(趨勢(shì)看日線,買入看30或60分線,動(dòng)蕩勢(shì)賣出看15分線)
僅供參考! 其他請(qǐng)各位自己體會(huì).本人上周運(yùn)用指標(biāo),成功買賣了000661和000898; 我不會(huì)貼圖,那位大師下載了,覺得好可以幫忙貼一圖;
{自用主圖} 系統(tǒng)成本:COST(50),LINETHICK0,colorcyan; 起步成本:COST(10),LINETHICK0,colorred; 當(dāng)日換手:((VOL / CAPITAL) * 100),LINETHICK0; 十日換手:SUM(當(dāng)日換手,10),LINETHICK0; 百日換手:SUM(當(dāng)日換手,100),LINETHICK0;
LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 跑了不悔:if(CROSS(84,RSI),HIGH*1.02,high+1),pointdot,linethick7,COLORYELLOW; high+1,pointdot,linethick7,COLOR000000;
EMA5:EMA(C,5);EMA34:EMA(C,34); KS:=(1-C/SMA(C,13,1))*100;RKS:=REF(KS,1); MLS:=RKS/KS>1.23 AND RKS>10 AND C/REF(C,1)>1.02; 超跌:STICKLINE(KS>=10,H,L,0,1),colorCYAN,linethick3; 反彈:STICKLINE(MLS=1,H,L,0,1),colormagenta,linethick2; 牛線:EMA(C,13),colorred,linethick2; 熊線:EMA(KS*C/100+牛線,3),colorblue,linethick2;
啟動(dòng)線:=(SUM(EMA((C+L)/2,2)/2.98,3)); 強(qiáng)弱線:=EMA(啟動(dòng)線,21); Var1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1; Var2:=if((EMA((C+L)/2,3)-Var1)*5>0,POW((EMA((C+L)/2,3)-Var1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-Var1)*5,2)/10); Var3:=IF(Var2>0,Var2-0,0); DRAWTEXT(CROSS(Var3,0) AND (C+L)/2>MA((C+L)/2,8),強(qiáng)弱線*1.01,'注控'),LINETHICK2,ALIGN1,COLORFFFFFF;
QH:=REF(H,2); QL:=REF(L,2); QO:=REF(O,2); QC:=REF(C,2); ZO:=REF(O,1); ZC:=REF(C,1); JYZHK:= ABS(QO-QC)/QO<0.02 AND ZO/ZC>1.02 AND ABS(O-C)/O<0.02 AND C>MA(C,30); JYZHV:=V<REF(V,1) ; JYZH:=JYZHK AND JYZHV; DRAWTEXT(JYZH,L,'金印'),COLORcyan;
{DRAWGBK(C,COLORRGB(10,0,0),COLORRGB(10,0,0),1);} {-----------------------☆功能開關(guān)------------------------} {K線} aa1:=wma(c,2); bb1:=ema(aa1,2); a0:=ma(bb1,3); aa2:=wma((h+c+o)/3,18); dd3:=a0>=aa2 and c>aa2; dd4:=a0<aa2 ; dd5:=a0>aa2 ; cc1:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004; cc2:=cross(c,cc1) and cc1>ref(cc1,1); {逃頂-止損} Zb1:=HHV(L,20); xx1 := MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L)); xx2 :=ma(Xx1,13); xx3 :=ref(C,1)-ref(Xx2,1); xx4 :=hhv(Xx3,20); {成本} 強(qiáng)弱分界:ema(cost(85),10),PRECIS2,LINEthick2,COLORyellow; CB1:=EMA(COST(5),5); CB2:=EMA(COST(13),5); CB3:=EMA(COST(34),5); CB4:=llv(CB1,34); CB5:=llv(CB2,34); CB6:=llv(CB3,34); CB7:=EMA(C,5); CB8:=llv(CB7,34);
{K線} STICKLINE((dd4 or dd5) and o<=c ,h,l,0.5,0),Color00cc99; STICKLINE((dd4 or dd5) and o<=c ,c,o,7,0),Color00cc99; STICKLINE((dd4 or dd5) and o>=c ,h,l,0.5,0),Color3F8C3A; STICKLINE((dd4 or dd5) and o>=c ,c,o,7,0),Color3F8C3A; STICKLINE((dd3 or c>aa2) and o<=c,c,o,7,0),Colorred; STICKLINE((dd3 or c>aa2) and o<=c,h,l,0.5,0),Colorred; STICKLINE((dd3 or c>aa2) and o>=c,c,o,7,0),Colorff33ff; STICKLINE((dd3 or c>aa2) and o>=c,h,l,0.5,0),Colorff33ff; STICKLINE(cc2,h,l,0.5,0),colorwhite; STICKLINE(cc2,o,c,7,0),colorwhite; STICKLINE(MA(C,13)>O and C>MA(C,13) and O<c,O,C,8,0),coloryellow; STICKLINE(MA(C,13)>O and C>MA(C,13),H,L,0.5,0),coloryellow;
{逃頂-止損} partline(zb1,Zb1=ref(Zb1,1),rgb(255,0,0)),DOTLINE; PARTLINE(XX4,xx4=ref(xx4,1),RGB(0,255,0)),DOTLINE;
{成本} 一關(guān):IF(CB1>CB4,CB1,CB4),PRECIS2,linethick0,COLORBLUE; 二關(guān):IF(CB2>CB5,CB2,CB5),PRECIS2,linethick0,COLORGREEN; 三關(guān):IF(CB3>CB6,CB3,CB6),PRECIS2,linethick0,COLORMAGENTA; 沖關(guān):IF(CB7>CB8,CB7,CB8),PRECIS2,COLORWHITE;
未來函數(shù)只是參考看看的,指標(biāo)線和買賣點(diǎn)沒有未來.
|
{飛狐} {自用主圖} 系統(tǒng)成本:COST(50),LINETHICK0,colorcyan; 起步成本:COST(10),LINETHICK0,colorred; 當(dāng)日換手:((VOL / CAPITAL) * 100),LINETHICK0; 十日換手:SUM(當(dāng)日換手,10),LINETHICK0; 百日換手:SUM(當(dāng)日換手,100),LINETHICK0;
LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 跑了不悔:if(CROSS(84,RSI),HIGH*1.02,high+1),pointdot,linethick7,COLORYELLOW; high+1,pointdot,linethick7,COLOR000000;
EMA5:EMA(C,5);EMA34:EMA(C,34); KS:=(1-C/SMA(C,13,1))*100;RKS:=REF(KS,1); MLS:=RKS/KS>1.23 AND RKS>10 AND C/REF(C,1)>1.02; 超跌:STICKLINE(KS>=10,H,L,0,1),colorCYAN,linethick3; 反彈:STICKLINE(MLS=1,H,L,0,1),colormagenta,linethick2; 牛線:EMA(C,13),colorred,linethick2; 熊線:EMA(KS*C/100+牛線,3),colorblue,linethick2;
啟動(dòng)線:=(SUM(EMA((C+L)/2,2)/2.98,3)); 強(qiáng)弱線:=EMA(啟動(dòng)線,21); Var1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1; Var2:=if((EMA((C+L)/2,3)-Var1)*5>0,POW((EMA((C+L)/2,3)-Var1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-Var1)*5,2)/10); Var3:=IF(Var2>0,Var2-0,0); DRAWTEXT(CROSS(Var3,0) AND (C+L)/2>MA((C+L)/2,8),強(qiáng)弱線*1.01,'注控'),LINETHICK2,ALIGN1,COLORFFFFFF;
QH:=REF(H,2); QL:=REF(L,2); QO:=REF(O,2); QC:=REF(C,2); ZO:=REF(O,1); ZC:=REF(C,1); JYZHK:= ABS(QO-QC)/QO<0.02 AND ZO/ZC>1.02 AND ABS(O-C)/O<0.02 AND C>MA(C,30); JYZHV:=V<REF(V,1) ; JYZH:=JYZHK AND JYZHV; DRAWTEXT(JYZH,L,'金印'),COLORcyan;
{DRAWGBK(C,COLORRGB(10,0,0),COLORRGB(10,0,0),1);} {-----------------------☆功能開關(guān)------------------------} {K線} aa1:=wma(c,2); bb1:=ema(aa1,2); a0:=ma(bb1,3); aa2:=wma((h+c+o)/3,18); dd3:=a0>=aa2 and c>aa2; dd4:=a0<aa2 ; dd5:=a0>aa2 ; cc1:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004; cc2:=cross(c,cc1) and cc1>ref(cc1,1); {逃頂-止損} Zb1:=HHV(L,20); xx1 := MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L)); xx2 :=ma(Xx1,13); xx3 :=ref(C,1)-ref(Xx2,1); xx4 :=hhv(Xx3,20); {成本} 強(qiáng)弱分界:ema(cost(85),10),precision2,LINEthick2,COLORyellow; CB1:=EMA(COST(5),5); CB2:=EMA(COST(13),5); CB3:=EMA(COST(34),5); CB4:=llv(CB1,34); CB5:=llv(CB2,34); CB6:=llv(CB3,34); CB7:=EMA(C,5); CB8:=llv(CB7,34);
{K線} STICKLINE((dd4 or dd5) and o<=c ,h,l,0.5,0),Color00cc99; STICKLINE((dd4 or dd5) and o<=c ,c,o,7,0),Color00cc99; STICKLINE((dd4 or dd5) and o>=c ,h,l,0.5,0),Color3F8C3A; STICKLINE((dd4 or dd5) and o>=c ,c,o,7,0),Color3F8C3A; STICKLINE((dd3 or c>aa2) and o<=c,c,o,7,0),Colorred; STICKLINE((dd3 or c>aa2) and o<=c,h,l,0.5,0),Colorred; STICKLINE((dd3 or c>aa2) and o>=c,c,o,7,0),Colorff33ff; STICKLINE((dd3 or c>aa2) and o>=c,h,l,0.5,0),Colorff33ff; STICKLINE(cc2,h,l,0.5,0),colorwhite; STICKLINE(cc2,o,c,7,0),colorwhite; STICKLINE(MA(C,13)>O and C>MA(C,13) and O<c,O,C,8,0),coloryellow; STICKLINE(MA(C,13)>O and C>MA(C,13),H,L,0.5,0),coloryellow;
{逃頂-止損} partline(Zb1=ref(Zb1,1),zb1),linedot,colorred; PARTLINE(xx4=ref(xx4,1),xx4),linedot,colorgreen;
{成本} 一關(guān):IF(CB1>CB4,CB1,CB4),precision2,linethick0,COLORBLUE; 二關(guān):IF(CB2>CB5,CB2,CB5),precision2,linethick0,COLORGREEN; 三關(guān):IF(CB3>CB6,CB3,CB6),precision2,linethick0,COLORMAGENTA; 沖關(guān):IF(CB7>CB8,CB7,CB8),precision2,COLORWHITE;
{K線} AA1:=EMA(C,2); BB1:=EMA(AA1,2); A0:=MA(BB1,3); AA2:=EMA((H+C+O)/3,18); DD3:=A0>=AA2 AND C>AA2; DD4:=A0<AA2 ; DD5:=A0>AA2 ; CC1:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004; CC2:=CROSS(C,CC1) AND CC1>REF(CC1,1); {逃頂-止損} ZB1:=HHV(L,20); XX1 := MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L)); XX2 :=MA(XX1,13); XX3 :=REF(C,1)-REF(XX2,1); XX4 :=HHV(XX3,20); {多數(shù)成本} 強(qiáng)弱分界:EMA(COST(85),10),COLORRED; {成本} CB1:=EMA(COST(5),5); CB2:=EMA(COST(13),5); CB3:=EMA(COST(34),5); CB4:=LLV(CB1,34); CB5:=LLV(CB2,34); CB6:=LLV(CB3,34); CB7:=EMA(C,5); CB8:=LLV(CB7,34); {-----------------【圖解模板】---------------------} {K線} STICKLINE((DD4 OR DD5) AND O<=C ,H,L,0,0),COLOR00CC99; STICKLINE((DD4 OR DD5) AND O<=C ,C,O,3,0),COLOR00CC99; STICKLINE((DD4 OR DD5) AND O>=C ,H,L,0,0),COLOR3F8C3A; STICKLINE((DD4 OR DD5) AND O>=C ,C,O,3,0),COLOR3F8C3A; STICKLINE((DD3 OR C>AA2) AND O<=C,C,O,3,0),COLORRED; STICKLINE((DD3 OR C>AA2) AND O<=C,H,L,0,0),COLORRED; STICKLINE((DD3 OR C>AA2) AND O>=C,C,O,3,0),COLORFF33FF; STICKLINE((DD3 OR C>AA2) AND O>=C,H,L,0,0),COLORFF33FF; STICKLINE(CC2,H,L,0,0),COLORWHITE; STICKLINE(CC2,O,C,3,0),COLORWHITE; STICKLINE(MA(C,13)>O AND C>MA(C,13) AND O<C,O,C,3,0),COLORYELLOW; STICKLINE(MA(C,13)>O AND C>MA(C,13),H,L,0,0),COLORYELLOW; {逃頂-止損} IF(ZB1=REF(ZB1,1),ZB1,DRAWNULL),POINTDOT,COLORYELLOW; IF(XX4=REF(XX4,1),XX4,DRAWNULL),POINTDOT,COLORCYAN; 一關(guān):IF(CB1>CB4,CB1,CB4),COLORBLUE; 二關(guān):IF(CB2>CB5,CB2,CB5),COLORGREEN; 三關(guān):IF(CB3>CB6,CB3,CB6),COLORMAGENTA; 沖關(guān):IF(CB7>CB8,CB7,CB8),COLORWHITE;
|