A1:=EMA((EMA(CLOSE,1)+EMA(CLOSE,3)+EMA(CLOSE,5))/3,3);
A2:=EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+EMA( CLOSE,7))/3,3);
A3:=EMA((EMA(CLOSE,5)+EMA(CLOSE,7)+EMA( CLOSE,9))/3,3);
A4:=EMA((EMA(CLOSE,7)+EMA(CLOSE,9)+EMA( CLOSE,11))/3,3);
A5:=EMA((EMA(CLOSE,9)+EMA(CLOSE,11)+EMA( CLOSE,13))/3,3);
A6:=EMA((EMA(CLOSE,11)+EMA(CLOSE,13)+EMA( CLOSE,15))/3,3);
A7:=EMA((EMA(CLOSE,13)+EMA(CLOSE,15)+EMA( CLOSE,17))/3,3);
A8:=EMA((EMA(CLOSE,15)+EMA(CLOSE,17)+EMA( CLOSE,19))/3,3);
A9:=EMA((EMA(CLOSE,17)+EMA(CLOSE,19)+EMA( CLOSE,21))/3,3);
A10:=EMA((EMA(CLOSE,19)+EMA(CLOSE,21)+EMA( CLOSE,23))/3,3);
A11:=EMA((EMA(CLOSE,21)+EMA(CLOSE,23)+EMA( CLOSE,25))/3,3);
A:=EMA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33))/3,3),LINETHICK0;
A15:=A-(A1-A*0.997),COLORFF1010;
A16:=A-(A2-A),COLORFF2010;
A17:=A-(A3-A),COLORFF3010;
A18:=A-(A4-A),COLORFF4010;
A19:=A-(A5-A),COLORFF5010;
A20:=A-(A6-A),COLORFF6010;
A21:=A-(A7-A),COLORFF7010;
A22:=A-(A8-A),COLORFF8010;
A23:=A-(A9-A),COLORFF9010;
A24:=A-(A10-A),COLORFFC010;
A25:=A-(A11-A*0.997),COLORFFE010;
PLOYLINE(1,A15),COLORFF1010;PLOYLINE(1,A16),COLORFF2010;
PLOYLINE(1,A17),COLORFF3010;PLOYLINE(1,A18),COLORFF4010;
PLOYLINE(1,A19),COLORFF5010;PLOYLINE(1,A20),COLORFF6010;
PLOYLINE(1,A21),COLORFF7010;PLOYLINE(1,A22),COLORFF8010;
PLOYLINE(1,A23),COLORFF9010;PLOYLINE(1,A24),COLORFFC010;
PLOYLINE(1,A25),COLORFFE010;
PLOYLINE(1,A1),COLOR1010FF;PLOYLINE(1,A2),COLOR1020FF;
PLOYLINE(1,A3),COLOR1030FF;PLOYLINE(1,A4),COLOR1040FF;
PLOYLINE(1,A5),COLOR1050FF;PLOYLINE(1,A6),COLOR1060FF;
PLOYLINE(1,A7),COLOR1070FF;PLOYLINE(1,A8),COLOR1080FF;
PLOYLINE(1,A9),COLOR1090FF;PLOYLINE(1,A10),COLOR10C0FF;
PLOYLINE(1,A11),COLOR10E0FF;
A0:=(3*CLOSE+LOW+OPEN+HIGH)/6;
中轴: MA(CLOSE,21),COLORFFCC33,;
压力:中轴 + 2*STD(CLOSE,21),COLORRED,LINETHICK2;
支撑: 中轴 - 2*STD(CLOSE,21),COLORRED,LINETHICK2;
DRAWICON(CLOSE>=MA(CLOSE,20),MA(CLOSE,20),13) ;
DRAWICON(CLOSE<MA(CLOSE,20),MA(CLOSE,20),14);
FD:=(HIGH-LOW)/3;
OPEN1:=OPEN>FD*2+LOW;
OPEN3:=OPEN<FD+LOW;
OPEN2:=NOT(OPEN1 OR OPEN3);
CLOSE1:=CLOSE>FD*2+LOW;
CLOSE3:=CLOSE<FD+LOW;
CLOSE2:=NOT(CLOSE1 OR CLOSE3);
DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2);
WQS1:=OPEN2 AND CLOSE2;
KFZD:=NOT(DFZD OR WQS1);
ZD:=(HIGH+LOW)/2;
QSXS:=ZD>REF(HIGH,1);
QSXX:=ZD<REF(LOW,1);
WQS2:=NOT(QSXS OR QSXX);
ZTDL:=VOL>REF(VOL,1)*1.1 OR AMOUNT>REF(AMOUNT,1)*1.5;
FTDL:=VOL<REF(VOL,1)*0.7 OR AMOUNT<REF(AMOUNT,1)*0.5;
ZTDL2:=ZTDL AND FTDL<1;
FTDL2:=FTDL AND ZTDL<1;
MFI1:=(HIGH-LOW)/(VOL/10000);
MFI2:=(HIGH-LOW)/(AMOUNT/1000000);
ZMFI1:=MFI1>REF(MFI1,1);
ZMFI2:=MFI2>REF(MFI2,1);
ZMFI:=ZMFI1 OR ZMFI2;
FMFI:=NOT(ZMFI);
LD:=ZTDL2 AND ZMFI;
ST:=FTDL2 AND FMFI;
WZ:=FTDL2 AND ZMFI;
QF:=ZTDL2 AND FMFI;
A31:=REF(HIGH,2);
A32:=FILTER(HHV(HIGH,5)=A31,2);
A33:=BACKSET(A32,3);
A34:=IF(FILTER(A33,2),HIGH,0);
A35:=SUM(A34,3);
C1:=REF(LOW,2);
C2:=FILTER(LLV(LOW,5)=C1,2);
C3:=BACKSET(C2,3);
C4:=IF(FILTER(C3,2),LOW,0);
C5:=SUM(C4,3);
XHWZ1:=HIGH*1.003;
XHWZ2:=LOW*0.998;
XHWZ3:=IF(QSXX,XHWZ2,IF(QSXS,XHWZ1,IF(DFZD,XHWZ1,XHWZ2)));
XHWZ4:=IF(ZD<REF(ZD,1),XHWZ2,XHWZ1);
S1:=DFZD AND QSXS ;
S2:=KFZD AND QSXX ;
S3:=DFZD AND QSXX;
S4:=KFZD AND QSXS;
S5:=DFZD AND WQS2;
S6:=KFZD AND WQS2;
S7:=WQS1 AND (QSXS OR QSXX OR WQS2);
STICKLINE(1,LOW,HIGH,0.0,0 ),COLOR00FFFF;
STICKLINE(S2 ,CLOSE ,OPEN,3,0 ),COLORFF2020;
STICKLINE(S1,CLOSE,OPEN,3 ,0 ),COLOR2020FF;
STICKLINE(S3,CLOSE,OPEN,3,0),COLORYELLOW;
STICKLINE(S4,CLOSE,OPEN,3,0),COLORCYAN;
STICKLINE(S5,CLOSE,OPEN,3,0),COLORMAGENTA;
STICKLINE(S6,CLOSE,OPEN,3,0),COLORGREEN;
STICKLINE(S7,CLOSE,OPEN,3,0),COLORGRAY;
STICKLINE(1,CLOSE,OPEN,0,0),COLORWHITE;
修改了一下的源码:
A1:=EMA((EMA(CLOSE,1)+EMA(CLOSE,3)+EMA(CLOSE,5))/3,3);
A2:=EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+EMA( CLOSE,7))/3,3);
A3:=EMA((EMA(CLOSE,5)+EMA(CLOSE,7)+EMA( CLOSE,9))/3,3);
A4:=EMA((EMA(CLOSE,7)+EMA(CLOSE,9)+EMA( CLOSE,11))/3,3);
A5:=EMA((EMA(CLOSE,9)+EMA(CLOSE,11)+EMA( CLOSE,13))/3,3);
A6:=EMA((EMA(CLOSE,11)+EMA(CLOSE,13)+EMA( CLOSE,15))/3,3);
A7:=EMA((EMA(CLOSE,13)+EMA(CLOSE,15)+EMA( CLOSE,17))/3,3);
A8:=EMA((EMA(CLOSE,15)+EMA(CLOSE,17)+EMA( CLOSE,19))/3,3);
A9:=EMA((EMA(CLOSE,17)+EMA(CLOSE,19)+EMA( CLOSE,21))/3,3);
A10:=EMA((EMA(CLOSE,19)+EMA(CLOSE,21)+EMA( CLOSE,23))/3,3);
A11:=EMA((EMA(CLOSE,21)+EMA(CLOSE,23)+EMA( CLOSE,25))/3,3);
A:=EMA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33))/3,3),LINETHICK0;
A15:=A-(A1-A*0.997),COLORFF1010;
A16:=A-(A2-A),COLORFF2010;
A17:=A-(A3-A),COLORFF3010;
A18:=A-(A4-A),COLORFF4010;
A19:=A-(A5-A),COLORFF5010;
A20:=A-(A6-A),COLORFF6010;
A21:=A-(A7-A),COLORFF7010;
A22:=A-(A8-A),COLORFF8010;
A23:=A-(A9-A),COLORFF9010;
A24:=A-(A10-A),COLORFFC010;
A25:=A-(A11-A*0.997),COLORFFE010;
PLOYLINE(1,A15),COLORFF1010;PLOYLINE(1,A16),COLORFF2010;
PLOYLINE(1,A17),COLORFF3010;PLOYLINE(1,A18),COLORFF4010;
PLOYLINE(1,A19),COLORFF5010;PLOYLINE(1,A20),COLORFF6010;
PLOYLINE(1,A21),COLORFF7010;PLOYLINE(1,A22),COLORFF8010;
PLOYLINE(1,A23),COLORFF9010;PLOYLINE(1,A24),COLORFFC010;
PLOYLINE(1,A25),COLORFFE010;
PLOYLINE(1,A1),COLOR1010FF;PLOYLINE(1,A2),COLOR1020FF;
PLOYLINE(1,A3),COLOR1030FF;PLOYLINE(1,A4),COLOR1040FF;
PLOYLINE(1,A5),COLOR1050FF;PLOYLINE(1,A6),COLOR1060FF;
PLOYLINE(1,A7),COLOR1070FF;PLOYLINE(1,A8),COLOR1080FF;
PLOYLINE(1,A9),COLOR1090FF;PLOYLINE(1,A10),COLOR10C0FF;
PLOYLINE(1,A11),COLOR10E0FF;
A0:=(3*CLOSE+LOW+OPEN+HIGH)/6;
中轴: MA(CLOSE,21),COLORFFCC33,;
压力:中轴 + 2*STD(CLOSE,21),COLORRED,LINETHICK2;
支撑: 中轴 - 2*STD(CLOSE,21),COLORRED,LINETHICK2;
DRAWTEXT(C>=MA(C,20) ,MA(C,20) ,'●' ) ,COLOR0000FF;
DRAWTEXT(C<MA(C,20) ,MA(C,20) ,'●' ),COLORGREEN ;
FD:=(HIGH-LOW)/3;
OPEN1:=OPEN>FD*2+LOW;
OPEN3:=OPEN<FD+LOW;
OPEN2:=NOT(OPEN1 OR OPEN3);
CLOSE1:=CLOSE>FD*2+LOW;
CLOSE3:=CLOSE<FD+LOW;
CLOSE2:=NOT(CLOSE1 OR CLOSE3);
DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2);
WQS1:=OPEN2 AND CLOSE2;
KFZD:=NOT(DFZD OR WQS1);
ZD:=(HIGH+LOW)/2;
QSXS:=ZD>REF(HIGH,1);
QSXX:=ZD<REF(LOW,1);
WQS2:=NOT(QSXS OR QSXX);
ZTDL:=VOL>REF(VOL,1)*1.1 OR AMOUNT>REF(AMOUNT,1)*1.5;
FTDL:=VOL<REF(VOL,1)*0.7 OR AMOUNT<REF(AMOUNT,1)*0.5;
ZTDL2:=ZTDL AND FTDL<1;
FTDL2:=FTDL AND ZTDL<1;
MFI1:=(HIGH-LOW)/(VOL/10000);
MFI2:=(HIGH-LOW)/(AMOUNT/1000000);
ZMFI1:=MFI1>REF(MFI1,1);
ZMFI2:=MFI2>REF(MFI2,1);
ZMFI:=ZMFI1 OR ZMFI2;
FMFI:=NOT(ZMFI);
LD:=ZTDL2 AND ZMFI;
ST:=FTDL2 AND FMFI;
WZ:=FTDL2 AND ZMFI;
QF:=ZTDL2 AND FMFI;
A31:=REF(HIGH,2);
A32:=FILTER(HHV(HIGH,5)=A31,2);
A33:=BACKSET(A32,3);
A34:=IF(FILTER(A33,2),HIGH,0);
A35:=SUM(A34,3);
C1:=REF(LOW,2);
C2:=FILTER(LLV(LOW,5)=C1,2);
C3:=BACKSET(C2,3);
C4:=IF(FILTER(C3,2),LOW,0);
C5:=SUM(C4,3);
XHWZ1:=HIGH*1.003;
XHWZ2:=LOW*0.998;
XHWZ3:=IF(QSXX,XHWZ2,IF(QSXS,XHWZ1,IF(DFZD,XHWZ1,XHWZ2)));
XHWZ4:=IF(ZD<REF(ZD,1),XHWZ2,XHWZ1);
S1:=DFZD AND QSXS ;
S2:=KFZD AND QSXX ;
S3:=DFZD A
|