同花顺狼巡成本均线副图指标 源码介绍
同花顺狼巡成本均线副图指标 源码
计算各个周期平均持仓成本指标,有利于更好地表现价格走势。
AB:=(SUM(CLOSE*AMOUNT,360)/SUM(AMOUNT,360));
A1:=(SUM(CLOSE*AMOUNT,300)/SUM(AMOUNT,300));
A2:=(SUM(CLOSE*AMOUNT,240)/SUM(AMOUNT,240));
A3:=(SUM(CLOSE*AMOUNT,180)/SUM(AMOUNT,180));
A4:=(SUM(CLOSE*AMOUNT,120)/SUM(AMOUNT,120));
A5:=(SUM(CLOSE*AMOUNT,90)/SUM(AMOUNT,90));
A6:=(SUM(CLOSE*AMOUNT,60)/SUM(AMOUNT,60));
A7:=(SUM(CLOSE*AMOUNT,30)/SUM(AMOUNT,30));
B1:(A1+A2+A3)/3;
B2:(A3+A4+A5)/3;
B3:(A6+A7+A5)/3;
B4:(AB+A1)/2,LINETHICK2;
gd47413