文华财经多空K变色支撑压力画线趋势波段指标公式

avatar
作者
猴君
阅读量:0

文华财经多空K变色支撑压力画线趋势波段指标公式:

VERTLINE(TIME=0900,RGB(128,128,255)),DOT;

VERTLINE(TIME=2100,COLORBLACK),DOT;

HH:=HHV(HIGH,26);

LL:=LLV(LOW,26);

HH1:=BARSLAST((HH > REF(HH,1)));

LL1:=BARSLAST((LL < REF(LL,1)));

PARTLINE((HH1 < LL1),LL,COLORMAGENTA);

PARTLINE((HH1 > LL1),HH,COLORBLUE);

STICKLINE((HH1 < LL1),CLOSE,OPEN,COLORRED,1);

STICKLINE1((HH1 < LL1),HIGH,LOW,0,0),COLORRED;

STICKLINE((HH1 > LL1),CLOSE,OPEN,COLORBLUE,0);

STICKLINE1((HH1 > LL1),HIGH,LOW,0,0),COLORBLUE;

LC := REF(CLOSE,1);//前值

RSI1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;//7周期RSI1

DRAWCOLORKLINE(CROSSDOWN(RSI1,79),COLORLIGHTGREY,0);//下穿79蓝色K线

DRAWSL(CROSSDOWN(RSI1,79),H,0,5,0,COLORLIGHTGREY),LINETHICK3;//5周期蓝色线段

DRAWCOLORKLINE(CROSS(RSI1,21),COLORLIGHTGREY,0);//上穿21 红色K线

DRAWSL(CROSS(RSI1,21),L,0,5,0,COLORLIGHTGREY),LINETHICK3;//5周期红色线段

DRAWTEXT(CROSSDOWN(RSI1,79),HH,'空'),COLORWHITE,VALIGN0,FONTSIZE8;

DRAWTEXT(CROSS(RSI1,21),LL,'多'),COLORWHITE,VALIGN0,FONTSIZE8; //信号显示

DRAWNUMBER(ISLASTBAR&&C>=O,H,C,2,COLORRED),ALIGN1,FONTSIZE25;

DRAWNUMBER(ISLASTBAR&&C<O,L,C,2,COLORBLUE),ALIGN1,VALIGN0,FONTSIZE25;

DRAWCOLORKLINE(BACKSET( BARSLASTCOUNT(HH1 < LL1)>2&&EXIST(L>VALUEWHEN(BARSLASTCOUNT(HH1 < LL1)=2,HHV(H,2))||H<VALUEWHEN(BARSLASTCOUNT(HH1 < LL1)=2,LLV(L,2)) ,BARSLASTCOUNT(HH1 < LL1)-2)=0,3),COLORLIGHTGREY,0);

DRAWLINE( BACKSET( BARSLASTCOUNT(HH1 < LL1)>2&&EXIST(H>VALUEWHEN(BARSLASTCOUNT(HH1 < LL1)=2,HHV(H,2))||H<VALUEWHEN(BARSLASTCOUNT(HH1 < LL1)=2,LLV(L,2)) ,BARSLASTCOUNT(HH1 < LL1)-2)=0,3),H+1*MINPRICE,1,L-1*MINPRICE,COLORLIGHTGREY);

DRAWCOLORKLINE(BACKSET( BARSLASTCOUNT(HH1 > LL1)>2&&EXIST(L>VALUEWHEN(BARSLASTCOUNT(HH1 > LL1)=2,HHV(H,2))||H<VALUEWHEN(BARSLASTCOUNT(HH1 > LL1)=2,LLV(L,2)) ,BARSLASTCOUNT(HH1 > LL1)-2)=0,3),COLORLIGHTGREY,0);

DRAWLINE( BACKSET( BARSLASTCOUNT(HH1 > LL1)>2&&EXIST(H>VALUEWHEN(BARSLASTCOUNT(HH1 > LL1)=2,HHV(H,2))||H<VALUEWHEN(BARSLASTCOUNT(HH1 > LL1)=2,LLV(L,2)) ,BARSLASTCOUNT(HH1 > LL1)-2)=0,3),H+1*MINPRICE,1,L-1*MINPRICE,COLORLIGHTGREY);

HUI:=CROSSDOWN(RSI1,79)||CROSS(RSI1,21);

DRAWCOLORKLINE(BARSLAST(HUI)<=5&&(EVERY(H<=VALUEWHEN(HUI,H),BARSLAST(HUI))||EVERY(L>=VALUEWHEN(HUI,L),BARSLAST(HUI))),COLORGRAY,0);

    广告一刻

    为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!