大智慧粘合突破副图指标
源码
{粘合突破}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA40:=MA(C,40);
ma60:=MA(C,60);
MA90:=MA(CLOSE,90);
ma120:=MA(C,120);
ma250:=MA(C,250);
年相对价位:=100*(CLOSE-REF(LLV(C,240),1))/(REF(HHV(C,240),1)-REF(LLV(C,240),1));
NHDG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));
NHZG:=MAX(MAX(NHDG,MA60),MAX(MA90,MA120));
NHDD:=MIN(MIN(MA5,MA10),MIN(MA20,MA30));
NHZD:=MIN(MIN(NHDD,MA60),MIN(MA90,MA120));
粘合:=(NHZG/NHZD-1)*100<10 and 年相对价位<60;
{NH}穿五:=CROSS(C,MA5);
{NH}穿十:= CROSS(C,MA10);
{NH}穿二十:= CROSS(C,MA20);
{NH}穿三十:= CROSS(C,MA30);
NHFLSZ:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
NHDXTP:=( 穿五 + 穿十 + 穿二十 + 穿三十 )>=2;
多头:=MA5>REF(MA5,1) and MA10>REF(MA10,1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1) AND MA60>REF(MA60,1) AND MA120>REF(MA120,1);
开花:=( count(CROSS(ma20,ma30),20) + count(CROSS(ma5,ma10),20) + count(CROSS(ma10,ma20),20) + count(CROSS(ma30,ma60),20) + count(CROSS(ma60,ma120),20) )>=2;
均线粘合突破:count(粘合,20)>12 and 多头 and 开花 and NHFLSZ and NHDXTP,stick3d,colorred;