通达信源码; 筹码分布; VAR1:=LWINNER(8,CLOSE)*100;VAR2:=LWINNER(15,CLOSE)*100; VAR3:=LWINNER(20,CLOSE)*100;VAR4:=LWINNER(30,CLOSE)*100; VAR5:=LWINNER(50,CLOSE)*100;VAR6:=LWINNER(120,CLOSE)*120; VAR7:=LWINNER(150,CLOSE)*150; X:=REF((VAR1+VAR2+VAR3+VAR4+VAR5+VAR6)/6,1); 十日:VAR1,STICK,LINETHICK9,COLORRED; 三十日:VAR4,STICK,LINETHICK8,COLORBLUE; 六十日:VAR5,STICK,LINETHICK6,COLORGREEN; 一百日:VAR6,STICK,LINETHICK3,COLORWHITE; 二百日:VAR7,STICK,LINETHICK1,COLORMAGENTA; 平均成本:MA(X,3),COLORYELLOW,LINETHICK2;
爱约股解答:
{条件1}
VAR1:=LWINNER(8,CLOSE)*100;VAR2:=LWINNER(15,CLOSE)*100;
VAR3:=LWINNER(20,CLOSE)*100;VAR4:=LWINNER(30,CLOSE)*100;
VAR5:=LWINNER(50,CLOSE)*100;VAR6:=LWINNER(120,CLOSE)*120;
VAR7:=LWINNER(150,CLOSE)*150;
X:=REF((VAR1+VAR2+VAR3+VAR4+VAR5+VAR6)/6,1);
十日:=VAR1;
三十日:=VAR4;
六十日:=VAR5;
一百日:=VAR6;
二百日:=VAR7;
平均成本:=MA(X,3);
EVERY(MIN(一百日,二百日)>平均成本,3) AND
EVERY(MAX(MAX(十日,三十日),六十日)<平均成本,3);
{条件2}
VAR1:=LWINNER(8,CLOSE)*100;VAR2:=LWINNER(15,CLOSE)*100;
VAR3:=LWINNER(20,CLOSE)*100;VAR4:=LWINNER(30,CLOSE)*100;
VAR5:=LWINNER(50,CLOSE)*100;VAR6:=LWINNER(120,CLOSE)*120;
VAR7:=LWINNER(150,CLOSE)*150;
X:=REF((VAR1+VAR2+VAR3+VAR4+VAR5+VAR6)/6,1);
平均成本:=MA(X,3);
平均成本<=30;