栏目分类
PRODUCT CENTER

炒股配资平台

你的位置:炒股配资平台_按天配资_按月配资-线下配资官网 > 炒股配资平台 > 文华财经北斗指南多空主图+副图

文华财经北斗指南多空主图+副图

发布日期:2024-04-11 04:05    点击次数:179

图片

//【北斗指南多空主图】

//结合副图做多做空

//可手动输入参数 N(0,999,7)//

N:=7;

DD:=YEAR*10000+MONTH*100+DAY;

到期日:=29190730;

有效期内:=DD<=到期日;

DRAWGBK(有效期内 AND CLOSE>0,RGB(0,0,0),RGB(2,22,47),0);

FXA:=MA(((SLOPE(C,20)*5)+C),20);

STICKLINE(有效期内 AND FXA<=C && CLOSE>OPEN,OPEN,CLOSE,COLORRED,1);

STICKLINE(有效期内 AND FXA<=C && CLOSE<=OPEN,OPEN,CLOSE,COLORRED,0);

DRAWLINE(有效期内 AND FXA<=C,HIGH,有效期内 AND CLOSE>OPEN,CLOSE,COLORRED);

DRAWLINE(有效期内 AND FXA<=C,LOW,有效期内 AND CLOSE>OPEN,OPEN,COLORRED);

DRAWLINE(有效期内 AND FXA<=C,HIGH,有效期内 AND CLOSE<=OPEN,LOW,COLORRED);

STICKLINE(有效期内 AND FXA>C && CLOSE>=OPEN,OPEN,CLOSE,COLORCYAN,1);

STICKLINE(有效期内 AND FXA>C && CLOSE<OPEN,OPEN,CLOSE,COLORCYAN,0);

DRAWLINE(有效期内 AND FXA>C,HIGH,有效期内 AND CLOSE>=OPEN,CLOSE,COLORCYAN);

DRAWLINE(有效期内 AND FXA>C,LOW,有效期内 AND CLOSE>=OPEN,OPEN,COLORCYAN);

DRAWLINE(有效期内 AND FXA>C,LOW,有效期内 AND CLOSE<OPEN,CLOSE,COLORCYAN);

DRAWLINE(有效期内 AND FXA>C,HIGH,有效期内 AND CLOSE<OPEN,OPEN,COLORCYAN);

DRAWTEXT(有效期内 AND CROSS(C,FXA),LOW,'买多'),ALIGN1,FONTSIZE14,COLORYELLOW;

DRAWTEXT(有效期内 AND CROSS(FXA,C),H,'做空'),ALIGN1,FONTSIZE14,COLORGREEN;

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

CA:=EMA(C1,1);

CB:=EMA(C1,3);

CC:=EMA(C1,5);

CE:=EMA((VOL*CA),1)/EMA(VOL,1);

CF:=EMA((VOL*(CA+CB+CC)/3),1)/EMA(VOL,1);

DXA:=EMA(EMA(EMA(CE,3),2),1),NODRAW;

DXB:=EMA(EMA(EMA(CF,5),3),1),NODRAW;

兄:EMA(DXA,1),PRECIS0,COLORWHITE,NODRAW;

弟:EMA(DXB,1),PRECIS0,COLORYELLOW,NODRAW;

分界线:MA(CLOSE,18),PRECIS0,COLORRED,NODRAW;

DRAWCOLORLINE(有效期内 AND 兄>REF(兄,1),兄,RGB(255,0,0),RGB(255,255,255));

DRAWCOLORLINE(有效期内 AND 弟>REF(弟,1),弟,RGB(255,0,0),RGB(255,255,0));

DRAWCOLORLINE(有效期内 AND 分界线>REF(分界线,1),分界线,RGB(255,0,255),RGB(0,255,255)),LINETHICK2;

TY1:=HIGH;

HD1:=FILTER(有效期内 AND BACKSET(FILTER(REF(TY1, N )=HHV(TY1,2* N +1), N ), N +1), N );

LD1:=FILTER(有效期内 AND BACKSET(FILTER(REF(TY1, N )=LLV(TY1,2* N +1), N ), N +1), N );

A1:=REF(TY1,BARSLAST(HD1));

B1:=REF(LOW,BARSLAST(LD1));

T1:=BARSLAST(有效期内 AND HD1)<BARSLAST(LD1) && NOT(HD1);

T2:=BARSLAST(有效期内 AND HD1)>BARSLAST(LD1) && NOT(LD1);

PARTLINE1(有效期内 AND T1,A1),RGB(0,255,0),DOT;

PARTLINE1(有效期内 AND T2,B1),RGB(255,0,255),DOT;

波峰:IF(有效期内 AND T1,A1,A1),RGB(0,255,0),NODRAW,PRECIS0;

波谷:IF(有效期内 AND T2,B1,B1),RGB(255,0,255),NODRAW,PRECIS0;

AAA:=有效期内 AND CLOSE>REF(CLOSE,1) && REF(CLOSE,1)>REF(CLOSE,2) && REF(CLOSE,1)<REF(CLOSE,3) && IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4)