VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=VAR1+HIGH-LOW;
VAR3:=2*VAR1-LOW;
VAR4:=VAR1-HIGH+LOW;
VAR5:=2*VAR1-HIGH;
VAR6:=HIGH<REF(LOW,1) OR LOW>REF(HIGH,1);
VAR7:=CLOSE=HHV(CLOSE,13);
VAR8:=BARSLAST(FILTER(CROSS(0.8,VAR7),2))+1;
VAR9:=REF(CLOSE,VAR8);
VAR10:=CROSS(CLOSE,REF(VAR9,1));
VAR11:=(HIGH+LOW+3*CLOSE+OPEN)/6;
VAR12:=MA(VAR11,7);
VAR13:=MA(VAR11,14);
VAR14:=MA(VAR11,21);
VAR15:=MA(VAR11,28);
VAR16:=MA(VAR11,35);
VAR17:=MA(VAR11,42);
VAR18:=MA(VAR11,49);
VAR19:=MA(VAR11,56);
VAR20:=(7*VAR12+14*VAR13+21*VAR14+28*VAR15+35*VAR16+42*VAR17+49*VAR18+56*VAR19)/252;
VAR21:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR22:=REF(VAR21,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR23:=REF(VAR22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR24:=REF(VAR23,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR25:=REF(VAR24,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR26:=REF(VAR25,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR27:=REF(VAR26,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR28:=REF(VAR27,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR29:=REF(VAR28,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR30:=REF(VAR29,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR31:=REF(VAR30,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR32:=REF(VAR31,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR33:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAR34:=REF(VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR30 OR VAR31 OR VAR32,1) AND VAR33;
VAR35:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
VAR36:=(VAR35/REF(VAR35,1)-1)*10;
VAR37:=MA(VAR36,5)/10;
VAR66:=MA(C,18);{公式网WWW.GPXIAZAI.COM}
VAR68:=(VAR66>REF(VAR66,1));
明日心理价:(VAR1+VAR2+VAR3+VAR5+VAR4)/5,NODRAW,COLORWHITE;
DRAWTEXT(VAR6,LOW,'缺'),COLOR00FFFF;
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;
STICKLINE(VAR8<=6,VAR9,VAR9,3,0),COLORFF00FF;
DRAWTEXT(VAR10,LOW,'T'),COLOR00FFFF;
沧海行操盘线:EMA(CLOSE,3),COLORWHITE,LINETHICK1;
沧海行操盘线2:MA(CLOSE,5)COLORYELLOW,LINETHICK1;
沧海行操盘线3:MA(CLOSE,8),COLORRED,LINETHICK1;
沧海行安全线:MA(CLOSE,25),COLORGRAY,LINESTICK,LINETHICK1;
DRAWICON(CROSS(沧海行操盘线,VAR20),L*0.98,1);
STICKLINE(C/REF(C,1)>1.095,C,O,1,0),COLORYELLOW;
IF(沧海行操盘线3<=REF(沧海行操盘线3,1),沧海行操盘线3,DRAWNULL),COLORBLUE,LINETHICK2;
IF(沧海行操盘线3>REF(沧海行操盘线3,1),沧海行操盘线3,DRAWNULL),COLORFF00FF,LINETHICK2;
DRAWICON(FILTER(VAR34=1,5),HIGH*1.03,12);
生变:IF(VAR37<VAR36,VAR20,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK2;
空仓:IF(VAR36<VAR37,VAR20,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK2;
持仓:IF(VAR36>VAR37 AND VAR68,VAR20,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK2;
IF(VAR20<=REF(VAR20,1),VAR20,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK2;