當前位置:首頁 > 旅遊 > 正文

飛龍頂底【主圖指标】

{飛龍頂底【主圖指标】知博陋室自用主圖}

背景色:=DRAWGBK(C>0, RGB(0,0,0),RGB(0,0,3'該數值可以調整'),0,0,0);{淺色背景};

LY:=9;

BL:=36;

CJQS:=XMA(CLOSE,LY);{CJQS:=XMA(CLOSE,LY)}

JBQS:=XMA(CLOSE,BL);{JBQS:=XMA(CLOSE,BL)}

N3:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT);

M3:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT);

外上軌多頭:IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N3,BL/2+1-CURRBARSCOUNT)*1.1)COLORYELLOW,DOTLINE;

外下軌多頭:IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N3,BL/2+1-CURRBARSCOUNT)*0.9)COLOR0099FF,DOTLINE;

内上軌多頭:IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M3,LY/2+1-CURRBARSCOUNT)*1.05)COLOR555555,DOTLINE;

内下軌多頭:IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M3,LY/2+1-CURRBARSCOUNT)*0.95)COLOR555555,DOTLINE;

MA5日攻擊線:MA(C,5)DOTLINE,COLORWHITE;

外上下軌間差額:外上軌多頭-外下軌多頭,NODRAW,COLORRED;

外上下軌間差額%:(外上軌多頭-外下軌多頭)/外上軌多頭*100,NODRAW,COLORCYAN;

預期上漲額_元:外上軌多頭-CLOSE,NODRAW,COLORGREEN;

預留上漲空間%:REF(預期上漲額_元,0)/REF(外上軌多頭,0)*100,NODRAW,COLORCYAN;

預期上漲百分比:=DRAWTEXT_FIX(C!=0,0.75,0.96,0,STRCAT(' 預期上漲百分比 ',STRCAT(CON2STR(預留上漲空間%,2),' % '))),COLOR00FFFF;

平均成本線:COST(50), COLOR0099FF,DOTLINE,NODRAW;

短:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE,NODRAW;

中:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW,NODRAW;

長:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORRED,NODRAW;

超長:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORMAGENTA,NODRAW;

高浪日:=REF(短,1)<2 AND REF(中,1)<2 AND REF(長,1)<2 AND REF(超長,1)<2;

高浪日抄底:=IF(高浪日,1,0),COLORLICYAN,LINETHICK1;

抄底柱體:=STICKLINE(高浪日抄底,20,30,1,0),COLORRED,LINETHICK1;

抄底文字:=DRAWTEXT(高浪日抄底,35,'買入 '),COLORYELLOW,LINETHICK1;

四線歸一:=DRAWICON(短=(0)AND 中=(0)AND 長=(0)AND 超長=(0),3,9);

