/*DRAWBAND(MA(C,5),RGB(255,50,100),MA(C,10),RGB(10,200,10));
DRAWKLINE(H,O,L,C);
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
VAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VARE:=REF(VARD,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VAR10:=REF(VARF,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VAR14:=REF(VAR13,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VAR16:=REF(VAR15,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOSE,2);
VAR18:=REF(VAR17,1)ANDCLOSE>=REF(CLOSE,1)AND
CLOSE<=REF(CLOSE,2);
VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12OR
VAR13OR
VAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1;
VAR1A:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7
OR
VAR8ORVAR9ORVARAORVARBORVARC,1)ANDVARD;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00FFFF;{黄色}
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORFF00FF;{粉红色}
DRAWICON(VAR19,REF(CLOSE,1)*0.99,1);
DRAWICON(VAR1A,REF(CLOSE,1)*1.01,2);
{45度异动}
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
:=3;N2:=5;N3:=8;N4:=13;
DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);
DEA:=EMA(DIFF,N2);
DRAWICON(DIFF>DEA,1,1);
DRAWICON(DIFF
A1:=DIFF>DEA;
RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
K:=SMA(RSV1,N1,1);
D:=SMA(K,N1,1);
DRAWICON(K>D,2,1);
DRAWICON(K
A2:=K>D;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(ABS(CLOSE-LC),N2,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100;
DRAWICON(RSI1>RSI2,3,1);
DRAWICON(RSI1
A3:=RSI1>RSI2;
RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
LWR1:=SMA(RSV,N1,1);
LWR2:=SMA(LWR1,N1,1);
DRAWICON(LWR1>LWR2,4,1);
DRAWICON(LWR1
A4:=LWR1>LWR2;
BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
DRAWICON(CLOSE>BBI,5,1);
DRAWICON(CLOSE
A5:=CLOSE>BBI;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);
MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);
DRAWICON(MMS>MMM,6,1);
DRAWICON(MMS
A6:=MMS>MMM;
WJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,WJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
买盘:=(V9+V8);
卖盘:=(V6+V7);
买卖差:=买盘-卖盘;
DDX:=买卖差;
DX:=MA(买卖差,5)*20;
DDX1:=SMA(DX,3,1);
DDX2:=SMA(DDX1,3,1);
DDX3:=(5*DDX2+4*REF(DDX2,1)+3*REF(DDX2,2)+2*REF(DDX2,3)+REF(DDX2,4))/15;
DRAWICON(DDX1>DDX2,7,1);
DRAWICON(DDX1
A7:=DDX1>DDX2;
量:=V;
换手:=V/CAPITAL*100;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘
1:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
LOW)),VOL/2));
卖盘
1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
HIGH-LOW),0-VOL/2));
DLX:=(买盘1-(-卖盘1))/量*换手;
DLX1:=SUM(DLX,6);
DLX2:=MA(DLX1,5);
DRAWICON(DLX1>DLX2,8,1);
DRAWICON(DLX1
A8:=DLX1>DLX2;
(A1ANDA2ANDA3ANDA4ANDA5ANDA6ANDA7ANDA8),COLORFFFF00;
买入:A1ANDA2ANDA3ANDA4ANDA5ANDA6ANDA7ANDA8=1
ANDREF(A1ANDA2ANDA3ANDA4ANDA5ANDA6ANDA7AND
A8,1)=0,COLORFFFF00;猎狼指导线:
(A1+A2+A3+A4+A5+A6+A7+A8),LINETHICK2,COLOR00FF00;
动力线1:0;
DDX02:0;
ZLMM3:0;
DRAWTEXT(FILTER(BB13>1ANDEMA(X1,13)>REF(EMA(X1,8),1),10),
EMA8,'∠45上升'),COLORYELLOW;
AAA:=(3*C+H+L+O)/6;
VAR41:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,
4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
TJ1:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>VAR41;
立桩量:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(立桩量)=1ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立
桩量)=2ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3AND
CLOSE>REF(HIGH,3),1,0)));
突破:=TJ2=1;
TJ3:=IF(BARSLAST(立桩量)=1ANDCLOSE>REF(LOW,1),1,IF(BARSLAST(立桩
量)=2ANDCLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3AND
CLOSE>REF(LOW,3),1,0)));
三天法则:=TJ3=1;
成立:=三天法则AND突破;
条件成立:=FILTER(成立,3);
*/
N1:=10;
S:=CROSS(CLOSE,EMA(HIGH,30));
X:=CROSS(EMA(LOW,30),CLOSE);
WS:=BARSLAST(S)+1;
WX:=BARSLAST(X)+1;
SS:=CROSS(SUM(S,WX),0.5);
XX:=CROSS(SUM(X,WS),0.5);
PARTLINE1(CLOSE>EMA(HIGH,30),EMA(HIGH,30)),COLORRED,LINETHICK1;
PARTLINE1(CLOSE
PARTLINE1(CLOSE>EMA(LOW,30),EMA(LOW,30)),COLORRED,LINETHICK1;
PARTLINE1(CLOSE
PARTLINE1(CLOSE>EMA(HIGH,150),EMA(HIGH,150)),COLORMAGENTA,LINETHICK1;
PARTLINE1(CLOSE
PARTLINE1(CLOSE>EMA(LOW,150),EMA(LOW,150)),COLORMAGENTA,LINETHICK1;
PARTLINE1(CLOSE
STICKLINE1(C>=O,O,C,9,1),COLORRED;
STICKLINE1(O>C,C,O,8,1),COLORWHITE;
STICKLINE1(C>=O,C,H,0.5,1),COLORRED;
STICKLINE1(C>=O,O,L,0.5,1),COLORRED;
STICKLINE1(O>C,C,L,0.5,1),COLORWHITE;
STICKLINE1(O>C,O,H,0.5,1),COLORWHITE;
趋势
线:=3*SMA((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100,5,1)-2*SMA(SMA((CLOSE-LL
V(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=LLV(C,30);
MA3:=MA(底部,2);
X1:=MA(C,26);
压力:=HHV(H,30),COLORF8EE00;
AMOUNT:=AVPRICE*V;
VARA:=((AMOUNT)/(VOL))/(100);
VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
VARD:=DMA(VARB,(VOL)/(VARC));
VARE:=((CLOSE-VARD)/(VARD))*(100);
VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
VARJ:=MA(VARE,20)+STD(VARE,20);
BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
K:=SMA(VARF,3,1);
顶:=(REF(BIAS18,1)>=5)ANDCROSS(VARJ,VARE)AND(K>79);
HH:=HHV(HIGH,N1);
LL:=LLV(LOW,N1);
HH1:=BARSLAST((HH>REF(HH,1)));
DRAWICON(CROSS(HH1,LL1),HH,13);
DRAWICON(CROSS(LL1,HH1),LL,15);
DRAWTEXT(CROSS(HH1,LL1),HH,'卖'),COLORGREEN;
DRAWTEXT(CROSS(LL1,HH1),LL,'买'),COLORFF00FF;
N:=21;
TY:=C;
A1:=REF(TY,N)=HHV(TY,2*N+1);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
HD:=FILTER(C1,N);
A2:=REF(TY,N)=LLV(TY,2*N+1);
B2:=FILTER(A2,N);
C2:=BACKSET(B2,N+1);
LD:=FILTER(C2,N);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)ANDBARSLAST(LD)ANDNOT(LD);
STICKLINE(T1,A,A,9,0),COLORFF00FF,LINETHICK2;
STICKLINE(T1,B,B,9,0),COLOR00FF00,LINETHICK2;
HH11:HHV(H,450),COLOR53FF53,LINETHICK2;
LL11:LLV(L,450),COLORWHITE,LINETHICK2;
VAR1:=(HH11-LL11);
本文发布于:2022-12-11 02:12:02,感谢您对本站的认可!
本文链接:http://www.wtabcd.cn/fanwen/fan/88/82805.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |