发布日期:2024-11-03 13:45 点击次数:189
VERTLINE(TIME=0900,RGB(128,128,255)),DOT;
VERTLINE(TIME=2100,COLORBLACK),DOT;
HH:=HHV(H股票配资平台开户IGH,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))