咨詢內容:
老師這個能改成博弈嗎
A1:REF(HHV(H,DAYBARPOS),DAYBARPOS),NODRAW;//昨低
A2:REF(LLV(L,DAYBARPOS),DAYBARPOS),NODRAW;//昨高
A3:REF(C,DAYBARPOS),NODRAW;//昨收
A4:VALUEWHEN(TIME=2129,HHV(H,DAYBARPOS)),NODRAW;
A5:VALUEWHEN(TIME=2129,LLV(L,DAYBARPOS)),NODRAW;
MM:=BACKSET(ISLASTBAR,DAYBARPOS);
DRAWSL(DAYBARPOS=1&&MM,A1,0,10000,0,COLORRED);
DRAWSL(DAYBARPOS=1&&MM,A3,0,10000,0,COLORYELLOW);
DRAWSL(DAYBARPOS=1&&MM,A2,0,10000,0,COLORGREEN);
DRAWSL(DAYBARPOS=1&&MM,A4,0,10000,0,COLORRED),DOT;
DRAWSL(DAYBARPOS=1&&MM,A5,0,10000,0,COLORGREEN),DOT;
DRAWNUMBER(ISLASTBAR,A4,A4,2,COLORRED),ALIGN0;
DRAWNUMBER(ISLASTBAR,A5,A5,2,COLORGREEN),ALIGN0,VALIGN0;
?
?來源:程序化99網( www.kzuj.com.cn )
博易技術人員:
AA1:=REF(HOUR,1)=15 AND HOUR<>15;
DAYBARPOS:=BARSLAST(AA1);
A1:REF(HHV(H,DAYBARPOS),DAYBARPOS),NODRAW;//昨低
A2:REF(LLV(L,DAYBARPOS),DAYBARPOS),NODRAW;//昨高
A3:REF(C,DAYBARPOS),NODRAW;//昨收
A4:VALUEWHEN(TIME=2129,HHV(H,DAYBARPOS)),NODRAW;
A5:VALUEWHEN(TIME=2129,LLV(L,DAYBARPOS)),NODRAW;
MM:=BACKSET(ISLASTBAR,DAYBARPOS);
DRAWSL(DAYBARPOS=1&&MM,A1,0,10000,0),COLORRED;
DRAWSL(DAYBARPOS=1&&MM,A3,0,10000,0),COLORYELLOW;
DRAWSL(DAYBARPOS=1&&MM,A2,0,10000,0),COLORGREEN;
DRAWSL(DAYBARPOS=1&&MM,A4,0,10000,0),COLORRED;
DRAWSL(DAYBARPOS=1&&MM,A5,0,10000,0),COLORGREEN;
DRAWNUMBER(ISLASTBAR,A4,A4,2),COLORRED,ALIGN0;
DRAWNUMBER(ISLASTBAR,A5,A5,2),COLORGREEN,ALIGN0,VALIGN0;
老師疊加了不顯示
來源 程序化久久網