主图
MA7:=MA(H,7)*0.99,COLORMAGENTA;
空线:MA(C,25),COLORGREEN;
AA:=空线>REF(空线,1);
多线:IF(AA,空线,DRAWNULL),COLORRED;
N:=MA(CLOSE,34);
F1:=REF(L,1)=LLV(L,30) AND REF(C>O*1.2,1) AND L>REF(L,1);
F2:=BARSLAST(F1);
F3:=COUNT(CROSS(C,空线),F2) AND AA AND CROSS(C,空线);
DRAWICON(F3,L,9);
MA77:=H>MA7 AND O<MA7 AND MA7>REF(MA7,1) AND REF(MA7>REF(MA7,1),2) AND REF(MA7>空线,2) AND 空线>REF(空线,1) AND MA7>空线 AND O/空线<1.036 AND MA7/空线<1.036 AND DYNAINFO(4)!=0 ;
STICKLINE(C>=N AND C>=O,C,O,2.8,0),COLORRED;
STICKLINE(C>=N AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=N AND C<O,C,O,2.8,1),COLORRED;
STICKLINE(C>=N AND C<O,O,H,0,0),COLORRED;
STICKLINE(C>=N AND C<O,C,L,0,0),COLORRED;
STICKLINE(C<N AND C>O,C,O,2.8,1),COLORFFFF00;
STICKLINE(C<N AND C<=O,C,O,2.8,1),COLORFFFF00;
STICKLINE(C<N AND C<=O,H,L,0,1),COLORFFFF00;
STICKLINE(C<N AND C>O,C,H,0,1),COLORFFFF00;
STICKLINE(C<N AND C>O,O,L,0,1),COLORFFFF00;
AA1:=MA(C,5);
BB1:=MA(C,15);
A:=CROSS(AA1,BB1);
STICKLINE(A AND C<N,HHV(H,4),HHV(H,4),50,1),COLORGREEN;
DRAWTEXT(A AND C<N,HHV(H,4),'加做空'),COLORGREEN;
STICKLINE(A AND C>=N,LLV(L,4),LLV(L,4),50,1),COLORMAGENTA;
DRAWTEXT(A AND C>=N,LLV(L,4),'加做多'),COLORMAGENTA;
X:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*59.3;
XX:=X>40;
AF:=C/REF(C,1)>1.095;
BB:=BARSLAST(AF);
CC:=L<=(REF(H,BB)+REF(L,BB))/2*0.98;
DD:=COUNT(CC,BB)=1 AND CC AND BB<10 AND C>L AND XX ;
GG:=BARSLAST(DD);
HH:=H>0.01*REF(L,GG)*N;
卖出:=COUNT(HH,GG)=1 AND HH AND GG<10;
STICKLINE(AF,C,O,2,0),COLORMAGENTA;
STICKLINE(DD,C,O,2,0),COLORBLUE;
STICKLINE(卖出,C,O,2,0),COLORYELLOW;
DRAWICON(DD,L,27);
STICKLINE(DD,L,L,0,0),COLORGREEN;
DRAWTEXT(DD,L,'▲伏击'),COLORGREEN;
DRAWICON(卖出,H,26);
STICKLINE(卖出,H,H,0,0),COLORYELLOW;
DRAWTEXT(卖出,H,'$中枪'),COLORYELLOW;
STICKLINE(MA77,C,O,3,0),COLORGREEN;
SS:=BARSLAST(F3);
S1:=COUNT(L<REF(C,SS),SS)=1 AND L<REF(C,SS) AND SS<5;
{DRAWTEXT(S1,DYNAINFO(6)=REF(C,SS)*0.8,'-------------'),COLORYELLOW;}
MA5:=MA(O,7)*0.96;
AX:=REF(C<MA5,1) AND O<MA5 AND L<MA5 AND REF(MA(H,3),1)>REF(MA(H,3),2) AND MA(O,3)>MA(O,6);
AO:=MA(O,7);
A2:=MA(H,7);
A3:=AO>REF(AO,1) AND REF(AO,1)<REF(AO,2);
A4:=BARSLAST(A3);
A5:=REF(C<AO,1) AND O<AO AND AO>REF(AO,1)*1.0019 AND REF(A2,1)> REF(A2,2)*1.009 ;
AY:=COUNT(A5,A4)=1 AND A5 AND REF(MA(H,3),1)>REF(MA(H,3),2);
A10:=AX OR AY;
A11:=BARSLAST(A10);
B10:=H>REF(O,A11)*1.05 OR REF(O,A11)/L>1.05 ;
B11:=COUNT(B10,A11)=1 AND B10 AND A11>=1 AND A11<6;
买入:=FILTER(A10,2);
卖:=B11;
STICKLINE(买入,(O+C)/2,O,2.3,0)COLORGREEN;
STICKLINE(卖,(O+C)/2,C,2.3,0)COLORYELLOW;
DRAWTEXT(买入,L,'C')COLORYELLOW;
DRAWTEXT(卖,H,'C')COLORRED;
金尊天龙副 图1
ZF:=(C-REF(C,1))/REF(C,1)*100;
XG1:=REF(ZF,1)<-4 AND ZF>4;
TJ1:=REF(ZF,1)+REF(ZF,2);
XG2:=TJ1<-4.9 AND ZF>4;
XG: XG1 OR XG2 ;
金尊天龙神器副图
X_1:=CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE;
X_2:=COUNT(X_1,13)>=1;
X_3:=BARSLAST(X_1);
X_4:=MA(CLOSE,5);
X_5:=HHV(X_4,60);
X_6:=REF(LOW,1)<X_5 AND REF(HIGH,1)>X_5;
X_7:=BETWEEN(REF(CLOSE,1),REF(X_5,1),REF(MA(CLOSE,10),1));
金尊天龙神器2:CROSS(CLOSE,X_5) AND LOW<X_5 AND X_2 AND (X_6 OR X_7);
金尊天龙量能副图
VAR1:=1;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3*VAR1;
VAR5:=REF(LLV(CLOSE,480),1)*VAR1;
VAR6:=REF(HHV(CLOSE,480),1)*VAR1;
VAR7:=100*(CLOSE-VAR5)/(VAR6-VAR5)*VAR1;
VAR8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*VAR1;
VAR9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*VAR1;
VARA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*VAR1;
VARB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*VAR1;
VARC:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4*VAR1;
VARD:=IF(VARC>23.16,VARC,0)*VAR1;
VARE:=VARC<1*VAR1;
VARF:=VARD*VAR1;
VAR10:=VAR4<0 AND VAR7<0;
VAR11:=1;
VAR12:=(HIGH+LOW+CLOSE*2)/4*VAR11;
VAR13:=EMA(VAR12,21);
VAR14:=STD(VAR12,21);
VAR15:=((VAR12-VAR13)/VAR14*100+200)/4*VAR11;
VAR16:=(EMA(VAR15,89)-25)*1.56*VAR11;
VAR17:=EMA(VAR16,5)*1.22*VAR11;
VAR18:=EMA(VAR17,3)*VAR11;
VAR19:=3*VAR17-2*VAR18*VAR11;
VAR1A:=IF(CROSS(VAR19,VAR17) AND CROSS(VAR19,VAR18) AND CROSS(VAR17,VAR18),1,0);
VAR1B:=IF(CROSS(VAR17,VAR19) AND CROSS(VAR18,VAR19) AND CROSS(VAR18,VAR17),1,0);
?òμ?:=IF(FILTER(VAR8=0 AND VARE AND VAR10 AND VAR1A,5)=1,10,0);
??μ?:=IF(FILTER(VAR8=100 AND VARF AND VAR1B,5)=1,10,0);
VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4*VAR1;
VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89)*VAR1;
VAR1E:=EMA(VAR1D,30)*VAR1;
VAR1F:=2*(VAR1D-VAR1E)*10*VAR1;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2)*VAR1;
VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR22:=EMA(VAR21*0.97,3)*VAR1;
VAR23:=(HIGH+LOW+CLOSE)/3*VAR1;
VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14))*VAR1;
VAR25:=IF(YEAR<9999 AND VAR1F>0.015,VAR20,0)/45*VAR1;
YZ:=VAR25/10,COLORRED;
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR2B:=EMA(VAR2A*0.97,3);
VAR2C:=(HIGH+LOW+CLOSE)/3;
VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));
ZL:=IF(YEAR<9999 AND VAR28>0.1,VAR29,0)*5/10;
TO3:=EMA((ZL+YZ),22),COLORYELLOW,LINETHICK1;
STICKLINE((TO3 > 0),0,TO3,3,0),COLOR009CFF;
STICKLINE((TO3> 0),0,TO3,2,0),COLOR009CFF;
STICKLINE((TO3> 0),0,TO3,1,0),COLOR00C0FF;
STICKLINE((TO3 > 0),0,TO3,0,0),COLOR00D1FF;
STICKLINE((TO3 > 0),0,TO3,0,0),COLOR00EAFF;
STICKLINE((TO3 > 0),0,TO3,0,0),COLOR00FFFF;
O3:=IF(TO3>REF(TO3,1),TO3,DRAWNULL),COLORRED,LINETHICK1;
STICKLINE((O3> 0),0,O3,3,0),COLOR1020AA;
STICKLINE((O3 > 0),0,O3,2,0),COLOR1020BB;
STICKLINE((O3> 0),0,O3,1,0),COLOR1020CC;
STICKLINE((O3> 0),0,O3,0,0),COLOR1020DD;
STICKLINE((O3> 0),0,O3,0,0),COLOR1020EE;
STICKLINE((O3 > 0),0,O3,0,0),COLOR1020FF;
L1:=IF(ISLASTBAR=1 AND FROMOPEN>0,AMOUNT/FROMOPEN*(200+FROMOPEN/6),IF(C>O,AMOUNT,AMOUNT*0.66));
L2:=IF(PERIOD=5,IF(ISLASTBAR=1 AND FROMOPEN<0.1,0,DMA(L1,0.05)),DRAWNULL);
L3:=IF(PERIOD=5,IF(ISLASTBAR=1 AND FROMOPEN<0.1,0,MA(L2,10)),DRAWNULL);
量能:=100*(L2/L3-1),STICK;
L5:=IF(ISLASTBAR=1,100*L1/DYNAINFO(11)/FINANCE(7),HSL);
N:=BARSLASTCOUNT(DATE=REF(DATE,1));
DA:=IF(PERIOD=3 AND ISLASTBAR=1,AMOUNT/(FROMOPEN-N*30)*30,IF(PERIOD=3,AMOUNT,DRAWNULL));
DB:=((C-REF(C,1))/(HHV(H,2)-LLV(L,2)))*DA*C;
DC:=SUM(DB,30);
X2:=100*SLOPE(DMA(C,0.15),5);
X3:=X2-REF(X2,1);
X4:=100*(MAX(C,O)/REF(MAX(C,O),1)-1);
X5:=IF(CROSS(X2,REF(X2,1)),X2<C,CROSS(X2,0));
HA:=X2>REF(X2,1) AND X2>-2 AND 量能>0 AND 量能>REF(量能,1)*1.2;
HB:=IF(LONGCROSS(X4,2,2),L5>1,CROSS(X4,2)AND L5>5);
HC:=HA AND IF(X5,HB,IF(COUNT(X5,3)=1,HB,CROSS(X3,REF(X3,1))AND HB));
DRAWICON(PERIOD=5 AND C<1000 AND L1>LLV(L1,3)*2 AND HC,0,18);
金尊价值趋向副图
VAR1:=1;
VAR3:=MA(CLOSE,13);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,5,1);
VARB:=3*VAR9-2*SMA(VAR9,5,1);
VARC:=100-VARB;
价值趋向: VARA*VAR1,CIRCLEDOT COLORGREEN;
VARD:=价值趋向>VAR4;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR11:=EMA(VARF,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25 AND VAR19< -95 AND VAR1F>20 AND VAR1B< -30 AND VAR1E< 30 AND VAR11-CLOSE>=-0.25 AND VAR15< 22 AND VAR16< 28 AND VAR17>50;
STICKLINE(VARD,VAR4,价值趋向,1,0),COLOR0099FF;
STICKLINE(VAR20,0,80,1,0),COLORRED,LINETHICK3 ;
进场线:25,COLORYELLOW ,LINETHICK2 ;
离场线:75,COLORWHITE ,LINETHICK2 ;