VAR1:=REF(CLOSE>OPEN AND CLOSE<HIGH AND HIGH>MAX(OPEN,CLOSE)*1.035 AND LOW>REF(LOW,5),1);
VAR2:=CLOSE>REF((HIGH+CLOSE)/2,1) AND CLOSE/REF(CLOSE,1)>=1.03;
VAR3:=REF(CLOSE<OPEN AND CLOSE<HIGH AND HIGH>MAX(OPEN,CLOSE)*1.035 AND LOW>REF(HIGH,5),1);
VAR4:=CLOSE>REF((HIGH+OPEN)/2,1) AND CLOSE/REF(CLOSE,1)>=1.03;
斗牛:VAR1 AND VAR2 OR (VAR3 AND VAR4),COLORRED,LINETHICK3;
九毛八公式解读
VAR1赋值:1日前的收盘价>OPENANDCLOSE开盘价和收盘价的较大值*1.035ANDLOW>5日前的最低价 VAR2赋值:收盘价>1日前的(最高价+收盘价)/2 AND 收盘价/1日前的收盘价>=1.03 VAR3赋值:1日前的收盘价 开盘价和收盘价的较大值*1.035ANDLOW>5日前的最高价 VAR4赋值:收盘价>1日前的(最高价+开盘价)/2 AND 收盘价/1日前的收盘价>=1.03 输出斗牛:VAR1 AND VAR2 OR (VAR3 AND VAR4),画红色,线宽为3