咨詢內(nèi)容:
請(qǐng)老師改成博弈指標(biāo)
N:=13;
HH:=H>HV(H,N);
NH:=BARSLAST(HH)+1;
LL:=L<LV(L,N);
NL:=BARSLAST(LL)+1;
AH:=BACKSET(COUNT(LL,NH)&&LL,NH);
AL:=BACKSET(COUNT(HH,NL)&&HH,NL);
DRAWLINE1(CROSS(AH=1,0.5),H,CROSS(AL=1,0.5),L,0),LINETHICK4,COLORGREEN;
DRAWLINE1(CROSS(AL=1,0.5),L,CROSS(AH=1,0.5),H,0),LINETHICK4,COLORRED;
DRAWSL1(ISLASTBAR&&BARSLAST(CROSS(AL=1,0.5))<BARSLAST(CROSS(AH=1,0.5)),VALUEWHEN(CROSS(AL=1,0.5),L),0,BARSLAST(CROSS(AL=1,0.5)),1),LINETHICK7,COLORFFFF00;
DRAWSL1(ISLASTBAR&&BARSLAST(CROSS(AH=1,0.5))<BARSLAST(CROSS(AL=1,0.5)),VALUEWHEN(CROSS(AH=1,0.5),H),0,BARSLAST(CROSS(AH=1,0.5)),1),LINETHICK7,COLORGREEN;
DRAWNUMBER(ISLASTBAR&&BARSLAST(CROSS(AL=1,0.5))<BARSLAST(CROSS(AH=1,0.5)),VALUEWHEN(CROSS(AL=1,0.5),L),C,2,COLORGREEN),ALIGN0,FONTSIZE30;
DRAWNUMBER(ISLASTBAR&&BARSLAST(CROSS(AH=1,0.5))<BARSLAST(CROSS(AL=1,0.5)),VALUEWHEN(CROSS(AH=1,0.5),H),C,2,COLORGREEN),ALIGN0,FONTSIZE30;
AA:=BACKSET(ISLASTBAR,BARSLAST(CROSSDOWN(AH,0.5)||CROSSDOWN(AL,0.5))+1);
VERTLINE1(CROSS(AA,0.5)&&CROSSDOWN(AH,0.5)),COLORGREEN;
VERTLINE1(CROSS(AA,0.5)&&CROSSDOWN(AL,0.5)),COLORRED;
?
?來(lái)源:程序化99網(wǎng)( www.kzuj.com.cn )
博易技術(shù)人員:
N:=13;
HH:=H>=HHV(H,N);
NH:=BARSLAST(HH)+1;
LL:=L<=LLV(L,N);
NL:=BARSLAST(LL)+1;
AH:=BACKSET(COUNT(LL,NH)&&LL,NH);
AL:=BACKSET(COUNT(HH,NL)&&HH,NL);
DRAWLINE(CROSS(AH=1,0.5),H,CROSS(AL=1,0.5),L,0),LINETHICK4,COLORGREEN;
DRAWLINE(CROSS(AL=1,0.5),L,CROSS(AH=1,0.5),H,0),LINETHICK4,COLORRED;
DRAWSL(ISLASTBAR&&BARSLAST(CROSS(AL=1,0.5))<BARSLAST(CROSS(AH=1,0.5)),VALUEWHEN(CROSS(AL=1,0.5),L),0,BARSLAST(CROSS(AL=1,0.5)),1),LINETHICK7,COLORFFFF00;
DRAWSL(ISLASTBAR&&BARSLAST(CROSS(AH=1,0.5))<BARSLAST(CROSS(AL=1,0.5)),VALUEWHEN(CROSS(AH=1,0.5),H),0,BARSLAST(CROSS(AH=1,0.5)),1),LINETHICK7,COLORGREEN;
DRAWNUMBER(ISLASTBAR&&BARSLAST(CROSS(AL=1,0.5))<BARSLAST(CROSS(AH=1,0.5)),VALUEWHEN(CROSS(AL=1,0.5),L),C,2),COLORGREEN,ALIGN0,FONTSIZE30;
DRAWNUMBER(ISLASTBAR&&BARSLAST(CROSS(AH=1,0.5))<BARSLAST(CROSS(AL=1,0.5)),VALUEWHEN(CROSS(AH=1,0.5),H),C,2),COLORGREEN,ALIGN0,FONTSIZE30;
AA:=BACKSET(ISLASTBAR,BARSLAST(CROSS(0.5,AH)||CROSS(0.5,AL))+1);
VERTLINE(CROSS(AA,0.5)&&CROSS(0.5,AH)),COLORGREEN;
VERTLINE(CROSS(AA,0.5)&&CROSS(0.5,AL)),COLORRED;
?
?
謝謝老師,祝老師新年快樂(lè)
來(lái)源 程序化久久網(wǎng)