麻烦老师修改成金字塔公式?
VV:="DAY$1$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&&C1>OO,OO,0,-XX+1,0,COLORRED),LINETHICK2;
DRAWSL(SP&&C1<OO,OO,0,-XX+1,0,COLORGREEN),LINETHICK2;
DRAWSL(SP&&C1=OO,OO,0,-XX+1,0,COLORGRAY),LINETHICK2;
DRAWSL(SP&&C1>OO,C1,0,-XX+1,0,COLORRED),LINETHICK2;
DRAWSL(SP&&C1<OO,C1,0,-XX+1,0,COLORGREEN),LINETHICK2;
DRAWLINE(SP&&C1>OO,C1,1,OO,COLORRED),LINETHICK2;
DRAWLINE3(SP&&C1>OO,C1,XX-1,1,OO,XX-1,0),COLORRED,LINETHICK2;
DRAWLINE3(SP&&C1>OO,HHV(H,XX),XX/2-1,1,C1,XX/2-1,0),COLORRED,LINETHICK2;
DRAWLINE3(SP&&C1>OO,LLV(L,XX),XX/2-1,1,OO,XX/2-1,0),COLORRED,LINETHICK2;
DRAWLINE(SP&&C1<OO,C1,1,OO,COLORGREEN),LINETHICK2;
DRAWLINE3(SP&&C1<OO,C1,XX-1,1,OO,XX-1,0),COLORGREEN,LINETHICK2;
DRAWLINE3(SP&&C1<OO,HHV(H,XX),XX/2-1,1,OO,XX/2-1,0),COLORGREEN,LINETHICK2;
DRAWLINE3(SP&&C1<OO,LLV(L,XX),XX/2-1,1,C1,XX/2-1,0),COLORGREEN,LINETHICK2;
DRAWLINE(SP&&C1=OO,C1,1,OO,COLORGRAY),LINETHICK2;
DRAWLINE3(SP&&C1=OO,C1,XX-1,1,OO,XX-1,0),COLORGRAY,LINETHICK2;
DRAWLINE3(SP&&C1=OO,HHV(H,XX),XX/2-1,1,OO,XX/2-1,0),COLORGRAY,LINETHICK2;
DRAWLINE3(SP&&C1=OO,LLV(L,XX),XX/2-1,1,C1,XX/2-1,0),COLORGRAY,LINETHICK2;