外上通道空頭:IF(外上軌多頭

外下通道空頭:IF(外下軌多頭

内上通道空頭:IF(内上軌多頭

内下通道空頭:IF(内下軌多頭

頂:=DRAWTEXT(FILTER(EXIST(LONGCROSS(内上軌多頭,外上軌多頭,25),10)AND CROSS(REF(内上軌多頭,1),REF(内上軌多頭,0)),5),H+0.1,'頂')COLORYELLOW;

底:=DRAWTEXT(FILTER(EXIST(LONGCROSS(外下軌多頭,内下軌多頭,25),10)AND CROSS(REF(内下軌多頭,0),REF(内下軌多頭,1)),5),L-0.8,'底')COLORMAGENTA;

外上軌多頭線:DRAWTEXT(ISLASTBAR,外上軌多頭,STRCAT(' ',CON2STR(外上軌多頭,2))),COLOR00FFFF;

外下軌多頭線:DRAWTEXT(ISLASTBAR,外下軌多頭,STRCAT(' ',CON2STR(外下軌多頭,2))),COLOR0099FF;

操盤線13:=MA(C,13)DOTLINE,COLORGREEN;

生命線26:=MA(C,26)COLORGREEN,LINETHICK1;

決策線60:=MA(C,60)COLORMAGENTA,DOTLINE;

年線250:=MA(C,250)COLORLICYAN,POINTDOT;

操盤線:=EMA(EMA(EMA(EMA(MA(C,5),2),1),2),1),COLORLICYAN,LINETHICK1;

多頭操盤:IF(操盤線>REF(操盤線,1),操盤線,DRAWNULL),COLORRED,LINETHICK2;

空頭操盤:IF(操盤線

{現價止盈、止損價位}

現價:=DYNAINFO(7)COLORWHITE,NODRAW;

現價賺6%止盈位:REF(現價*1.06,1)COLORRED,NODRAW;

現價虧3%止損位:REF(現價*0.97,1)COLORGREEN,NODRAW;

{藍色K線系列}

标識0002:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORCYAN;

标識03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORCYAN;

标識04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN;

标識05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORCYAN;

标識06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN;

标識07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORCYAN;

标識08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORCYAN;

标識09:STICKLINE(CLOSE<操盤線 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORCYAN;

标識10:STICKLINE(CLOSE<操盤線 AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORCYAN;

标識11:STICKLINE(CLOSE<操盤線 AND OPEN

标識12:STICKLINE(CLOSE<操盤線 AND OPEN

标識13:STICKLINE(CLOSE<操盤線 AND OPEN

{紅K線系列}

标識14:STICKLINE(CLOSE>操盤線 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;

标識15:STICKLINE(CLOSE>操盤線 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;

标識16:STICKLINE(CLOSE>操盤線 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;

标識17:STICKLINE(CLOSE>操盤線 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;

标識18:STICKLINE(CLOSE>操盤線 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;

标識19:STICKLINE(CLOSE>操盤線 AND 操盤線>REF(操盤線,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;

标識20:STICKLINE(CLOSE>操盤線 AND 操盤線>REF(操盤線,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;

标識22:STICKLINE(CLOSE>操盤線 AND 操盤線>REF(操盤線,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;

标識23:STICKLINE(CLOSE>操盤線 AND 操盤線>REF(操盤線,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;

标識24:STICKLINE(CLOSE>操盤線 AND 操盤線>REF(操盤線,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;

{局部頂底}

N1:=(1,100,10);

N2:=(1,100,10);

DISP:=(1,3,2);

KK:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分鐘}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}

IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10;

PP1:=PEAK(1,KK*N1,1);

PP2:=PEAK(1,KK*N1,2);

WP1:=PEAKBARS(1,KK*N1,1);

WP2:=PEAKBARS(1,KK*N1,2);

T1:=TROUGH(2,KK*N2,1);

T2:=TROUGH(2,KK*N2,2);

WT1:=TROUGHBARS(2,KK*N2,1);

WT2:=TROUGHBARS(2,KK*N2,2);

TJ1:=PP1>T1 AND PP2>T2 ;

ZD:=MAX(T1,T2);

ZG:=MIN(PP1,PP2);

LL:=MIN(T1,T2);

HH:=MAX(PP1,PP2);

TJ2:=FILTER(ZG>ZD,2);

TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));

TJ4:=TJ1&&TJ2&&NOT(TJ3);

TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));

TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));

TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD

TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);

ZSD:=IF(TJ8,ZD,DRAWNULL);

ZSG:=IF(TJ8,ZG,DRAWNULL);

ZSH:=IF(TJ8,HH,DRAWNULL);

ZSL:=IF(TJ8,LL,DRAWNULL);

标識002:=STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;

标識003:=STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA;

标識004:=DRAWTEXT(DISP=2,ZSH,'中樞'),COLORWHITE;

中樞高:=PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CIRCLEDOT,COLORLIRED;

中樞低:=PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CIRCLEDOT,COLORLIGREEN;

中樞最高:=PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED;

中樞最低:=PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN;

趨勢高:=PLOYLINE(DISP=3,ZIG(1,KK*N1)),COLORLIBLUE;

趨勢低:=PLOYLINE(DISP=3,ZIG(2,KK*N2)),COLORLIBLUE;

局部低點預選A:=BACKSET(LLV(L,5)

局部低點預選B:=BACKSET(局部低點預選A=0 AND REF(局部低點預選A,1)=1,2);

局部低點預選C:=IF(局部低點預選B=1 AND REF(局部低點預選B,1)=0,-1,0);

局部高點預選A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);

局部高點預選B:=BACKSET(局部高點預選A=0 AND REF(局部高點預選A,1)=1,2);

局部高點預選C:=IF(局部高點預選B=1 AND REF(局部高點預選B,1)=0,1,0);

缺口判斷:=IF(L>REF(H,1),1,IF(H

距前高天:=BARSLAST(局部高點預選C=1);

距前低天:=BARSLAST(局部低點預選C=-1);

小值周期:=LOWRANGE(L);

大值周期:=TOPRANGE(H);

低保留AA:=IF(局部低點預選C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)

低保留AB:=IF(局部低點預選C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判斷,距前高天)=-1 OR LLV(L,距前低天+2)

低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L

預判:=IF((距前低天<4 AND HHV(缺口判斷,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);

判斷:=IF(局部高點預選C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 預判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期

>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);

高保留A:=IF(局部高點預選C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);

高保留B:=IF(局部高點預選C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判斷,距前低天)=1),1,0);

高保留:=IF((高保留A=1 OR 高保留B=1 OR 判斷=1) AND H>REF(L,距前低天+1),1,0);

預判A:=IF((距前高天<4 AND HHV(缺口判斷,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);

判斷A:=IF(局部低點預選C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 預判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);

低保留A:=IF(局部低點預選C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)

低保留B:=IF(局部低點預選C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判斷,距前高天)=-1 OR 判斷A=-1),-1,0);

低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L

距前高天A:=BARSLAST(高保留=1);

距前低天A:=BARSLAST(低保留=-1);

預判X:=IF((距前低天A<4 AND HHV(缺口判斷,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);

判斷X:=IF(局部高點預選C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 預判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);

高保留XA:=IF(局部高點預選C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);

高保留XB:=IF(局部高點預選C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判斷,距前低天A)=1),1,0);

高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判斷X=1) AND H>REF(L,距前低天A+1),1,0);

預判XA:=IF((距前高天A<4 AND HHV(缺口判斷,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);

判斷XA:=IF(局部低點預選C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 預判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);

低保留XA:=IF(局部低點預選C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)

低保留XB:=IF(局部低點預選C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判斷,距前高天A)=-1 OR 判斷XA=-1),-1,0);

低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L

距前高天YA:=BARSLAST(高保留X=1);

距前低天YA:=BARSLAST(低保留X=-1);

預判YX:=IF((距前低天YA<4 AND HHV(缺口判斷,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);

判斷YX:=IF(局部高點預選C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 預判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND

大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);

高保留YXA:=IF(局部高點預選C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);

高保留YXB:=IF(局部高點預選C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR

HHV(缺口判斷,距前低天YA)=1),1,0);

高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判斷YX=1) AND H>REF(L,距前低天YA+1),1,0);

預判YXA:=IF((距前高天YA<4 AND HHV(缺口判斷,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);

判斷YXA:=IF(局部低點預選C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 預判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1)

AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);

低保留YXA:=IF(局部低點預選C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)

低保留YXB:=IF(局部低點預選C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判斷,距前高天YA)=-1 OR

判斷YXA=-1),-1,0);

低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L

AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L

極點保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);

局部極點:=IF(極點保留=-1,L,IF(極點保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;

局部極點【多】:=DRAWICON(極點保留=-1,L*0.99,9);

局部極點【空】:DRAWICON(極點保留=1,H*1.03,15);

VAR01:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);

中期大底虛線:=LLV(LOW,30),DOTLINE,COLOR888888;

N:=20;M:=30;P1:=80;P2:=100;

{N:=32;M:=16;P1:=90;P2:=85;參數}

{N:=20;M:=30;P1:=80;P2:=100;源碼}

VAR101:=(C+H+O+L)/4;

高抛線:=XMA(VAR101,N)*(1+P1/1000),COLORLICYAN;

低吸線:=XMA(VAR101,M)*(1-P2/1000),COLORLICYAN;

{将賣出與買入二列中的字母XMA改寫成MA——即去除掉MA字母前面的X,就可以

删除掉公式中的未來函數了。而我,則依然願意保留着它。}

幅度:=100*(高抛線-低吸線)/低吸線,NODRAW;

MA1:=MA(VAR101,3);

高抛線1:STICKLINE(高抛線>LOW AND 高抛線

高抛線2:STICKLINE(高抛線>MIN(C,O) AND 高抛線

高抛線3:STICKLINE(高抛線>LOW AND 高抛線

高抛線4:STICKLINE(高抛線

高抛線5:STICKLINE(高抛線

低吸線1:STICKLINE(低吸線>LOW AND 低吸線

低吸線2:STICKLINE(低吸線>MIN(C,O) AND 低吸線

低吸線3:STICKLINE(低吸線>LOW AND 低吸線

低吸線4:STICKLINE(低吸線>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;

低吸線5:STICKLINE(低吸線>HIGH,HIGH,LOW,0,0),COLORMAGENTA;

買:DRAWTEXT(REF(低吸線,0)>=REF(低吸線,1) AND REF(CLOSE,1)<(低吸線) AND FILTERX(CROSS(REF(CLOSE,0),REF(CLOSE,1)),5),LOW*0.95,'買'),COLORRED;

賣:DRAWTEXT(REF(HIGH,1)>REF(高抛線,1)AND FILTER(REF(HIGH,0)<=REF(HIGH,1),5),HIGH*1.02,'賣'),COLORYELLOW;

短期底部0:=LLV(HIGH,30);

短底:=EMA(VAR01,5);

支撐:=HHV(短底,60);

壓力1:=HHV(LOW,20),COLORFAABEC;

壓力:=SMA(LOW,5,1);

中線:=MA(CLOSE,3);

賣出笑臉标識01:=DRAWICON(FILTER(((((HIGH > 支撐) AND (CLOSE < 支撐)) AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),5);

中軌道:=(MA(HIGH,15) * 1.05);

天:=(MA(LOW,15) * 0.985);

地:=(((HIGH + LOW) + CLOSE) / 3);

人:=(MA(LOW,15) * 0.96);

B1:=HHV(地,(4 * 15));

B6:=LLV(地,(4 * 15));

B7:=(B1 - B6);

B8:=(MA(((地 - B6) / B7),2) * 80);

VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200);

飛龍頂底線1:=SMA(VAR1,3,1);

VAR2:=SMA(飛龍頂底線1,3,1);

VAR3:=((3 * 飛龍頂底線1) - (2 * VAR2));

VAR4:=LLV(LOW,5);

VAR5:=HHV(HIGH,5);

VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2);

VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2);

VAR8:=((3 * VAR6) - (2 * VAR7));

VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));

VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));

VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));

VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);

VARD:=((SMA(VARC,3,1) * 1.5) - 100);

VARE:=SMA(VARD,3,1);

VARF:=((3 * VARD) - (2 * VARE));

VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);

VAR11:=EMA(VAR10,13);

VAR12:=STD(VAR10,13);

VAR13:=(((VAR10 - VAR11) * 100) / VAR12);

VAR14:=EMA(VAR13,5);

VAR15:=EMA(VAR14,13);

VAR16:=((EMA(VAR14,13) + 200) - 100);

VAR17:=EMA(VAR16,10);

VAR18:=((3 * VAR16) - (2 * VAR17));

VAR19:=(((飛龍頂底線1 + VAR6) + VARD) + VAR16);

VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17);

VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18);

VAR1C:=(((HIGH + LOW) + CLOSE) / 3);

VAR1D:=((AMOUNT / VOL) / 100);

VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);

VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34)));

VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);

VAR22:=EMA(VAR21,24);

VAR23:=STD(VAR21,24);

VAR24:=(((VAR21 - VAR22) / VAR23) * 100);

VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24)));

VAR26:=EMA(VAR24,5);

VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21)));

VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));

VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4);

VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15);

VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);

VAR2C:=VAR2B;

短線:=MA(VAR2C,26);

MID:=(短線 + (2 * STD(VAR2C,26)));

UPPER:=(短線 - (2 * STD(VAR2C,26)));

LOWER:=IF((VAR2C > 短線),短線,VAR2C);

XY:=MA(CLOSE,5);

M80:=MA(CLOSE,80);

短期底部:=(LLV(HIGH,30) * 0.93);

MA80:=LLV(HIGH,30);

短期底部2:=SMA(CLOSE,2,1);

趨勢:=(MA(LOW,10) * 0.96);

趨:=(EMA(OPEN,107) * 0.897);

超跌位2:=MA(CLOSE,15);

GF:=MA(CLOSE,10);

MAN:=(SMA(HIGH,21,2) * 1.05);

上1:=(HHV(短底,60) * 0.92);

壓力2:=(SMA(HIGH,21,2) * 1.035);

阻擋線:=(SMA(LOW,21,2) * 0.96);

下檔線:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);

RSV:=SMA(下檔線,3,1);

K:=SMA(RSV,3,1);

D:=((3 * RSV) - (2 * K));

J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);

VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);

VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);

VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);

VAR5P:=MA(VAR4P,3);

VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);

RSV12:=SMA(VAR6P,3,1);

