以下是通达信成本价分布(主图源码)(无源码的请下载附件导入)
成本价分布(通达信 主图,源码,)
说明;网络上的,通达信版是从飞狐转换来的
通达信源码
AJ1:=(COST(85)+COST(15))/2;
AJ2:=(COST(75)+COST(25))/2;
AJ3:=(COST(65)+COST(35))/2;
AJ4:=(COST(55)+COST(45))/2;
AJ5:=(COST(95)+COST(5))/2;
Aj6:=(COST(99.99)-COST(0.01)*0.5)/2;
AJ:=(AJ1+AJ2+AJ3+AJ4+AJ5+AJ6)/6;
bJ1:=(COST(90)+COST(10))/2;
bJ2:=(COST(80)+COST(20))/2;
bJ3:=(COST(70)+COST(30))/2;
bJ4:=(COST(60)+COST(40))/2;
bJ5:=(COST(50));
Bj6:=(COST(99.99)+COST(0.01)*0.5)/2;
BJ:=(BJ1+BJ2+BJ3+BJ4+BJ5+BJ6)/6;
平均成本:EMA((AJ+BJ)/2,1),COLORWHITE,ColorFFC0FF,LINETHICK2;
生命中枢:(COST(99.99)+COST(0.01)*0.5)/2,COLOR9900FF,LINETHICK3;
IF(C>=(平均成本),平均成本,DRAWNULL),COLORRED;
IF(C>=REF(生命中枢,1),生命中枢,DRAWNULL)COLORYELLOW;
IF(C<REF(生命中枢,1),生命中枢,DRAWNULL),COLORCYAN;
天界:EMA((平均成本+COST(99.99))/2,1),COLORMAGENTA;
地界:EMA((平均成本+COST(0.01)*0.5)/2,1),COLOR009966,LINETHICK2;
62533645.png
|