筹码分布选股 预警公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

通达信源码;筹码分布;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;

选股票看什么指标最好 >股票指标网