源碼
VAR1:=(C+H+O+L)/4;
賣(mài)出:=XMA(VAR1,20)*(1+80/1000),POINTDOT,COLORGREEN,LINETHICK3;
買(mǎi)入:=XMA(VAR1,32)*(1-100/1000),POINTDOT,COLORMAGENTA,LINETHICK3;
幅度:=100*(賣(mài)出-買(mǎi)入)/買(mǎi)入,NODRAW;
菩提:=買(mǎi)入+(賣(mài)出-買(mǎi)入)*2/3;{此函數(shù)僅做參考線,為提前趨勢(shì)預(yù)測(cè)線,上漲途中向下見(jiàn)頂,下跌途中向上見(jiàn)底};
般:=XMA(CLOSE,7);
若:=MEMA(CLOSE,3);
全綠K:=LONGCROSS(若,般,3) AND H>菩提;
RSVL:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
KL:=SMA(RSVL,3,1);
DL:=SMA(KL,3,1);
KKL:=SMA(RSVL,3,1);
DD:=SMA(KL,3,1);
NL:=KKL+DD;
買(mǎi)入L:=DRAWICON(CROSS(NL,50),50,1),COLORRED;
賣(mài)出L:=DRAWICON(CROSS(160,NL),160,2),COLORGREEN;
賣(mài)出K:=CROSS(160,NL);
TM:=(CLOSE*1.0+LOW*0.0+HIGH*0.0);
T1M:=V;
SL1M:=(TM/REF(TM,1)-1)*1000;
趨勢(shì)5:=XMA(XMA(XMA(SL1M,20),20),20),COLORYELLOW;
趨勢(shì)6:=XMA(XMA(XMA(SL1M,10),10),10),COLORMAGENTA;
QA9:=趨勢(shì)6-趨勢(shì)5;
QA10:=EMA(QA9,89);
買(mǎi)入M:=(QA9-QA10)*2,COLORSTICK;
M1:=EMA(C,5);M2:=EMA(C,13);M3:=EMA(C,34),COLORBLUE,LINETHICK2;
MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);
VAR1A1H:=(REF(CLOSE,1)-REF(ATR,1));
買(mǎi)線1:=REF(EMA(C,14),1)COLORWHITE,LINETHICK3;
賣(mài)線1:=IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<>
高1:=REF(HHV(H,150),3);
低1:=REF(LLV(L,150),3);
{STICKLINE(買(mǎi)線1>=賣(mài)線1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR001050;
STICKLINE(買(mǎi)線1<>
STICKLINE(買(mǎi)入M>=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;
STICKLINE(買(mǎi)入M<>
STICKLINE(買(mǎi)入L,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORYELLOW;
STICKLINE(賣(mài)出K AND 買(mǎi)入M<>
多空趨勢(shì)彩帶:DRAWBAND(SMA(C,6.5,1),RGB(255,97,0),SMA(C,13.5,1),RGB(0,128,0));
中線:=(賣(mài)出+買(mǎi)入)/2,POINTDOT,COLORWHITE,LINETHICK4;
MA5:=MA(C,5),COLOR000099;
MA10:=MA(C,10),COLOR006600;
MA20:=MA(C,20),COLOR005555;
ZB1:=EMA(C,34);{ 原為55或65 }
長(zhǎng)期趨勢(shì):EMA(ZB1,13),COLORRED,LINETHICK3;{原為34或55}
STICKLINE(C>=REF(C,1),O,C,3,1),COLOR000000;
STICKLINE(C<>
AA3:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)
AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)
AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);
AA2:= EMA(CLOSE,14)>EMA(CLOSE,15)
AND EMA(CLOSE,15)>EMA(CLOSE,20) AND EMA(CLOSE,20)>EMA(CLOSE,30) AND EMA(CLOSE,30)>EMA(CLOSE,60) AND EMA(CLOSE,60)>EMA(CLOSE,90)
AND EMA(CLOSE,90)>EMA(CLOSE,120) AND EMA(CLOSE,120)>EMA(CLOSE,250);
A1:= AA2 AND AA3;
A2:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)
AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)
AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);
B1:=IF(A1,1,2);
VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));
VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
{紅K}
STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),L,H,0,0),COLOR0000DD;
STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),3,0),COLOR000099;
STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),2,0),COLOR0000BB;
STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),1,0),COLOR0000DD;
VARDMZ:=((CLOSE < ref(close,1))="" and="" (close=""><>
VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= ref(close,1)))="" and="" (close="">= REF(CLOSE,2)));
VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=>=>
{綠K}
STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),3 ,0 ),COLOR00BB00;
STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),2 ,0 ),COLOR00DD00;
STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),1 ,0 ),COLOR00FF00;
STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),H,L,0,0 ),COLOR00DD00;
VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ);
VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ);
{粉紅}
STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),3 ,0 ),COLORFF11FF;
STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),2 ,0 ),COLORFF44FF;
STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),1 ,0 ),COLORFF66FF;
{黃色}
STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00AAFF;
STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00CCFF;
STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR00EEFF;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
TTJ:=CROSS(FF,MA15);
上:=EMA(C,3),COLORBLUE,LINETHICK1;
中:=EMA(C,5),COLORWHITE,LINETHICK1;
下:=EMA(中,5),COLOR00FF00,LINETHICK1;
QQ:= C<>
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
MA1Q:=MEMA(CLOSE,5);
MA2Q:=ATAN((MA1Q/REF(MA1Q,1)-1)*100)*180/3.1416;
MA3Q:=IF(MA2Q>0,MA2Q,MA2Q);
MA5Q:=MA(CLOSE,5),COLOR888899;
MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND
REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND
C>=REF(C,1) AND C>=REF(C,2);
VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)
VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)<=ref(c,3) and="">=ref(c,3)>=REF(C,1); VAR05:=REF(C,1)=HHV(C,4) AND C REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<> VAR06:=V5>REF(V5,1) AND REF(V5,1)<> VAR07:=LOW VAR08:=VAR07 AND COUNT(VAR06,2); VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR10:=EMA(MA(C,13),13); VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2)>0,2)> CROSS(VAR09,MA(VAR09,2)))=1,5); VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND CROSS(MA(VAR09,2),VAR09))=1,1); VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10; VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3); VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18)); VAR16:=VAR08 AND NOT(REF(VAR08,1)); RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSVQ,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 金叉:=CROSS(J,D); 死叉:=CROSS(D,J); 買(mǎi)1:=(VAR14 OR VAR15) AND VAR11; 買(mǎi)2:=(VAR14 OR VAR15) AND VAR04; 買(mǎi)3:=(VAR14 OR VAR15) AND VAR02; 買(mǎi)4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11); 買(mǎi)5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11); TTJ0:=VAR16; TTJ1:=買(mǎi)1 OR 買(mǎi)2 OR 買(mǎi)3 OR 買(mǎi)4 OR 買(mǎi)5 AND MM; XG0:=TTJ AND TTJ0; XG1:=TTJ AND TTJ1; XG11:=XG0 OR XG1; PL5:=ZIG(3,5); EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=ref(zig(3,5),2) and="">=ref(zig(3,5),2)><> EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3); PL10:=ZIG(3,10); EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=ref(zig(3,10),2) and="">=ref(zig(3,10),2)><> EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3); PL20:=ZIG(3,20); EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=ref(zig(3,20),2) and="">=ref(zig(3,20),2)><> EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3); PL40:=ZIG(3,40); 走強(qiáng)1:=BARSLAST(PL5<> 走弱1:=BARSLAST(PL5>REF(PL5,1)); 走強(qiáng)2:=BARSLAST(PL10<> 走弱2:=BARSLAST(PL10>REF(PL10,1)); 走強(qiáng)3:=BARSLAST(PL20<> 走弱3:=BARSLAST(PL20>REF(PL20,1)); ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走強(qiáng)2),0); ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走強(qiáng)2),0); DTJZ5:=IF(PL10<> DTJD5:=IF(PL10<> ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走強(qiáng)3),0); ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走強(qiáng)3),0); DTJZ10:=IF(PL20<> DTJD10:=IF(PL20<> TJ11:=EN2 AND ZTJZ5=1; TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2; TJ33:=EN2 AND DTJZ10=1; TJ44:=EN3 AND ZTJZ10=1; TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2; XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55; XGQ:=XG11 OR XG22; W18:=EXIST(XGQ,1); DRAWTEXT(XGQ,L-0.1,'●放心買(mǎi)'),COLORRED; SQX:=(C-MA(CLOSE,13))*100; DIFF:=EMA(MA(SQX,7),1),COLORWHITE; DEA:=EMA(DIFF,7),COLORYELLOW; MACD:=(DIFF-DEA)*2,COLORSTICK; 奉獻(xiàn)理想專用:IF((CROSS(DIFF,DEA) AND DIFF<-0.1)>-0.1)> 低位金叉:=IF(CROSS(DIFF,DEA) AND DIFF<> IF(CROSS(DIFF,DEA) AND DIFF<> {再上N均線 N 10 1 100 1} MA1:=MA(C,5); MA2:=MA(C,10); MA3:=MA(C,21); 破N:=REF(MA1,1)REF(MA2,1); 試摸N:=C>MA(C,10) OR H>=MA2; 再上N:=C>O AND REF(C,1)< ma(c,10)="" and="" 試摸n="" and="" 破n="" and=""><> 有行情:=再上N AND (CROSS(C,長(zhǎng)期趨勢(shì)) OR CROSS(L,長(zhǎng)期趨勢(shì)) OR CROSS(H,長(zhǎng)期趨勢(shì))); DRAWTEXT(有行情,LOW-0.2,'●有行情'),COLORGREEN; VAR10B:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11B:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=ref(zig(3,6),2) and="">=ref(zig(3,6),2)><> VAR12B:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3); VAR13B:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=ref(zig(3,22),2) and="">=ref(zig(3,22),2)><> VAR14B:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3); VAR15B:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=ref(zig(3,51),2) and="">=ref(zig(3,51),2)><>
聯(lián)系客服