K12:=SMA(RSV12,3,1);

D12:=((3 * RSV12) - (2 * K12));

J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);

RSV24:=SMA(J12,3,1);

K24:=SMA(RSV24,3,1);

D24:=((3 * RSV24) - (2 * K24));

J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));

壓力位:=IF(CROSS(D24,D),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D))));

支撐位:=IF((CLOSE >= MA(CLOSE,20)),80,50);

U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);

L2L:=IF(((D < 支撐位) AND (REF(D,1) >= 支撐位)),HHV(REF(HIGH,1),(BARSLAST(((D >= 支撐位) AND (REF(D,1) < 支撐位))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D >= 支撐位) AND (REF(D,1) < 支撐位))) - 1)),BARSLAST(((D < 支撐位) AND REF(D,1)))));

RH1:=IF((HIGH > L2L),LOW,REF(LOW,BARSLAST((HIGH > L2L))));

RH4:=IF((HIGH > L2L),D,REF(D,BARSLAST((HIGH > L2L))));

RH42:=IF((((HIGH > RH1) AND (D < RH4)) AND (D < D24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH1) AND (D < RH4)) AND (D < D24)))));

RH5:=IF(((D > U2L) AND (REF(D,1) <= U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1)))));

RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5))));

RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5))));

RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D > D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24)))));

