GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
BAIJIN3:=GJTJ1>60 AND GJTJ4>70;
M1:=BAIJIN1 AND BAIJIN2 AND BAIJIN3;
HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;
HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
M2:=HUANGJIN1 AND HUANGJIN2;
XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;
M3:=COUNT(XG,3)=1 AND XG AND C>MA(C,20);
金三角:M1 OR M2 OR M3;
九毛八公式解读
GJTJ1赋值:100*(收盘价-5日内最低价的最低值)/(5日内收盘价的最高值-5日内最低价的最低值) GJTJ2赋值:100*(收盘价-10日内最低价的最低值)/(10日内收盘价的最高值-10日内最低价的最低值) GJTJ3赋值:100*(收盘价-20日内最低价的最低值)/(20日内收盘价的最高值-20日内最低价的最低值) GJTJ4赋值:100*(收盘价-30日内最低价的最低值)/(30日内收盘价的最高值-30日内最低价的最低值) BAIJIN1赋值:上次30上穿GJTJ1距今天数<2 AND 上次GJTJ1上穿50距今天数<2 BAIJIN2赋值:上次GJTJ4上穿GJTJ1距今天数<2 AND GJTJ1>GJTJ4 BAIJIN3赋值:GJTJ1>60 AND GJTJ4>70 M1赋值:BAIJIN1 AND BAIJIN2 AND BAIJIN3 HUANGJIN1赋值:上次50上穿GJTJ1距今天数<3 AND 上次GJTJ1上穿50距今天数<3 HUANGJIN2赋值:上次GJTJ4上穿GJTJ1距今天数<2 AND GJTJ1>GJTJ4 M2赋值:HUANGJIN1 AND HUANGJIN2 XG赋值:上次GJTJ4上穿GJTJ1距今天数<5 AND GJTJ1>GJTJ4 M3赋值:统计3日中满足XG的天数=1 AND XG AND 收盘价>收盘价的20日简单移动平均 输出金三角:M1 OR M2 OR M3