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));
A:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;
B:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;
A1:=A AND B;
AA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;
A2:=AA AND BA ;
AAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;
A3:=AAA AND BAA ;
B1:=REF(A1,1);
B2:=REF(A2,1);
B3:=REF(A3,1);
D1:=GJTJ1=100 AND GJTJ2=100 AND A1;
D2:=GJTJ1=100 AND GJTJ2=100 AND A2;
D3:=GJTJ1=100 AND GJTJ2=100 AND A3;
ENTERLONG: D1 OR D2 OR D3;
九毛八公式解读
GJTJ1赋值:100*(收盘价-5日内最低价的最低值)/(5日内收盘价的最高值-5日内最低价的最低值) GJTJ2赋值:100*(收盘价-10日内最低价的最低值)/(10日内收盘价的最高值-10日内最低价的最低值) GJTJ3赋值:100*(收盘价-20日内最低价的最低值)/(20日内收盘价的最高值-20日内最低价的最低值) GJTJ4赋值:100*(收盘价-30日内最低价的最低值)/(30日内收盘价的最高值-30日内最低价的最低值) A赋值:上次97上穿GJTJ1距今天数<=1 AND 上次GJTJ1上穿85距今天数<=1 B赋值:上次97上穿GJTJ2距今天数<=1 AND 上次GJTJ2上穿85距今天数<=1 A1赋值:A AND B AA赋值:上次97上穿GJTJ1距今天数<=2 AND 上次GJTJ1上穿85距今天数<=1 BA赋值:上次97上穿GJTJ2距今天数<=2 AND 上次GJTJ2上穿85距今天数<=1 A2赋值:AA AND BA AAA赋值:上次97上穿GJTJ1距今天数<=3 AND 上次GJTJ1上穿85距今天数<=1 BAA赋值:上次97上穿GJTJ2距今天数<=3 AND 上次GJTJ2上穿85距今天数<=1 A3赋值:AAA AND BAA B1赋值:1日前的A1 B2赋值:1日前的A2 B3赋值:1日前的A3 D1赋值:GJTJ1=100 AND GJTJ2=100 AND A1 D2赋值:GJTJ1=100 AND GJTJ2=100 AND A2 D3赋值:GJTJ1=100 AND GJTJ2=100 AND A3 多头买入: D1 OR D2 OR D3