老师,好下面文华公式中,HV未定义,请指导,谢谢
VV:="MIN$5$V";//框线是什么框线
//1MIN,3MIN,5MIN,10MIN,15MIN,30MIN,1HOUR,2HOUR,3HOUR,4HOUR,DAY,WEEK,MONTH。
XX:=BARSLAST(VV<>REF(VV,1))+1;
SP:=ISLASTBAR||REFX(XX=1,1);
OO:=REF(O,XX-1);
DRAWSL(SP&&C>OO,OO,0,-XX+1,0,COLORRED),LINETHICK2;
DRAWSL(SP&&C<OO,OO,0,-XX+1,0,COLORGREEN),LINETHICK2;
DRAWSL(SP&&C=OO,OO,0,-XX+1,0,COLORGRAY),LINETHICK2;
DRAWSL(SP&&C>OO,C,0,-XX+1,0,COLORRED),LINETHICK2;
DRAWSL(SP&&C<OO,C,0,-XX+1,0,COLORGREEN),LINETHICK2;
DRAWLINE(SP&&C>OO,C,1,OO,COLORRED),LINETHICK2;
DRAWLINE(SP&&C>OO,C,XX-1,1,OO,XX-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C>OO,HHV(H,XX),XX/2-1,1,C,XX/2-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C>OO,LLV(L,XX),XX/2-1,1,OO,XX/2-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C<OO,C,1,OO,COLORGREEN),LINETHICK2;
DRAWLINE(SP&&C<OO,C,XX-1,1,OO,XX-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C<OO,HHV(H,XX),XX/2-1,1,OO,XX/2-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C<OO,LLV(L,XX),XX/2-1,1,C,XX/2-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C=OO,C,1,OO,COLORGRAY),LINETHICK2;
DRAWLINE(SP&&C=OO,C,XX-1,1,OO,XX-1,0),COLORGRAY,LINETHICK2;
DRAWLINE(SP&&C=OO,HHV(H,XX),XX/2-1,1,OO,XX/2-1,0),COLORGRAY,LINETHICK2;
DRAWLINE(SP&&C=OO,LLV(L,XX),XX/2-1,1,C,XX/2-1,0),COLORGRAY,LINETHICK2;
HH:IF(SP,HHV(H,XX),NULL);
LL:IF(SP,LLV(L,XX),NULL);
N:=5;
HHH:=SP && HH>HV(HH,5*N) && HH>=REFX(HHV(HH,5*N),5*N);
LLL:=SP && LL<LV(LL,5*N) && LL<=REFX(LLV(LL,5*N),5*N);
KTEXT(HHH,-2,HH,1,COLORRED,'GAO'),VALIGN2;
KTEXT(LLL,-2,LL,1,COLORGREEN,'DI'),VALIGN0;
DRAWTEXT(HHH11,-2,HH11,1,COLORRED,'GAO'),VALIGN2;
DRAWTEXT(LLL11,-2,LL11,1,COLORGREEN,'DI'),VALIGN0;
上面“ ”所调用的参数与预义参数不符,如果解决?
老师,我把最后二句去了,通过公式测评,为什么在主图上无显示公式内容,请老师看看,什么问题?
VV:="MIN$5$V";//框线是什么框线
//1MIN,3MIN,5MIN,10MIN,15MIN,30MIN,1HOUR,2HOUR,3HOUR,4HOUR,DAY,WEEK,MONTH。
XX:=BARSLAST(VV<>REF(VV,1))+1;
SP:=ISLASTBAR||REFX(XX=1,1);
OO:=REF(O,XX-1);
DRAWSL(SP&&C>OO,OO,0,-XX+1,0,COLORRED),LINETHICK2;
DRAWSL(SP&&C<OO,OO,0,-XX+1,0,COLORGREEN),LINETHICK2;
DRAWSL(SP&&C=OO,OO,0,-XX+1,0,COLORGRAY),LINETHICK2;
DRAWSL(SP&&C>OO,C,0,-XX+1,0,COLORRED),LINETHICK2;
DRAWSL(SP&&C<OO,C,0,-XX+1,0,COLORGREEN),LINETHICK2;
DRAWLINE(SP&&C>OO,C,1,OO,COLORRED),LINETHICK2;
DRAWLINE(SP&&C>OO,C,XX-1,1,OO,XX-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C>OO,HHV(H,XX),XX/2-1,1,C,XX/2-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C>OO,LLV(L,XX),XX/2-1,1,OO,XX/2-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C<OO,C,1,OO,COLORGREEN),LINETHICK2;
DRAWLINE(SP&&C<OO,C,XX-1,1,OO,XX-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C<OO,HHV(H,XX),XX/2-1,1,OO,XX/2-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C<OO,LLV(L,XX),XX/2-1,1,C,XX/2-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C=OO,C,1,OO,COLORGRAY),LINETHICK2;
DRAWLINE(SP&&C=OO,C,XX-1,1,OO,XX-1,0),COLORGRAY,LINETHICK2;
DRAWLINE(SP&&C=OO,HHV(H,XX),XX/2-1,1,OO,XX/2-1,0),COLORGRAY,LINETHICK2;
DRAWLINE(SP&&C=OO,LLV(L,XX),XX/2-1,1,C,XX/2-1,0),COLORGRAY,LINETHICK2;
HH:IF(SP,HHV(H,XX),NULL);
LL:IF(SP,LLV(L,XX),NULL);
N:=5;
HHH:=SP && HH>REF(HHV(HH,5*N),1) && HH>=REFX(HHV(HH,5*N),5*N);
LLL:=SP && LL<REF(LLV(LL,5*N),1) && LL<=REFX(LLV(LL,5*N),5*N);
vv:"vol##MIN5";
XX:=BARSLAST(VV<>REF(VV,1))+1;
SP:=ISLASTBAR||REFX(XX=1,1);
OO:=REF(O,XX-1);
DRAWSL(SP&&C>OO,OO,0,-XX+1,0,COLORRED),LINETHICK2;
DRAWSL(SP&&C<OO,OO,0,-XX+1,0,COLORGREEN),LINETHICK2;
DRAWSL(SP&&C=OO,OO,0,-XX+1,0,COLORGRAY),LINETHICK2;
DRAWSL(SP&&C>OO,C,0,-XX+1,0,COLORRED),LINETHICK2;
DRAWSL(SP&&C<OO,C,0,-XX+1,0,COLORGREEN),LINETHICK2;
DRAWLINE(SP&&C>OO,C,1,OO,COLORRED),LINETHICK2;
DRAWLINE(SP&&C>OO,C,XX-1,1,OO,XX-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C>OO,HHV(H,XX),XX/2-1,1,C,XX/2-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C>OO,LLV(L,XX),XX/2-1,1,OO,XX/2-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C<OO,C,1,OO,COLORGREEN),LINETHICK2;
DRAWLINE(SP&&C<OO,C,XX-1,1,OO,XX-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C<OO,HHV(H,XX),XX/2-1,1,OO,XX/2-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C<OO,LLV(L,XX),XX/2-1,1,C,XX/2-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C=OO,C,1,OO,COLORGRAY),LINETHICK2;
DRAWLINE(SP&&C=OO,C,XX-1,1,OO,XX-1,0),COLORGRAY,LINETHICK2;
DRAWLINE(SP&&C=OO,HHV(H,XX),XX/2-1,1,OO,XX/2-1,0),COLORGRAY,LINETHICK2;
DRAWLINE(SP&&C=OO,LLV(L,XX),XX/2-1,1,C,XX/2-1,0),COLORGRAY,LINETHICK2;
HH:IF(SP,HHV(H,XX),NULL);
LL:IF(SP,LLV(L,XX),NULL);
N:=5;
HHH:=SP && HH>REF(HHV(HH,5*N),1) && HH>=REFX(HHV(HH,5*N),5*N);
LLL:=SP && LL<REF(LLV(LL,5*N),1) && LL<=REFX(LLV(LL,5*N),5*N);