新编资金夹角分时副图原码
原理解析:
N1赋值:TRANSACTNUM(1,0)-TRANSACTNUM(2,0)
N2赋值:2*N1的历史累和
N3赋值:N2/当前流通股本(手)
输出N4:N3*500000,画绿色
N5赋值:ORDERNUM(2,0)-ORDERNUM(1,0)
N6赋值:N5的历史累和/当前流通股本(手)
输出N7:N6*1000000,画黄色
N8赋值:N7+N4
输出动量监控:N8/2,线宽为3,画白色,PRECIS0
N9赋值:动量监控的5日简单移动平均
N13赋值:N9+20
N15赋值:N9-20
N18赋值:20日前的动量监控+20
N20赋值:20日前的动量监控-20
PARTLINE(动量监控,动量监控>30,自定色,动量监控N13,自定色,动量监控N18,自定色,动量监控180000 AND (CXH=1 OR CXH=6))
DRAWTEXTREL(10 ,10 ,'指标公式')
源码:
N1:=TRANSACTNUM(1,0)-TRANSACTNUM(2,0);
N2:=2*SUM(N1,0);
N3:=N2/CAPITAL;
N4:N3*500000,colorgreen;
N5:=ORDERNUM(2,0)-ORDERNUM(1,0);
N6:=SUM(N5,0)/CAPITAL;
N7:N6*1000000,coloryellow;
N8:=N7+N4;
动量监控:N8/2,LINETHICK3,COLORWHITE,PRECIS0;
N9:=MA(动量监控,5);
N13:=N9+20;
N15:=N9-20;
N18:=REF(动量监控,20)+20;
N20:=REF(动量监控,20)-20;
PARTLINE(动量监控,动量监控>30,RGB(255,0,0),动量监控N13,RGB(255,0,0),动量监控N18,RGB(255,0,0),动量监控180000 and (CXH=1 OR CXH=6));
DRAWTEXTREL(10 ,10 ,'指标公式');