VAR1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR2:=SMA(VAR1,26,1);
VAR3:=SMA(VAR2,26,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=SMA(VAR5,5,1);
VAR7:=SMA(VAR6,10,1);
VAR8:=SMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14,1);
VAR9:=HIGH-REF(HIGH,1);
VARA:=REF(LOW,1)-LOW;
VARB:=SMA(IF(VAR9>0 AND VAR9>VARA,VAR9,0),12,1);
VARC:=SMA(IF(VARA>0 AND VARA>VAR9,VARA,0),12,1);
VARD:=VARB*100/VAR8;
VARE:=VARC*100/VAR8;
VARF:=SMA(ABS(VARE-VARD)/(VARE+VARD)*100,12,1);
VAR10:=(VARF+REF(VARF,5))/2;
VAR11:=SUM(HIGH-OPEN,12)/SUM(OPEN-LOW,12)*100;
VAR12:=SUM(MAX(0,HIGH-REF(CLOSE,1)),12)/SUM(MAX(0,REF(CLOSE,1)-LOW),12)*100;
VAR13:=AMOUNT/VOL/100;
VAR14:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR15:=SUM(AMOUNT,5)/VAR13/100;
VAR16:=SUM(AMOUNT,13)/VAR13/100;
VAR17:=SUM(AMOUNT,34)/VAR13/100;
VAR18:=SUM(AMOUNT,209)/VAR13/100;
VAR19:=REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4);
VAR1A:=VAR19/CAPITAL;
VAR1B:=VOL/CAPITAL*VAR14+VAR1A*REF(VAR13,1);
VAR1C:=DMA(VAR14,VOL/VAR15);
VAR1D:=DMA(VAR14,VOL/VAR16);
VAR1E:=DMA(VAR14,VOL/VAR17);
VAR1F:=DMA(VAR14,VOL/CAPITAL);
VAR20:=100*(CLOSE-VAR1C)/VAR1C;
VAR21:=100*(CLOSE-VAR1D)/VAR1D;
VAR22:=100*(CLOSE-VAR1E)/VAR1E;
VAR23:=100*(CLOSE-VAR1F)/VAR1F;
VAR24:=100*(CLOSE-VAR1D)/VAR1D;
VAR25:=LLV(HIGH,480);
VAR26:=100*(CLOSE-VAR25)/VAR25;
VAR27:=LLV(HIGH,240);
VAR28:=100*(CLOSE-VAR27)/VAR27;
VAR29:=LLV(HIGH,720);
VAR2A:=100*(CLOSE-VAR29)/VAR29;
VAR2B:=AMOUNT/(100*VOL);
VAR2C:=MA(CLOSE,5);
VAR2D:=100*(VAR2C-REF(VAR2C,1))/REF(VAR2C,1);
VAR2E:=CLOSE-LOW;
VAR2F:=HIGH-LOW;
VAR30:=CLOSE-HIGH;
VAR31:=IF(CLOSE>=0,(VAR2E/VAR2F+VAR30/VAR2F)*VOL,(VAR30/VAR2F+VAR2E/VAR2F)*VOL);
VAR32:=SUM(VAR31,10)/10000;
VAR33:=AMOUNT/(100*VOL);
VAR34:=VAR1D;
VAR35:=100*(VAR1D-REF(VAR1D,1))/REF(VAR1D,1);
VAR36:=VAR32>0 AND VAR35>0;
VAR37:=VAR6<30 AND VAR7<30 AND VAR6>VAR7 AND VAR2<80 AND VAR3<80 AND VAR28<45 AND VAR26<45;
VAR38:=VAR36 AND VAR37;
买入:VAR38,LINETHICK2,COLORYELLOW;
九毛八公式解读
VAR1赋值:(收盘价-13日内最低价的最低值)/(13日内最高价的最高值-13日内最低价的最低值)*100 VAR2赋值:VAR1的26日[1日权重]移动平均 VAR3赋值:VAR2的26日[1日权重]移动平均 VAR4赋值:3*VAR2-2*VAR3 VAR5赋值:(收盘价-60日内最低价的最低值)/(60日内最高价的最高值-60日内最低价的最低值)*100 VAR6赋值:VAR5的5日[1日权重]移动平均 VAR7赋值:VAR6的10日[1日权重]移动平均 VAR8赋值:最高价-最低价和最高价-1日前的收盘价的绝对值的较大值和最低价-1日前的收盘价的绝对值的较大值的14日[1日权重]移动平均 VAR9赋值:最高价-1日前的最高价 VARA赋值:1日前的最低价-最低价 VARB赋值:如果VAR9>0ANDVAR9>VARA,返回VAR9,否则返回0的12日[1日权重]移动平均 VARC赋值:如果VARA>0ANDVARA>VAR9,返回VARA,否则返回0的12日[1日权重]移动平均 VARD赋值:VARB*100/VAR8 VARE赋值:VARC*100/VAR8 VARF赋值:VARE-VARD的绝对值/(VARE+VARD)*100的12日[1日权重]移动平均 VAR10赋值:(VARF+5日前的VARF)/2 VAR11赋值:最高价-开盘价的12日累和/开盘价-最低价的12日累和*100 VAR12赋值:0和最高价-1日前的收盘价的较大值的12日累和/0和1日前的收盘价-最低价的较大值的12日累和*100 VAR13赋值:成交额(元)/成交量(手)/100 VAR14赋值:(3*最高价+最低价+开盘价+2*收盘价)/7 VAR15赋值:成交额(元)的5日累和/VAR13/100 VAR16赋值:成交额(元)的13日累和/VAR13/100 VAR17赋值:成交额(元)的34日累和/VAR13/100 VAR18赋值:成交额(元)的209日累和/VAR13/100 VAR19赋值:1日前的成交量(手)+2日前的成交量(手)+3日前的成交量(手)+4日前的成交量(手) VAR1A赋值:VAR19/当前流通股本(手) VAR1B赋值:成交量(手)/当前流通股本(手)*VAR14+VAR1A*1日前的VAR13 VAR1C赋值:以成交量(手)/VAR15为权重VAR14的动态移动平均 VAR1D赋值:以成交量(手)/VAR16为权重VAR14的动态移动平均 VAR1E赋值:以成交量(手)/VAR17为权重VAR14的动态移动平均 VAR1F赋值:以成交量(手)/当前流通股本(手)为权重VAR14的动态移动平均 VAR20赋值:100*(收盘价-VAR1C)/VAR1C VAR21赋值:100*(收盘价-VAR1D)/VAR1D VAR22赋值:100*(收盘价-VAR1E)/VAR1E VAR23赋值:100*(收盘价-VAR1F)/VAR1F VAR24赋值:100*(收盘价-VAR1D)/VAR1D VAR25赋值:480日内最高价的最低值 VAR26赋值:100*(收盘价-VAR25)/VAR25 VAR27赋值:240日内最高价的最低值 VAR28赋值:100*(收盘价-VAR27)/VAR27 VAR29赋值:720日内最高价的最低值 VAR2A赋值:100*(收盘价-VAR29)/VAR29 VAR2B赋值:成交额(元)/(100*成交量(手)) VAR2C赋值:收盘价的5日简单移动平均 VAR2D赋值:100*(VAR2C-1日前的VAR2C)/1日前的VAR2C VAR2E赋值:收盘价-最低价 VAR2F赋值:最高价-最低价 VAR30赋值:收盘价-最高价 VAR31赋值:如果收盘价>=0,返回(VAR2E/VAR2F+VAR30/VAR2F)*成交量(手),否则返回(VAR30/VAR2F+VAR2E/VAR2F)*成交量(手) VAR32赋值:VAR31的10日累和/10000 VAR33赋值:成交额(元)/(100*成交量(手)) VAR34赋值:VAR1D VAR35赋值:100*(VAR1D-1日前的VAR1D)/1日前的VAR1D VAR36赋值:VAR32>0 AND VAR35>0 VAR37赋值:VAR6<30 AND VAR7<30 AND VAR6>VAR7 AND VAR2<80 AND VAR3<80 AND VAR28<45 AND VAR26<45 VAR38赋值:VAR36 AND VAR37 输出买入:VAR38,线宽为2,画黄色