周均線 DRAWBAND(MA(C,25),RGB(120,0,120),MA(C,50),RGB(256,100,100)); DRAWKLINE(HIGH,OPEN,LOW,CLOSE); MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA25:MA(CLOSE,25), LINETHICK2; MA50:MA(CLOSE,50), LINETHICK2; MA105:MA(CLOSE,105),LINETHICK5; MA210:MA(CLOSE,210),COLORYELLOW,LINETHICK5; {N為參數(shù),可調(diào)} DRAWTEXT(CURRBARSCOUNT=5+1,L/1.035,'5'); DRAWTEXT(CURRBARSCOUNT=10+1,L/1.035,'10'); DRAWTEXT(CURRBARSCOUNT=25+1,L/1.035,'25'); DRAWTEXT(CURRBARSCOUNT=25+1,MA25/1.01835,'25'); DRAWTEXT(CURRBARSCOUNT=50+1,MA50/1.01835,'50'); DRAWTEXT(CURRBARSCOUNT=60+1,L/1.035,'60'); DRAWTEXT(CURRBARSCOUNT=100+1,L/1.035,'100'); DRAWTEXT(CURRBARSCOUNT=120+1,L/1.035,'120'); DRAWTEXT(CURRBARSCOUNT=140+1,L/1.035,'140'); DRAWTEXT(CURRBARSCOUNT=160+1,L/1.035,'160'); DRAWTEXT(CURRBARSCOUNT=200+1,L/1.035,'200'); DRAWTEXT(CURRBARSCOUNT=246+1,L/1.035,'246'); ZD周:=DATE#WEEK; ZC周:=C#WEEK; ZH周:=H#WEEK; ZL周:=L#WEEK; ZO周:=O#WEEK; K0周:=IF((ZD周>REF(ZD周,1) ) OR BARSSINCE(C)=0,1,0); K1周:=CROSS(IF(REFX(K0周 OR (REF(K0周,1) AND ISLASTBAR) ,1),1,0),0.5); S1周:=MOD(SUM(K0周,0),2); N周:=N; S2周:=BACKSET(ISLASTBAR,SUMBARS(K0周,N周)); STICKLINE((K0周 OR K1周) AND S2周,ZH周,ZL周,0,0),COLORGREEN; DRAWLINE(K0周 AND S1周=1 AND S2周,ZO周,K1周 AND S1周=1 AND S2周,ZO周,0),COLORYELLOW,DOTLINE; DRAWLINE(K0周 AND S1周=1 AND S2周,ZC周,K1周 AND S1周=1 AND S2周,ZC周,0),COLORMAGENTA, LINETHICK3; DRAWLINE(K0周 AND S1周=1 AND S2周,ZH周,K1周 AND S1周=1 AND S2周,ZH周,0),DOTLINE,COLORGREEN; DRAWLINE(K0周 AND S1周=1 AND S2周,ZL周,K1周 AND S1周=1 AND S2周,ZL周,0),DOTLINE,COLORGREEN; DRAWLINE(K0周 AND S1周=0 AND S2周,ZH周,K1周 AND S1周=0 AND S2周,ZH周,0),DOTLINE,COLORGREEN; DRAWLINE(K0周 AND S1周=0 AND S2周,ZL周,K1周 AND S1周=0 AND S2周,ZL周,0),DOTLINE,COLORGREEN; DRAWLINE(K0周 AND S1周=0 AND S2周,ZC周,K1周 AND S1周=0 AND S2周,ZC周,0),COLORMAGENTA, LINETHICK3; DRAWLINE(K0周 AND S1周=0 AND S2周,ZO周,K1周 AND S1周=0 AND S2周,ZO周,0),COLORYELLOW,DOTLINE; ......................................................................................................................................................................................... 月均線 {N為參數(shù),可調(diào)} DRAWBAND(MA(C,25),RGB(180,0,180),MA(C,50),RGB(256,100,100)); DRAWKLINE(HIGH,OPEN,LOW,CLOSE); MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA20:MA(CLOSE,20); MA50:MA(CLOSE,50); MA105:MA(CLOSE,105),LINETHICK3; MA210:MA(CLOSE,210),LINETHICK3; IF(MA(C,20)>=REF(MA(C,20),1),MA20,DRAWNULL),COLORRED,LINETHICK2; DRAWTEXT(CURRBARSCOUNT=5+1,L/1.035,'5'); DRAWTEXT(CURRBARSCOUNT=10+1,L/1.035,'10'); DRAWTEXT(CURRBARSCOUNT=20+1,L/1.035,'20'); DRAWTEXT(CURRBARSCOUNT=50+1,L/1.035,'50'); DRAWTEXT(CURRBARSCOUNT=105+1,L/1.035,'105'); DRAWTEXT(CURRBARSCOUNT=120+1,L/1.035,'120'); DRAWTEXT(CURRBARSCOUNT=210+1,L/1.035,'210'); DRAWTEXT(CURRBARSCOUNT=490+1,L/1.035,'490'); DRAWTEXT(CURRBARSCOUNT=735+1,L/1.035,'735'); DRAWTEXT(CURRBARSCOUNT=980+1,L/1.035,'980'); DRAWTEXT(CURRBARSCOUNT=1225+1,L/1.035,'1225'); ZD周:=DATE#WEEK; ZC周:=C#WEEK; ZH周:=H#WEEK; ZL周:=L#WEEK; ZO周:=O#WEEK; K0周:=IF((ZD周>REF(ZD周,1) ) OR BARSSINCE(C)=0,1,0); K1周:=CROSS(IF(REFX(K0周 OR (REF(K0周,1) AND ISLASTBAR) ,1),1,0),0.5); S1周:=MOD(SUM(K0周,0),2); N周:=N; S2周:=BACKSET(ISLASTBAR,SUMBARS(K0周,N周)); STICKLINE((K0周 OR K1周) AND S2周,ZH周,ZL周,0,0),COLORGREEN; DRAWLINE(K0周 AND S1周=1 AND S2周,ZO周,K1周 AND S1周=1 AND S2周,ZO周,0),COLORYELLOW,DOTLINE; DRAWLINE(K0周 AND S1周=1 AND S2周,ZC周,K1周 AND S1周=1 AND S2周,ZC周,0),COLORMAGENTA, LINETHICK3; DRAWLINE(K0周 AND S1周=1 AND S2周,ZH周,K1周 AND S1周=1 AND S2周,ZH周,0),DOTLINE,COLORGREEN; DRAWLINE(K0周 AND S1周=1 AND S2周,ZL周,K1周 AND S1周=1 AND S2周,ZL周,0),DOTLINE,COLORGREEN; DRAWLINE(K0周 AND S1周=0 AND S2周,ZH周,K1周 AND S1周=0 AND S2周,ZH周,0),DOTLINE,COLORGREEN; DRAWLINE(K0周 AND S1周=0 AND S2周,ZL周,K1周 AND S1周=0 AND S2周,ZL周,0),DOTLINE,COLORGREEN; DRAWLINE(K0周 AND S1周=0 AND S2周,ZC周,K1周 AND S1周=0 AND S2周,ZC周,0),COLORMAGENTA, LINETHICK3; DRAWLINE(K0周 AND S1周=0 AND S2周,ZO周,K1周 AND S1周=0 AND S2周,ZO周,0),COLORYELLOW,DOTLINE; ZD月:=DATE#MONTH; ZC月:=C#MONTH; ZH月:=H#MONTH; ZL月:=L#MONTH; ZO月:=O#MONTH; K0月:=IF((ZD月>REF(ZD月,1) ) OR BARSSINCE(C)=0,1,0); K1月:=CROSS(IF(REFX(K0月 OR (REF(K0月,1) AND ISLASTBAR) ,1),1,0),0.5); S1月:=MOD(SUM(K0月,0),2); N月:=N; S2月:=BACKSET(ISLASTBAR,SUMBARS(K0月,N月)); STICKLINE((K0月 OR K1月) AND S2月,ZH月,ZL月,0,0),COLORWHITE; DRAWLINE(K0月 AND S1月=1 AND S2月,ZO月,K1月 AND S1月=1 AND S2月,ZO月,0),COLORYELLOW,LINETHICK1; DRAWLINE(K0月 AND S1月=1 AND S2月,ZC月,K1月 AND S1月=1 AND S2月,ZC月,0),COLORWHITE,LINETHICK3; DRAWLINE(K0月 AND S1月=1 AND S2月,ZH月,K1月 AND S1月=1 AND S2月,ZH月,0),DOTLINE,COLORWHITE; DRAWLINE(K0月 AND S1月=1 AND S2月,ZL月,K1月 AND S1月=1 AND S2月,ZL月,0),DOTLINE,COLORWHITE; DRAWLINE(K0月 AND S1月=0 AND S2月,ZH月,K1月 AND S1月=0 AND S2月,ZH月,0),DOTLINE,COLORWHITE; DRAWLINE(K0月 AND S1月=0 AND S2月,ZL月,K1月 AND S1月=0 AND S2月,ZL月,0),DOTLINE,COLORWHITE; DRAWLINE(K0月 AND S1月=0 AND S2月,ZC月,K1月 AND S1月=0 AND S2月,ZC月,0),COLORWHITE,LINETHICK3; DRAWLINE(K0月 AND S1月=0 AND S2月,ZO月,K1月 AND S1月=0 AND S2月,ZO月,0),COLORYELLOW,LINETHICK1; DRAWTEXT(K0月,ZH月*1.02,VAR2STR(ZH月,2)),COLORRED; DRAWTEXT(K0月,ZL月*0.98,VAR2STR(ZL月,2)),COLORGREEN; DRAWTEXT(K0月,ZC月*0.98,VAR2STR(ZC月,2)),COLORWHITE; DRAWTEXT(K0月,ZO月*0.98,VAR2STR(ZO月,2)),COLORYELLOW; * {N為參數(shù),可調(diào)} DRAWBAND(MA(C,300),RGB(120,0,120),MA(C,600),RGB(256,100,100)); DRAWBAND(MA(C,25),RGB(180,0,180),MA(C,50),RGB(216,100,100)); DRAWKLINE(HIGH,OPEN,LOW,CLOSE); MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA25:MA(CLOSE,25); MA50:MA(CLOSE,50); MA105:MA(CLOSE,105),LINETHICK4; MA210:MA(CLOSE,210),LINETHICK2; DRAWTEXT(CURRBARSCOUNT=5+1,L/1.035,'5'); DRAWTEXT(CURRBARSCOUNT=10+1,L/1.035,'10'); DRAWTEXT(CURRBARSCOUNT=20+1,L/1.035,'20'); DRAWTEXT(CURRBARSCOUNT=25+1,L/1.035,'25'); DRAWTEXT(CURRBARSCOUNT=50+1,L/1.035,'50'); DRAWTEXT(CURRBARSCOUNT=60+1,L/1.035,'60'); DRAWTEXT(CURRBARSCOUNT=80+1,L/1.035,'80'); DRAWTEXT(CURRBARSCOUNT=105+1,L/1.035,'105'); DRAWTEXT(CURRBARSCOUNT=120+1,L/1.035,'120'); DRAWTEXT(CURRBARSCOUNT=140+1,L/1.035,'140'); DRAWTEXT(CURRBARSCOUNT=160+1,L/1.035,'160'); DRAWTEXT(CURRBARSCOUNT=180+1,L/1.035,'180'); DRAWTEXT(CURRBARSCOUNT=210+1,L/1.035,'210'); DRAWTEXT(CURRBARSCOUNT=246+1,L/1.035,'246'); DRAWTEXT(CURRBARSCOUNT=492+1,L/1.035,'492'); DRAWTEXT(CURRBARSCOUNT=1230+1,L/1.035,'1230'); ZD季:=DATE#SEASON; ZC季:=C#SEASON; ZH季:=H#SEASON; ZL季:=L#SEASON; ZO季:=O#SEASON; K0季:=IF((ZD季>REF(ZD季,1) ) OR BARSSINCE(C)=0,1,0); K1季:=CROSS(IF(REFX(K0季 OR (REF(K0季,1) AND ISLASTBAR) ,1),1,0),0.5); S1季:=MOD(SUM(K0季,0),2); N季:=N; S2季:=BACKSET(ISLASTBAR,SUMBARS(K0季,N季)); STICKLINE((K0季 OR K1季) AND S2季,ZH季,ZL季,0,0),COLORGREEN; DRAWLINE(K0季 AND S1季=1 AND S2季,ZO季,K1季 AND S1季=1 AND S2季,ZO季,0),COLORGREEN; DRAWLINE(K0季 AND S1季=1 AND S2季,ZC季,K1季 AND S1季=1 AND S2季,ZC季,0),COLORGREEN,LINETHICK4; DRAWLINE(K0季 AND S1季=1 AND S2季,ZH季,K1季 AND S1季=1 AND S2季,ZH季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=1 AND S2季,ZL季,K1季 AND S1季=1 AND S2季,ZL季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=0 AND S2季,ZH季,K1季 AND S1季=0 AND S2季,ZH季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=0 AND S2季,ZL季,K1季 AND S1季=0 AND S2季,ZL季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=0 AND S2季,ZC季,K1季 AND S1季=0 AND S2季,ZC季,0),COLORGREEN,LINETHICK4; DRAWLINE(K0季 AND S1季=0 AND S2季,ZO季,K1季 AND S1季=0 AND S2季,ZO季,0),COLORGREEN; DRAWTEXT(K0季,ZH季*1.02,VAR2STR(ZH季,2)),COLORRED; DRAWTEXT(K0季,ZL季*0.98,VAR2STR(ZL季,2)),COLORGREEN; DRAWTEXT(K0季,ZC季*0.98,VAR2STR(ZC季,2)),COLORGREEN; DRAWTEXT(K0季,ZO季*0.98,VAR2STR(ZO季,2)),COLORGREEN; ******************************************************************************************* 季 {N為參數(shù),可調(diào)} DRAWBAND(MA(C,300),RGB(120,0,120),MA(C,600),RGB(256,100,100)); DRAWBAND(MA(C,25),RGB(180,0,180),MA(C,50),RGB(216,100,100)); DRAWKLINE(HIGH,OPEN,LOW,CLOSE); MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA25:MA(CLOSE,25); MA50:MA(CLOSE,50); MA105:MA(CLOSE,105),LINETHICK4; MA210:MA(CLOSE,210),LINETHICK2; DRAWTEXT(CURRBARSCOUNT=5+1,L/1.035,'5'); DRAWTEXT(CURRBARSCOUNT=10+1,L/1.035,'10'); DRAWTEXT(CURRBARSCOUNT=20+1,L/1.035,'20'); DRAWTEXT(CURRBARSCOUNT=25+1,L/1.035,'25'); DRAWTEXT(CURRBARSCOUNT=50+1,L/1.035,'50'); DRAWTEXT(CURRBARSCOUNT=60+1,L/1.035,'60'); DRAWTEXT(CURRBARSCOUNT=80+1,L/1.035,'80'); DRAWTEXT(CURRBARSCOUNT=105+1,L/1.035,'105'); DRAWTEXT(CURRBARSCOUNT=120+1,L/1.035,'120'); DRAWTEXT(CURRBARSCOUNT=140+1,L/1.035,'140'); DRAWTEXT(CURRBARSCOUNT=160+1,L/1.035,'160'); DRAWTEXT(CURRBARSCOUNT=180+1,L/1.035,'180'); DRAWTEXT(CURRBARSCOUNT=210+1,L/1.035,'210'); DRAWTEXT(CURRBARSCOUNT=246+1,L/1.035,'246'); DRAWTEXT(CURRBARSCOUNT=492+1,L/1.035,'492'); DRAWTEXT(CURRBARSCOUNT=1230+1,L/1.035,'1230'); ZD季:=DATE#SEASON; ZC季:=C#SEASON; ZH季:=H#SEASON; ZL季:=L#SEASON; ZO季:=O#SEASON; K0季:=IF((ZD季>REF(ZD季,1) ) OR BARSSINCE(C)=0,1,0); K1季:=CROSS(IF(REFX(K0季 OR (REF(K0季,1) AND ISLASTBAR) ,1),1,0),0.5); S1季:=MOD(SUM(K0季,0),2); N季:=N; S2季:=BACKSET(ISLASTBAR,SUMBARS(K0季,N季)); STICKLINE((K0季 OR K1季) AND S2季,ZH季,ZL季,0,0),COLORGREEN; DRAWLINE(K0季 AND S1季=1 AND S2季,ZO季,K1季 AND S1季=1 AND S2季,ZO季,0),COLORGREEN; DRAWLINE(K0季 AND S1季=1 AND S2季,ZC季,K1季 AND S1季=1 AND S2季,ZC季,0),COLORGREEN,LINETHICK4; DRAWLINE(K0季 AND S1季=1 AND S2季,ZH季,K1季 AND S1季=1 AND S2季,ZH季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=1 AND S2季,ZL季,K1季 AND S1季=1 AND S2季,ZL季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=0 AND S2季,ZH季,K1季 AND S1季=0 AND S2季,ZH季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=0 AND S2季,ZL季,K1季 AND S1季=0 AND S2季,ZL季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=0 AND S2季,ZC季,K1季 AND S1季=0 AND S2季,ZC季,0),COLORGREEN,LINETHICK4; DRAWLINE(K0季 AND S1季=0 AND S2季,ZO季,K1季 AND S1季=0 AND S2季,ZO季,0),COLORGREEN; DRAWTEXT(K0季,ZH季*1.02,VAR2STR(ZH季,2)),COLORRED; DRAWTEXT(K0季,ZL季*0.98,VAR2STR(ZL季,2)),COLORGREEN; DRAWTEXT(K0季,ZC季*0.98,VAR2STR(ZC季,2)),COLORGREEN; DRAWTEXT(K0季,ZO季*0.98,VAR2STR(ZO季,2)),COLORGREEN; ************************************************************************************** 年均線 DRAWBAND(MA(C,1215),RGB(220,0,180),MA(C,2430),RGB(326,100,100)); DRAWBAND(MA(C,305),RGB(120,0,120),MA(C,610),RGB(256,100,100)); DRAWKLINE(HIGH,OPEN,LOW,CLOSE); MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA25:MA(CLOSE,25),COLORGREEN,LINETHICK2; MA50:MA(CLOSE,50),LINETHICK2; MA105:MA(CLOSE,105),LINETHICK3; MA210:MA(CLOSE,210),LINETHICK3; IF(MA(C,25)>=REF(MA(C,25),1),MA25,DRAWNULL),COLORRED,LINETHICK2; IF(MA(C,105)>=REF(MA(C,105),1),MA105,DRAWNULL),COLORMAGENTA,LINETHICK3; DRAWTEXT(CURRBARSCOUNT=5+1,L/1.035,'5'); DRAWTEXT(CURRBARSCOUNT=10+1,L/1.035,'10'); DRAWTEXT(CURRBARSCOUNT=25+1,L/1.035,'25'); DRAWTEXT(CURRBARSCOUNT=30+1,L/1.035,'30'); DRAWTEXT(CURRBARSCOUNT=105+1,L/1.035,'105'); DRAWTEXT(CURRBARSCOUNT=50+1,MA50/1.01835,'50'); DRAWTEXT(CURRBARSCOUNT=120+1,L/1.035,'120'); DRAWTEXT(CURRBARSCOUNT=210+1,L/1.035,'210'); DRAWTEXT(CURRBARSCOUNT=492+1,L/1.035,'2年'); DRAWTEXT(CURRBARSCOUNT=738+1,L/1.035,'738'); DRAWTEXT(CURRBARSCOUNT=984+1,L/1.035,'984'); DRAWTEXT(CURRBARSCOUNT=1230+1,L/1.035,'1230'); ZD:=DATE#YEAR; ZC:=C#YEAR; ZH:=H#YEAR; ZL:=L#YEAR; ZO:=O#YEAR; K0:=IF((ZD>REF(ZD,1) ) OR BARSSINCE(C)=0,1,0); K1:=CROSS(IF(REFX(K0 OR (REF(K0,1) AND ISLASTBAR) ,1),1,0),0.5); S1:=MOD(SUM(K0,0),2); S2:=BACKSET(ISLASTBAR,SUMBARS(K0,N1)),LINETHICK2; STICKLINE((K0 OR K1) AND S2,ZH,ZL,0,0),COLORRED,LINETHICK2; DRAWLINE(K0 AND S1=1 AND S2,ZO,K1 AND S1=1 AND S2,ZO,0),COLORRED; DRAWLINE(K0 AND S1=1 AND S2,ZC,K1 AND S1=1 AND S2,ZC,0),COLORRED,LINETHICK4; DRAWLINE(K0 AND S1=1 AND S2,ZH,K1 AND S1=1 AND S2,ZH,0),COLORRED,DOTLINE; DRAWLINE(K0 AND S1=1 AND S2,ZL,K1 AND S1=1 AND S2,ZL,0),COLORRED,DOTLINE; DRAWLINE(K0 AND S1=0 AND S2,ZH,K1 AND S1=0 AND S2,ZH,0),COLORRED,DOTLINE; DRAWLINE(K0 AND S1=0 AND S2,ZL,K1 AND S1=0 AND S2,ZL,0),COLORRED,DOTLINE; DRAWLINE(K0 AND S1=0 AND S2,ZC,K1 AND S1=0 AND S2,ZC,0),COLORRED,LINETHICK4; DRAWLINE(K0 AND S1=0 AND S2,ZO,K1 AND S1=0 AND S2,ZO,0),COLORRED; DRAWTEXT(K0,ZH*1.02,VAR2STR(ZH,2)),COLORRED; DRAWTEXT(K0,ZL*0.98,VAR2STR(ZL,2)),COLORRED; DRAWTEXT(K0,ZC*0.98,VAR2STR(ZC,2)),COLORRED; DRAWTEXT(K0,ZO*0.98,VAR2STR(ZO,2)),COLORRED; ZD季:=DATE#SEASON; ZC季:=C#SEASON; ZH季:=H#SEASON; ZL季:=L#SEASON; ZO季:=O#SEASON; K0季:=IF((ZD季>REF(ZD季,1) ) OR BARSSINCE(C)=0,1,0); K1季:=CROSS(IF(REFX(K0季 OR (REF(K0季,1) AND ISLASTBAR) ,1),1,0),0.5); S1季:=MOD(SUM(K0季,0),2); N季:=N1; S2季:=BACKSET(ISLASTBAR,SUMBARS(K0季,N季)); STICKLINE((K0季 OR K1季) AND S2季,ZH季,ZL季,0,0),COLORGREEN; DRAWLINE(K0季 AND S1季=1 AND S2季,ZO季,K1季 AND S1季=1 AND S2季,ZO季,0),COLORGREEN; DRAWLINE(K0季 AND S1季=1 AND S2季,ZC季,K1季 AND S1季=1 AND S2季,ZC季,0),COLORGREEN,LINETHICK4; DRAWLINE(K0季 AND S1季=1 AND S2季,ZH季,K1季 AND S1季=1 AND S2季,ZH季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=1 AND S2季,ZL季,K1季 AND S1季=1 AND S2季,ZL季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=0 AND S2季,ZH季,K1季 AND S1季=0 AND S2季,ZH季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=0 AND S2季,ZL季,K1季 AND S1季=0 AND S2季,ZL季,0),DOTLINE,COLORGREEN; DRAWLINE(K0季 AND S1季=0 AND S2季,ZC季,K1季 AND S1季=0 AND S2季,ZC季,0),COLORGREEN,LINETHICK4; DRAWLINE(K0季 AND S1季=0 AND S2季,ZO季,K1季 AND S1季=0 AND S2季,ZO季,0),COLORGREEN; ZD月:=DATE#MONTH; ZC月:=C#MONTH; ZH月:=H#MONTH; ZL月:=L#MONTH; K0月:=IF((ZD月>REF(ZD月,1) ) OR BARSSINCE(C)=0,1,0); K1月:=CROSS(IF(REFX(K0月 OR (REF(K0月,1) AND ISLASTBAR) ,1),1,0),0.5); S1月:=MOD(SUM(K0月,0),2); N月:=N1; S2月:=BACKSET(ISLASTBAR,SUMBARS(K0月,N月)); STICKLINE((K0月 OR K1月) AND S2月,ZH月,ZL月,0,0),COLORWHITE; DRAWLINE(K0月 AND S1月=1 AND S2月,ZC月,K1月 AND S1月=1 AND S2月,ZC月,0),COLORWHITE,LINETHICK2; DRAWLINE(K0月 AND S1月=1 AND S2月,ZH月,K1月 AND S1月=1 AND S2月,ZH月,0),DOTLINE,COLORWHITE; DRAWLINE(K0月 AND S1月=1 AND S2月,ZL月,K1月 AND S1月=1 AND S2月,ZL月,0),DOTLINE,COLORWHITE; DRAWLINE(K0月 AND S1月=0 AND S2月,ZH月,K1月 AND S1月=0 AND S2月,ZH月,0),DOTLINE,COLORWHITE; DRAWLINE(K0月 AND S1月=0 AND S2月,ZL月,K1月 AND S1月=0 AND S2月,ZL月,0),DOTLINE,COLORWHITE; DRAWLINE(K0月 AND S1月=0 AND S2月,ZC月,K1月 AND S1月=0 AND S2月,ZC月,0),COLORWHITE,LINETHICK2; DRAWTEXT(K0月,ZH月*1.02,VAR2STR(ZH月,2)),COLORRED,NODRAW; DRAWTEXT(K0月,ZL月*0.98,VAR2STR(ZL月,2)),COLORGREEN,NODRAW; DRAWTEXT(K0月,ZC月*0.98,VAR2STR(ZC月,2)),COLORWHITE; A:=C/REF(C,1)>1.098{漲停}; A1:=REF(L,1)<REF(L,2) AND C>=REF(H,2) AND C>=REF(H,1) AND C>=MA(C,5); XG:=REF(L,1)<REF(L,2) AND C>=REF(H,2) AND C>=REF(H,1) AND C/REF(C,1)>1.098{漲停}; STICKLINE(A1,LOW,HIGH,0.1,0),COLORLIRED; STICKLINE(XG,LOW,HIGH,0.1,0),COLORYELLOW; |
|