股票在旗帜线绿色的时候就别持股了 MA7:=MA(C,7); PARTLINE(MA7,MA7>=REF(MA7,1),RGB(255,0,0),MA7<REF(MA7,1),RGB(0,255,0)); MID:MA(CLOSE,20),colorgray,DOTLINE; UPPER:MID+2*STD(CLOSE,20),colorgray,DOTLINE; LOWER:MID-2*STD(CLOSE,20),colorgray,DOTLINE; SS:=MA(C,7)>REF(MA(C,7),1); 顶:=MA(HHV(REF(C,1),30),2); 底:=MA(LLV(REF(C,1),30),2); 中:=(顶+底)/2; //HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6; /*HHJSJDB:(20*HHJsjda+19*REF(HHJsjda,1)+18*REF(HHJsjda,2) +17*REF(HHJsjda,3 )+16*REF(HHJsjda,4)+15*REF(HHJsjda,5)+14*REF(HHJsjda,6) +13*REF(HHJsjda,7)+12*REF(HHJsjda,8)+11*REF(HHJsjda,9) +10*REF(HHJsjda,10 )+9*REF(HHJsjda,11)+8*REF(HHJsjda,12) +7*REF(HHJsjda,13)+6*REF(HHJsjda,14)+5*REF(HHJsjda,15) +4*REF(HHJsjda,16) +3*REF(HHJsjda,17)+2*REF(HHJsjda,18) + REF(HHJsjda,20))/210,coloryellow; HHJSJDC:=MA(HHJSJDB,5),colorred; */ STICKLINE( PERIODNAME=="日线" AND C/REF(C,1)>1.09 ,OPEN,C,8,0),coloryellow; DRAWTEXT(CROSS(顶,C),H*1.02,'S'),coloryellow; //准备赚钱买入信号 LC:=REF(CLOSE,1); RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100); VARR1:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100; TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10); HD:=(HIGH - REF(HIGH,1)); LD:=(REF(LOW,1) - LOW); DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10); DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10); PDI:=((DMP * 100) / TR1); MDI:=((DMM * 100) / TR1); ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5); AV:=(RSI5 + ADX); DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5); WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10); 准备赚钱:=(AV + NEWVOL); DRAWTEXT( CROSS(准备赚钱,0) AND SS,L*0.96,'抄家伙'),coloryellow; DRAWICON( CROSS(准备赚钱,0),L*0.99,5); DRAWTEXT(CROSS(82,VARR1),H*1.02,'走人'),coloryellow; DRAWICON( CROSS(82,VARR1),H,2); ![]() |
