以下是线上高抛低吸副图指标源码和截图
线上高抛低吸副图指标源码:
DRAWGBK(C 0,RGB(50,60,250),RGB(17,21,89),0,'11',0);//做T参考高抛低吸
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8,colorgreen;
支撑:=L1+P1*0.5/8,colorred;
:=(支撑+阻力)/2,colorwhite,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
线:EMA(V11,3),LINETHICK2,colorlimagenta;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备买入:STICKLINE(趋势线 11,趋势线,11,5,0),coloryellow;
AA:=(趋势线 11)ANDFILTER((趋势线 =11),15)ANDC
BB0:=REF(趋势线,1) 11ANDCROSS(趋势线,11)ANDC
BB1:=REF(趋势线,1) 11ANDREF(趋势线,1) 6ANDCROSS(趋势线,11);
BB2:=REF(趋势线,1) 6ANDREF(趋势线,1) 3ANDCROSS(趋势线,6);
BB3:=REF(趋势线,1) 3ANDREF(趋势线,1) 1ANDCROSS(趋势线,3);
BB4:=REF(趋势线,1) 1ANDREF(趋势线,1) 0ANDCROSS(趋势线,1);
BB5:=REF(趋势线,1) 0ANDCROSS(趋势线,0);
BB:=BB1=1ORBB2=1ORBB3=1ORBB4=1ORBB5=1;
下单买入:STICKLINE(BB=1ANDC 中线,11,50,3,0),colorred;
DRAWICON(BB=1ANDC 中线,55,1);
DRAWTEXT(BB0,60,'★买'),colorred;
DRAWTEXT(AA,16,'准备买入'),coloryellow;
准备卖出:STICKLINE(趋势线 89,趋势线,89,5,0),colorwhite;
CC:=(趋势线 89)ANDFILTER((趋势线 89),15)ANDC
DD0:=REF(趋势线,1) 89ANDCROSS(89,趋势线)ANDC
DD1:=REF(趋势线,1) 89ANDREF(趋势线,1) 94ANDCROSS(89,趋势线);
DD2:=REF(趋势线,1) 94ANDREF(趋势线,1) 97ANDCROSS(94,趋势线);
DD3:=REF(趋势线,1) 97ANDREF(趋势线,1) 99ANDCROSS(97,趋势线);
DD4:=REF(趋势线,1) 99ANDREF(趋势线,1) 100ANDCROSS(99,趋势线);
DD:=DD1=1ORDD2=1ORDD3=1ORDD4=1ORDD5=1;
下单卖出:STICKLINE(DD=1ANDC 中线,89,50,3,0),colorgreen;
DRAWICON(DD=1ANDC 中线,45,2);
DRAWTEXT(DD0,40,'★卖'),colorgreen;
DRAWTEXT(CC,84,'准备卖出'),colorwhite;
顶:89,colorgreen;
底:11,colorred;
中:50,POINTDOT,colorwhite;
DRAWTEXT(ISLASTBAR,顶,'顶'),colorgreen;
DRAWTEXT(ISLASTBAR,底,'底'),colorred;
DRAWTEXT(ISLASTBAR,中,'中'),colorwhite;
VAR1:=6;
VAR2:=4;
VAR3:=13;
VAR4:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR5:=WMA(VOL,VAR3);
VAR6:=WMA(AMOUNT,VAR3);
VAR7:=VAR6/VAR5/100;
VAR8:=(VAR4-VAR7)/VAR7*100;
短底:VAR8 (-6),NODRAW,COLORWHITE;
中底:VAR8 (-10),NODRAW,COLORYELLOW;
大底:VAR8 (-14),NODRAW,COLORCYAN;
绝对底:VAR8 (-18),NODRAW,COLORRED;
STICKLINE(VAR8 0-18,30,40,0.51,0),COLORRED;
STICKLINE(VAR8 0-14,20,30,0.51,0),COLORCYAN;
STICKLINE(VAR8 0-10,10,20,0.51,0),COLORYELLOW;
STICKLINE(VAR8 0-6,0,10,0.51,0),COLORWHITE;
风险线上高抛:80,DOTLINE,COLORGREEN;
机会线下低吸:20,DOTLINE,COLORCYAN;
VAR9:=LLV(LOW,VAR1);
VAR10:=HHV(HIGH,VAR1);
VAR11:=WMA((VAR4-VAR9)/(VAR10-VAR9)*100,VAR2);
DRAWNUMBER(VAR11 =80,80,BARSLASTCOUNT(VAR11 =80));
慢线:WMA(0.667*REF(VAR11,1)+0.333*VAR11,2),DOTLINE,COLORYELLOW;
VAR12:=REF(VAR11,1) 80ORVAR11
VAR13:=REF(VAR11,1) 30ORVAR11
DRAWICON(CROSS(慢线,VAR11)ANDVAR12,50,2);
DRAWICON(CROSS(VAR11,慢线)ANDVAR13,50,1);
趋势线:VAR11,COLORMAGENTA;
IF(VAR11 =REF(VAR11,1),VAR11,DRAWNULL),COLORRED,LINETHICK2;
探底线:20,COLORRED;
减仓线:320,COLORGREEN;
VAR2A:=LLV(LOW,10);
VAR3A:=HHV(HIGH,27);
趋势线:EMA((CLOSE-VAR2A)/(VAR3A-VAR2A)*4,5)*100,COLORWHITE;
DRAWTEXT(CROSS(趋势线,探底线),70,'底');
DRAWTEXT(CROSS(趋势线,减仓线),280,'减磅'),COLORGREEN;
DRAWICON(CROSS(趋势线,减仓线),340,2);
DRAWICON(CROSS(趋势线,探底线),25,1);
顶部:350,COLORFF00FF,LINETHICK2;
VAR2:=IF(MONTH 12,1,1);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK2,COLORRED;
:=EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK1,COLORFF9933;
买入脉冲:IF(CROSS(主力,散户)AND主力 16,80,5),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(主力,散户)AND主力 16,80,'买入'),COLORRED;
线上高抛低吸副图指标截图