{公式名称: 分时简化
公式描述: 含大盘分时}
VAR1:=IF(FINANCE(3)!=0,DYNAINFO(3)*(1+0.02),DRAWNULL);
VAR2:=IF(FINANCE(3)!=0,DYNAINFO(3)*1.04,DRAWNULL);
VAR3:=IF(FINANCE(3)!=0,DYNAINFO(3)*(1-0.015),DRAWNULL);
VAR4:=IF(FINANCE(3)!=0,DYNAINFO(3)*(1-0.01),DRAWNULL);
DRAWBAND(VAR2,RGB(48,48,48),VAR1,RGB(48,48,48));
DRAWBAND(DYNAINFO(3),RGB(68,68,68),VAR3,RGB(68,68,68));
DRAWBAND(DYNAINFO(3),RGB(48,48,48),VAR4,RGB(48,48,48));
VAR5:=IF(HOUR<12,(HOUR-9.5)*60+MINUTE,(HOUR-11)*60+MINUTE);
均线:IF(1,SUM(CLOSE*VOL,VAR5)/SUM(VOL,VAR5),DRAWNULL),COLORYELLOW;
DRAWBAND(CLOSE,RGB(58,0,0),均线,RGB(0,58,0));
IF(1,SUM(CLOSE*VOL,VAR5)/SUM(VOL,VAR5),DRAWNULL),COLORYELLOW;
CLOSE,COLORWHITE;
IF(DYNAINFO(5)>DYNAINFO(3)*(1+0.05),DYNAINFO(3)*(1+0.05),DRAWNULL),COLORCCCCCC;
IF(DYNAINFO(5)>DYNAINFO(3)*(1+0.07),DYNAINFO(3)*(1+0.07),DRAWNULL),COLORCC00CC;
VAR6:=STRCAT(STRCAT(HYBLOCK,DYBLOCK),GNBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.05,0.95,0,VAR6),COLOR00CCCC;
VAR7:=STRCAT(STRCAT(120,CON2STR(CAPITAL/1000000,2)),121);
VAR8:=STRCAT(STRCAT(122,CON2STR(CAPITAL/1000000*CLOSE,2)),121);
VAR9:=STRCAT(VAR7,VAR8);
DRAWTEXT_FIX(ISLASTBAR,0.045,0.85,0,VAR9),COLOR00CCCC;
VAR10:=IF(1,HHV(HIGH,480),DRAWNULL);
VAR11:=IF(1,LLV(LOW,480),DRAWNULL);
IF(CLOSE>=REF(VAR10,1),CLOSE,DRAWNULL),COLORRED;
IF(CLOSE<=REF(VAR11,1),CLOSE,DRAWNULL),COLORGREEN;
VAR12:=(CLOSE+LOW+HIGH)/3;
VAR13:=IF(VAR12>REF(VAR12,1),(CLOSE+LOW+HIGH)/3,REF((CLOSE+LOW+HIGH)/3,1));
VAR14:=IF(VAR12<REF(VAR12,1),(CLOSE+LOW+HIGH)/3,REF((CLOSE+LOW+HIGH)/3,1));
VAR15:=VAR13;
VAR16:=(VAR13+VAR14)/2;
VAR17:=VAR14;
VAR18:=IF(ISLASTBAR,REF(VAR15,1),DRAWNULL);
VAR19:=IF(ISLASTBAR,REF(VAR16,1),DRAWNULL);
VAR20:=IF(ISLASTBAR,REF(VAR17,1),DRAWNULL);
VAR21:=1;
STICKLINE(VAR21=1,VAR18,VAR18,20,(-1)),COLOR0000CC;
STICKLINE(VAR21=1,VAR19,VAR19,20,(-1)),COLORWHITE;
STICKLINE(VAR21=1,VAR20,VAR20,20,(-1)),COLORCCCC00;
VAR22:=1;
VAR23:=BARSLAST(HOUR=9 AND MINUTE=30+VAR22)+1;
VAR24:=IF(FINANCE(3)=0,SUM(AMOUNT,0)/SUM(VOL,0),SUM(AMOUNT,0)/SUM(VOL,0)/100);
VAR25:=IF(打工皇帝#DAY,0.025,IF(打工皇帝#DAY,0.04,0.015));
VAR26:=IF(打工皇帝#DAY,0.025,IF(打工皇帝#DAY,0.015,0.04));
VAR27:=IF(FINANCE(3)=0,VAR25/5,VAR25);
VAR28:=IF(FINANCE(3)=0,VAR26/5,VAR26);
VAR29:=CLOSE>REF(CLOSE,1) AND CLOSE/VAR24>1+VAR27;
VAR30:=CLOSE<REF(CLOSE,1) AND CLOSE/VAR24<1-VAR28;
VAR31:=CROSS(SUM(VAR29,0),0.5);
VAR32:=CROSS(SUM(VAR30,0),0.5);
VAR33:=SUM(VAR31,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(VAR31)),0.5);
VAR34:=SUM(VAR32,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(VAR32)),0.5);
VAR35:=CONST(SUM(IF(VAR33,REF(CLOSE,1),DRAWNULL),0));
VAR36:=CONST(SUM(IF(VAR34,REF(CLOSE,1),DRAWNULL),0));
VAR37:=CROSS(SUM(VAR29 AND CLOSE>VAR35*(1+VAR27),0),0.5);
VAR38:=CROSS(SUM(VAR30 AND CLOSE<VAR36*(1-VAR28),0),0.5);
VAR39:=SUM(VAR37,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(VAR37)),0.5);
VAR40:=SUM(VAR38,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(VAR38)),0.5);
VAR41:=CONST(SUM(IF(VAR39,REF(CLOSE,1),DRAWNULL),0));
VAR42:=CONST(SUM(IF(VAR40,REF(CLOSE,1),DRAWNULL),0));
DRAWICON(VAR31 OR VAR37,CLOSE*1.001,39);
DRAWICON(VAR32 OR VAR38,CLOSE*0.999,38);
DRAWICON(VAR34 OR VAR40,REF(CLOSE,1)*0.9985,7);
DRAWICON(VAR33 OR VAR39,REF(CLOSE,1)*1.0015,8);
{打工皇帝}
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),6))/(6)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),12))/(12)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;
DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,12))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;