長期底部:=LLV(HIGH,30);

标識02:DRAWICON(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 長期底部)) AND (LOW <= J24)),20),(LOW - 0.12),1),;

{名稱代碼所屬行業及概念闆塊}

所屬行業:DRAWTEXT_FIX(1,0.02,0.01,0,'所屬行業:'),COLORFF6000;

行業标識:DRAWTEXT_FIX(1,0.059,0.01,0,HYBLOCK),COLORRED;

地域标識:DRAWTEXT_FIX(1,0.095,0.01,0,DYBLOCK),COLORGREEN;

名稱代碼:=STRCAT(STRCAT(STRCAT(STRCAT('名稱: ',STKNAME),' 代碼: '),CODE),' ' );

概念闆塊:=STRCAT('概念闆塊: ',GNBLOCK);

名稱代碼标識:DRAWTEXT_FIX(ISLASTBAR,0.14,0.01,0,STRCAT(名稱代碼,概念闆塊)),COLORYELLOW;

{壓力與支撐}

壓力均線畫線:=HHV(HIGH,30),COLOR666666,DOTLINE;

支撐均線畫線:=LLV(LOW,30),COLOR666666,DOTLINE;

壓力均線30:=HHV(LOW,30),COLORFFCC00,DOTLINE;

支撐均線30:=LLV(HIGH,30),COLORFFCC00,DOTLINE;

向上突破:DRAWICON(FILTERX(CROSS(C,支撐均線30),10),L*0.995,1);

向上突破支撐:=DRAWTEXT(FILTERX(CROSS(C,支撐均線30),10),L*0.98,' 支撐位')COLORRED;

向下突破支撐:DRAWICON(FILTERX(CROSS(壓力均線30,C),10),H*1.03,2);

綠色K線标識:DRAWTEXT_FIX(C!=0,0.02,0.08,0,'綠色K線出現——注意逃頂。'),COLORLICYAN;

紫色K線标識:DRAWTEXT_FIX(C!=0,0.02,0.14,0,'紫色K線出現——準備抄底。'),COLORLICYAN;

紅色箭頭标識:DRAWTEXT_FIX(C!=0,0.02,0.20,0,'紅色箭頭标識——低位支撐短線起漲。'),COLORLICYAN;

綠色箭頭标識:DRAWTEXT_FIX(C!=0,0.02,0.26,0,'綠色箭頭标識——高位遇阻短線回落。'),COLORLICYAN;

錢袋子标識:=DRAWTEXT_FIX(C!=0,0.02,0.38,0,'錢 袋 子 标識 ——極點短線多頭。含未來,僅供參考。'),COLORLICYAN;

快點跑标識:DRAWTEXT_FIX(C!=0,0.02,0.32,0,'快 點 跑 标識 ——極點短線空頭。含未來,僅供參考。'),COLORLICYAN;

提示0:DRAWTEXT_FIX(C!=0,0.13,0.08,0,' 設:單筆交易單位 3萬元, 止損 -3%,風險收益比 ≥ 1 : 2 (外上下軌間差額百分比為 1 : 6 ) 。 '),COLORRED;

提示00:DRAWTEXT_FIX(C!=0,0.13,0.14,0,' 倉位控制:外下軌上行時,可重倉,亦可滿倉。外下軌下行時,需輕倉,亦可空倉持币觀望 。 '),COLORGREEN;

{個股類别}

BK1:=STRCAT(STRSPACE(DYBLOCK),HYBLOCK);

BK2:=STRCAT(STRSPACE(BK1),GNBLOCK);

BK3:=STRCAT(STRSPACE(BK2),FGBLOCK);

BK4:=STRCAT(STRSPACE(BK3),ZHBLOCK);

個股類别:DRAWTEXT_FIX(1,0.01,1,0,BK4),COLORRED;

{SAR指标}

持倉:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL)COLORRED;

空倉:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL)COLORGREEN;

BS:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW;

SAR持倉标識:DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20)-0.3,'●')COLOR0099FF;

SAR空倉标識:DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20)+0.3,'●')COLOR33FF00;

你可能想看:

有話要說...

取消
掃碼支持 支付碼